@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 -------------------------------------------------------------------

<urn://example.com/ph-core/fhir/Patient/example-patient> a fhir:Patient ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example-patient"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient"^^xsd:anyURI ;
       fhir:l <urn://example.com/ph-core/fhir/StructureDefinition/ph-core-patient>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">Juan Dela Cruz is a male patient born on 1 January 1980, residing in Manila, NCR, Philippines.</div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:extension ( [
       fhir:url [
         fhir:v "code"^^xsd:anyURI ;
         fhir:l fhir:code
       ] ;
       fhir:value [
         a fhir:CodeableConcept ;
         fhir:coding ( [
           fhir:system [
             fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ;
             fhir:l <urn:iso:std:iso:3166>
           ] ;
           fhir:code [ fhir:v "PH" ] ;
           fhir:display [ fhir:v "Philippines" ]
         ] )
       ]
     ] [
       fhir:url [
         fhir:v "period"^^xsd:anyURI ;
         fhir:l fhir:period
       ] ;
       fhir:value [
         a fhir:Period ;
         fhir:start [ fhir:v "2020-01-01"^^xsd:date ] ;
         fhir:end [ fhir:v "2023-01-01"^^xsd:date ]
       ]
     ] ) ;
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/patient-nationality"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/patient-nationality>
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/patient-religion"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/patient-religion>
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation>
         ] ;
         fhir:code [ fhir:v "1007" ] ;
         fhir:display [ fhir:v "Atheism" ]
       ] )
     ]
  ] [
     fhir:url [
       fhir:v "urn://example.com/ph-core/fhir/StructureDefinition/indigenous-people"^^xsd:anyURI ;
       fhir:l <urn://example.com/ph-core/fhir/StructureDefinition/indigenous-people>
     ] ;
     fhir:value [
       a fhir:Boolean ;
       fhir:v true
     ]
  ] [
     fhir:url [
       fhir:v "urn://example.com/ph-core/fhir/StructureDefinition/indigenous-group"^^xsd:anyURI ;
       fhir:l <urn://example.com/ph-core/fhir/StructureDefinition/indigenous-group>
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         fhir:system [
           fhir:v "urn://example.com/ph-core/fhir/CodeSystem/indigenous-groups"^^xsd:anyURI ;
           fhir:l <urn://example.com/ph-core/fhir/CodeSystem/indigenous-groups>
         ] ;
         fhir:code [ fhir:v "Ilongots" ] ;
         fhir:display [ fhir:v "Ilongots" ]
       ] )
     ]
  ] [
     fhir:url [
       fhir:v "urn://example.com/ph-core/fhir/StructureDefinition/race"^^xsd:anyURI ;
       fhir:l <urn://example.com/ph-core/fhir/StructureDefinition/race>
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/v3-Race"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/v3-Race>
         ] ;
         fhir:code [ fhir:v "2036-2" ] ;
         fhir:display [ fhir:v "Filipino" ]
       ] )
     ]
  ] ) ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "urn://example.com/ph-core/fhir/NamingSystem/philhealth-id-ns"^^xsd:anyURI ;
       fhir:l <urn://example.com/ph-core/fhir/NamingSystem/philhealth-id-ns>
     ] ;
     fhir:value [ fhir:v "63-584789845-5" ]
  ] ) ; # 
  fhir:active [ fhir:v true] ; # 
  fhir:name ( [
     fhir:family [ fhir:v "Dela Cruz" ] ;
     fhir:given ( [ fhir:v "Juan Jane" ] [ fhir:v "Dela Fuente" ] )
  ] ) ; # 
  fhir:gender [ fhir:v "male"] ; # 
  fhir:birthDate [ fhir:v "1985-06-15"^^xsd:date] ; # 
  fhir:address ( [
     fhir:extension ( [
       fhir:url [
         fhir:v "urn://example.com/ph-core/fhir/StructureDefinition/city-municipality"^^xsd:anyURI ;
         fhir:l <urn://example.com/ph-core/fhir/StructureDefinition/city-municipality>
       ] ;
       fhir:value [
         a fhir:Coding ;
         fhir:system [
           fhir:v "urn://example.com/ph-core/fhir/CodeSystem/PSGC"^^xsd:anyURI ;
           fhir:l <urn://example.com/ph-core/fhir/CodeSystem/PSGC>
         ] ;
         fhir:code [ fhir:v "1380200000" ] ;
         fhir:display [ fhir:v "City of Las Piñas" ]
       ]
     ] [
       fhir:url [
         fhir:v "urn://example.com/ph-core/fhir/StructureDefinition/city-municipality"^^xsd:anyURI ;
         fhir:l <urn://example.com/ph-core/fhir/StructureDefinition/city-municipality>
       ] ;
       fhir:value [
         a fhir:Coding ;
         fhir:system [
           fhir:v "urn://example.com/ph-core/fhir/CodeSystem/PSGC"^^xsd:anyURI ;
           fhir:l <urn://example.com/ph-core/fhir/CodeSystem/PSGC>
         ] ;
         fhir:code [ fhir:v "1380100000" ] ;
         fhir:display [ fhir:v "City of Caloocan" ]
       ]
     ] [
       fhir:url [
         fhir:v "urn://example.com/ph-core/fhir/StructureDefinition/province"^^xsd:anyURI ;
         fhir:l <urn://example.com/ph-core/fhir/StructureDefinition/province>
       ] ;
       fhir:value [
         a fhir:Coding ;
         fhir:system [
           fhir:v "urn://example.com/ph-core/fhir/CodeSystem/PSGC"^^xsd:anyURI ;
           fhir:l <urn://example.com/ph-core/fhir/CodeSystem/PSGC>
         ] ;
         fhir:code [ fhir:v "0402100000" ] ;
         fhir:display [ fhir:v "Cavite" ]
       ]
     ] [
       fhir:url [
         fhir:v "urn://example.com/ph-core/fhir/StructureDefinition/province"^^xsd:anyURI ;
         fhir:l <urn://example.com/ph-core/fhir/StructureDefinition/province>
       ] ;
       fhir:value [
         a fhir:Coding ;
         fhir:system [
           fhir:v "urn://example.com/ph-core/fhir/CodeSystem/PSGC"^^xsd:anyURI ;
           fhir:l <urn://example.com/ph-core/fhir/CodeSystem/PSGC>
         ] ;
         fhir:code [ fhir:v "0403400000" ] ;
         fhir:display [ fhir:v "Laguna" ]
       ]
     ] [
       fhir:url [
         fhir:v "urn://example.com/ph-core/fhir/StructureDefinition/province"^^xsd:anyURI ;
         fhir:l <urn://example.com/ph-core/fhir/StructureDefinition/province>
       ] ;
       fhir:value [
         a fhir:Coding ;
         fhir:system [
           fhir:v "urn://example.com/ph-core/fhir/CodeSystem/PSGC"^^xsd:anyURI ;
           fhir:l <urn://example.com/ph-core/fhir/CodeSystem/PSGC>
         ] ;
         fhir:code [ fhir:v "0405800000" ] ;
         fhir:display [ fhir:v "Rizal" ]
       ]
     ] [
       fhir:url [
         fhir:v "urn://example.com/ph-core/fhir/StructureDefinition/province"^^xsd:anyURI ;
         fhir:l <urn://example.com/ph-core/fhir/StructureDefinition/province>
       ] ;
       fhir:value [
         a fhir:Coding ;
         fhir:system [
           fhir:v "urn://example.com/ph-core/fhir/CodeSystem/PSGC"^^xsd:anyURI ;
           fhir:l <urn://example.com/ph-core/fhir/CodeSystem/PSGC>
         ] ;
         fhir:code [ fhir:v "1704000000" ] ;
         fhir:display [ fhir:v "Marinduque" ]
       ]
     ] [
       fhir:url [
         fhir:v "urn://example.com/ph-core/fhir/StructureDefinition/province"^^xsd:anyURI ;
         fhir:l <urn://example.com/ph-core/fhir/StructureDefinition/province>
       ] ;
       fhir:value [
         a fhir:Coding ;
         fhir:system [
           fhir:v "urn://example.com/ph-core/fhir/CodeSystem/PSGC"^^xsd:anyURI ;
           fhir:l <urn://example.com/ph-core/fhir/CodeSystem/PSGC>
         ] ;
         fhir:code [ fhir:v "0402100000" ] ;
         fhir:display [ fhir:v "Cavite" ]
       ]
     ] [
       fhir:url [
         fhir:v "urn://example.com/ph-core/fhir/StructureDefinition/province"^^xsd:anyURI ;
         fhir:l <urn://example.com/ph-core/fhir/StructureDefinition/province>
       ] ;
       fhir:value [
         a fhir:Coding ;
         fhir:system [
           fhir:v "urn://example.com/ph-core/fhir/CodeSystem/PSGC"^^xsd:anyURI ;
           fhir:l <urn://example.com/ph-core/fhir/CodeSystem/PSGC>
         ] ;
         fhir:code [ fhir:v "1705100000" ] ;
         fhir:display [ fhir:v "Occidental Mindoro" ]
       ]
     ] ) ;
     fhir:line ( [ fhir:v "123 Mabini Street" ] [ fhir:v "Barangay Malinis" ] ) ;
     fhir:city [ fhir:v "Quezon City" ] ;
     fhir:district [ fhir:v "NCR" ] ;
     fhir:postalCode [ fhir:v "1100" ] ;
     fhir:country [ fhir:v "PH" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

