@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-pd1-to-patient> a fhir:ConceptMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "segment-pd1-to-patient"] ; # 
  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-pd1-to-patient</b></p><a name=\"segment-pd1-to-patient\"> </a><a name=\"hcsegment-pd1-to-patient\"> </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><b>Source Code</b></td><td><b>Relationship</b></td><td><b>Target Code</b></td><td><b>Comment</b></td></tr><tr><td>PD1-3 (Patient Primary Facility)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>generalPractitioner[1](Organization)</td><td/></tr><tr><td>PD1-4 (Patient Primary Care Provider Name &amp; ID No.)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>generalPractitioner[2](Practitioner)</td><td/></tr><tr><td>PD1-6 (Handicap)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>extension[1].url</td><td/></tr><tr><td>PD1-6 (Handicap)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>extension[1].valueCodeableConcept</td><td>The FHIR extension does not include a value set</td></tr><tr><td>PD1-14 (Place of Worship)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>extension[2].url</td><td/></tr><tr><td>PD1-14 (Place of Worship)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td>extension[2].valueString</td><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 PD1 to Patient.fsh"
       ]
     ] [
       fhir:url [ fhir:v "url"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:uri ;
         fhir:v "https://docs.google.com/spreadsheets/d/1SieDEcKFbQbB2N7c3elw4JTTDFAAwZDklwnGT5Y8tGE/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-pd1-to-patient"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "1.0.0"] ; # 
  fhir:name [ fhir:v "SegmentPD1ToPatient"] ; # 
  fhir:title [ fhir:v "Segment PD1 to Patient 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 PD1 to the FHIR Patient 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:extension ( [
         fhir:extension ( [
           fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:code ;
             fhir:v "XON"
           ]
         ] [
           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 "PD1-3" ] ;
       fhir:display [ fhir:v "Patient Primary Facility" ] ;
       fhir:target ( [
         fhir:extension ( [
           fhir:extension ( [
             fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:code ;
               fhir:v "Reference(Organization)"
             ]
           ] [
             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 "generalPractitioner[1](Organization)" ] ;
         fhir:display [ fhir:v "generalPractitioner[1](Organization)" ] ;
         fhir:equivalence [ fhir:v "equivalent" ]
       ] )
     ] [
       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 "PD1-4" ] ;
       fhir:display [ fhir:v "Patient Primary Care Provider Name & ID No." ] ;
       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 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 "generalPractitioner[2](Practitioner)" ] ;
         fhir:display [ fhir:v "generalPractitioner[2](Practitioner)" ] ;
         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 "PD1-6" ] ;
       fhir:display [ fhir:v "Handicap" ] ;
       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/patient-disability\""
             ]
           ] ) ;
           fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]
         ] ) ;
         fhir:code [ fhir:v "extension[1].url" ] ;
         fhir:display [ fhir:v "extension[1].url" ] ;
         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 "PD1-6" ] ;
       fhir:display [ fhir:v "Handicap" ] ;
       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 "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]
         ] ) ;
         fhir:code [ fhir:v "extension[1].valueCodeableConcept" ] ;
         fhir:display [ fhir:v "extension[1].valueCodeableConcept" ] ;
         fhir:equivalence [ fhir:v "equivalent" ] ;
         fhir:comment [ fhir:v "The FHIR extension does not include a value set" ]
       ] )
     ] [
       fhir:extension ( [
         fhir:extension ( [
           fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:code ;
             fhir:v "XON"
           ]
         ] [
           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 "PD1-14" ] ;
       fhir:display [ fhir:v "Place of Worship" ] ;
       fhir:target ( [
         fhir:extension ( [
           fhir:extension ( [
             fhir:url [ fhir:v "assignment"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:string ;
               fhir:v "\"http://hl7.org/fhir/StructureDefinition/patient-congregation\""
             ]
           ] ) ;
           fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]
         ] ) ;
         fhir:code [ fhir:v "extension[2].url" ] ;
         fhir:display [ fhir:v "extension[2].url" ] ;
         fhir:equivalence [ fhir:v "equivalent" ]
       ] )
     ] [
       fhir:extension ( [
         fhir:extension ( [
           fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:code ;
             fhir:v "XON"
           ]
         ] [
           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 "PD1-14" ] ;
       fhir:display [ fhir:v "Place of Worship" ] ;
       fhir:target ( [
         fhir:extension ( [
           fhir:extension ( [
             fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
             fhir:value [
               a fhir:code ;
               fhir:v "string"
             ]
           ] [
             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 "extension[2].valueString" ] ;
         fhir:display [ fhir:v "extension[2].valueString" ] ;
         fhir:equivalence [ fhir:v "equivalent" ]
       ] )
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

