@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/uv/v2mappings/ConceptMap/segment-evn-to-provenance> a fhir:ConceptMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "segment-evn-to-provenance"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: ConceptMap segment-evn-to-provenance</b></p><a name=\"segment-evn-to-provenance\"> </a><a name=\"hcsegment-evn-to-provenance\"> </a><p>Mapping from (not specified) to (not specified)</p><br/><p><b>Group 1 </b>Mapping from <code>unspecified code system</code> to <code>unspecified code system</code></p><table class=\"grid\"><tr><td colspan=\"3\"><b>Source Concept Details</b></td><td><b>Relationship</b></td><td colspan=\"2\"><b>Target Concept Details</b></td></tr><tr><td colspan=\"2\"><b>Codes</b> from </td><td><b>ComputableANTLR</b></td><td/><td colspan=\"2\"><b>Codes</b> from </td></tr><tr><td style=\"border-right-width: 0px\">EVN</td><td style=\"border-left-width: 0px\"/><td/><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">activity.coding.display</td><td style=\"border-left-width: 0px\">activity.coding.display</td></tr><tr><td style=\"border-right-width: 0px\">EVN-2</td><td style=\"border-left-width: 0px\">Recorded Date/Time</td><td/><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">recorded</td><td style=\"border-left-width: 0px\">recorded</td></tr><tr><td style=\"border-right-width: 0px\">EVN-4</td><td style=\"border-left-width: 0px\">Event Reason Code</td><td>IF EVN-4 NOT \"U\"</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">reason</td><td style=\"border-left-width: 0px\">reason</td></tr><tr><td style=\"border-right-width: 0px\">EVN-4</td><td style=\"border-left-width: 0px\">Event Reason Code</td><td>IF EVN-4 IS \"U\"</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">reason.extension[1].url</td><td style=\"border-left-width: 0px\">reason.extension[1].url</td></tr><tr><td style=\"border-right-width: 0px\">EVN-4</td><td style=\"border-left-width: 0px\">Event Reason Code</td><td>IF EVN-4 IS \"U\"</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">reason.extension[1].valueCodeableConcept</td><td style=\"border-left-width: 0px\">reason.extension[1].valueCodeableConcept</td></tr><tr><td style=\"border-right-width: 0px\">EVN-5</td><td style=\"border-left-width: 0px\">Operator ID</td><td/><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">agent.who(Practitioner)</td><td style=\"border-left-width: 0px\">agent.who(Practitioner)</td></tr><tr><td style=\"border-right-width: 0px\">EVN-6</td><td style=\"border-left-width: 0px\">Event Occurred</td><td/><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">occurredDateTime</td><td style=\"border-left-width: 0px\">occurredDateTime</td></tr><tr><td style=\"border-right-width: 0px\">EVN-7</td><td style=\"border-left-width: 0px\">Event Facility</td><td/><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">location(Location)</td><td style=\"border-left-width: 0px\">location(Location)</td></tr></table></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:extension ( [
     fhir:extension ( [
       fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:code ;
         fhir:v "derived-from"
       ]
     ] [
       fhir:url [ fhir:v "label"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:string ;
         fhir:v "Segment EVN to Provenance.fsh"
       ]
     ] [
       fhir:url [ fhir:v "url"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:uri ;
         fhir:v "https://docs.google.com/spreadsheets/d/1DQSPNj6BnLgUiYgJvNmk1XcfZz_vYg1IZk03wbHJ0bQ/edit#gid=0"^^xsd:anyURI
       ]
     ] ) ;
     fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/RelatedArtifact"^^xsd:anyURI ]
  ] [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:code ;
       fhir:v "oo"
     ]
  ] [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:code ;
       fhir:v "informative" ;
       fhir:extension ( [
         fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom"^^xsd:anyURI ] ;
         fhir:value [
           a fhir:canonical ;
           fhir:v "http://hl7.org/fhir/uv/v2mappings/ImplementationGuide/hl7.fhir.uv.v2mappings"^^xsd:anyURI ;
           fhir:link <http://hl7.org/fhir/uv/v2mappings/ImplementationGuide/hl7.fhir.uv.v2mappings>
         ]
       ] )
     ]
  ] ) ; # 
  fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/ConceptMap/segment-evn-to-provenance"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "1.0.0"] ; # 
  fhir:name [ fhir:v "SegmentEVNToProvenance"] ; # 
  fhir:title [ fhir:v "Segment EVN to Provenance Map"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v true] ; # 
  fhir:date [ fhir:v "2025-08-25"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "HL7 International / Orders and Observations"] ; # 
  fhir:contact ( [
     fhir:name [ fhir:v "HL7 Orders and Observations Workgroup" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/orders" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "This ConceptMap represents a mapping from the HL7 V2 Segment EVN to the FHIR Provenance Resource."] ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "001" ]
     ] )
  ] ) ; # 
  fhir:copyright [ fhir:v "Copyright (c) 2025, HL7 International, Inc., All Rights Reserved."] ; # 
  fhir:group ( [
     fhir:element ( [
       fhir:code [ fhir:v "EVN" ] ;
       fhir:target ( [
         fhir:extension ( [
           fhir:extension ( [
             fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:code ;
               fhir:v "CodeableConcept"
             ]
           ] [
             fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:integer ;
               fhir:v 0
             ]
           ] [
             fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:integer ;
               fhir:v 1
             ]
           ] [
             fhir:url [ fhir:v "assignment"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:string ;
               fhir:v "\"event - :\"+MSG.1+\"^\"+MSG.2"
             ]
           ] ) ;
           fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]
         ] ) ;
         fhir:code [ fhir:v "activity.coding.display" ] ;
         fhir:display [ fhir:v "activity.coding.display" ] ;
         fhir:equivalence [ fhir:v "equivalent" ]
       ] )
     ] [
       fhir:extension ( [
         fhir:extension ( [
           fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:code ;
             fhir:v "DTM"
           ]
         ] [
           fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:integer ;
             fhir:v 1
           ]
         ] [
           fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:integer ;
             fhir:v 1
           ]
         ] ) ;
         fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]
       ] ) ;
       fhir:code [ fhir:v "EVN-2" ] ;
       fhir:display [ fhir:v "Recorded Date/Time" ] ;
       fhir:target ( [
         fhir:extension ( [
           fhir:extension ( [
             fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:code ;
               fhir:v "instant"
             ]
           ] [
             fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:integer ;
               fhir:v 1
             ]
           ] [
             fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:integer ;
               fhir:v 1
             ]
           ] ) ;
           fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]
         ] ) ;
         fhir:code [ fhir:v "recorded" ] ;
         fhir:display [ fhir:v "recorded" ] ;
         fhir:equivalence [ fhir:v "equivalent" ]
       ] )
     ] [
       fhir:extension ( [
         fhir:extension ( [
           fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:code ;
             fhir:v "CWE"
           ]
         ] [
           fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:integer ;
             fhir:v 1
           ]
         ] [
           fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:integer ;
             fhir:v 1
           ]
         ] ) ;
         fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]
       ] ) ;
       fhir:code [ fhir:v "EVN-4" ] ;
       fhir:display [ fhir:v "Event Reason Code" ] ;
       fhir:target ( [
         fhir:extension ( [
           fhir:extension ( [
             fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:code ;
               fhir:v "CodeableConcept"
             ]
           ] [
             fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:integer ;
               fhir:v 0
             ]
           ] [
             fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:integer ;
               fhir:v -1
             ]
           ] [
             fhir:url [ fhir:v "mappedVia"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:url ;
               fhir:v "ConceptMap/table-hl70062-to-v3-actreason"^^xsd:anyURI
             ]
           ] ) ;
           fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]
         ] ) ;
         fhir:code [ fhir:v "reason" ] ;
         fhir:display [ fhir:v "reason" ] ;
         fhir:equivalence [ fhir:v "equivalent" ] ;
         fhir:dependsOn ( [
           fhir:property [ fhir:v "Computable-ANTLR"^^xsd:anyURI ] ;
           fhir:value [ fhir:v "IF EVN-4 NOT \"U\"" ]
         ] )
       ] )
     ] [
       fhir:extension ( [
         fhir:extension ( [
           fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:code ;
             fhir:v "CWE"
           ]
         ] [
           fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:integer ;
             fhir:v 1
           ]
         ] [
           fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:integer ;
             fhir:v 1
           ]
         ] ) ;
         fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]
       ] ) ;
       fhir:code [ fhir:v "EVN-4" ] ;
       fhir:display [ fhir:v "Event Reason Code" ] ;
       fhir:target ( [
         fhir:extension ( [
           fhir:extension ( [
             fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:code ;
               fhir:v "uri"
             ]
           ] [
             fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:integer ;
               fhir:v 1
             ]
           ] [
             fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:integer ;
               fhir:v 1
             ]
           ] [
             fhir:url [ fhir:v "assignment"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:string ;
               fhir:v "\"http://hl7.org/fhir/StructureDefinition/data-absent-reason\""
             ]
           ] ) ;
           fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]
         ] ) ;
         fhir:code [ fhir:v "reason.extension[1].url" ] ;
         fhir:display [ fhir:v "reason.extension[1].url" ] ;
         fhir:equivalence [ fhir:v "equivalent" ] ;
         fhir:dependsOn ( [
           fhir:property [ fhir:v "Computable-ANTLR"^^xsd:anyURI ] ;
           fhir:value [ fhir:v "IF EVN-4 IS \"U\"" ]
         ] )
       ] )
     ] [
       fhir:extension ( [
         fhir:extension ( [
           fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:code ;
             fhir:v "CWE"
           ]
         ] [
           fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:integer ;
             fhir:v 1
           ]
         ] [
           fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:integer ;
             fhir:v 1
           ]
         ] ) ;
         fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]
       ] ) ;
       fhir:code [ fhir:v "EVN-4" ] ;
       fhir:display [ fhir:v "Event Reason Code" ] ;
       fhir:target ( [
         fhir:extension ( [
           fhir:extension ( [
             fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:code ;
               fhir:v "CodeableConcept"
             ]
           ] [
             fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:integer ;
               fhir:v 1
             ]
           ] [
             fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:integer ;
               fhir:v 1
             ]
           ] [
             fhir:url [ fhir:v "assignment"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:string ;
               fhir:v "\"unknown\""
             ]
           ] ) ;
           fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]
         ] ) ;
         fhir:code [ fhir:v "reason.extension[1].valueCodeableConcept" ] ;
         fhir:display [ fhir:v "reason.extension[1].valueCodeableConcept" ] ;
         fhir:equivalence [ fhir:v "equivalent" ] ;
         fhir:dependsOn ( [
           fhir:property [ fhir:v "Computable-ANTLR"^^xsd:anyURI ] ;
           fhir:value [ fhir:v "IF EVN-4 IS \"U\"" ]
         ] )
       ] )
     ] [
       fhir:extension ( [
         fhir:extension ( [
           fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:code ;
             fhir:v "XCN"
           ]
         ] [
           fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:integer ;
             fhir:v -1
           ]
         ] [
           fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:integer ;
             fhir:v -1
           ]
         ] ) ;
         fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]
       ] ) ;
       fhir:code [ fhir:v "EVN-5" ] ;
       fhir:display [ fhir:v "Operator ID" ] ;
       fhir:target ( [
         fhir:extension ( [
           fhir:extension ( [
             fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:code ;
               fhir:v "Reference(Practitioner)"
             ]
           ] [
             fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:integer ;
               fhir:v 1
             ]
           ] [
             fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:integer ;
               fhir:v -1
             ]
           ] [
             fhir:url [ fhir:v "mappedVia"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:url ;
               fhir:v "unspecified_mapping"^^xsd:anyURI
             ]
           ] ) ;
           fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]
         ] ) ;
         fhir:code [ fhir:v "agent.who(Practitioner)" ] ;
         fhir:display [ fhir:v "agent.who(Practitioner)" ] ;
         fhir:equivalence [ fhir:v "equivalent" ]
       ] )
     ] [
       fhir:extension ( [
         fhir:extension ( [
           fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:code ;
             fhir:v "DTM"
           ]
         ] [
           fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:integer ;
             fhir:v 1
           ]
         ] [
           fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:integer ;
             fhir:v 1
           ]
         ] ) ;
         fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]
       ] ) ;
       fhir:code [ fhir:v "EVN-6" ] ;
       fhir:display [ fhir:v "Event Occurred" ] ;
       fhir:target ( [
         fhir:extension ( [
           fhir:extension ( [
             fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:code ;
               fhir:v "dateTime"
             ]
           ] [
             fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:integer ;
               fhir:v 0
             ]
           ] [
             fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:integer ;
               fhir:v 1
             ]
           ] ) ;
           fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]
         ] ) ;
         fhir:code [ fhir:v "occurredDateTime" ] ;
         fhir:display [ fhir:v "occurredDateTime" ] ;
         fhir:equivalence [ fhir:v "equivalent" ]
       ] )
     ] [
       fhir:extension ( [
         fhir:extension ( [
           fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:code ;
             fhir:v "HD"
           ]
         ] [
           fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:integer ;
             fhir:v 1
           ]
         ] [
           fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:integer ;
             fhir:v 1
           ]
         ] ) ;
         fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]
       ] ) ;
       fhir:code [ fhir:v "EVN-7" ] ;
       fhir:display [ fhir:v "Event Facility" ] ;
       fhir:target ( [
         fhir:extension ( [
           fhir:extension ( [
             fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:integer ;
               fhir:v 0
             ]
           ] [
             fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:integer ;
               fhir:v 1
             ]
           ] ) ;
           fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]
         ] ) ;
         fhir:code [ fhir:v "location(Location)" ] ;
         fhir:display [ fhir:v "location(Location)" ] ;
         fhir:equivalence [ fhir:v "equivalent" ]
       ] )
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

