PH Core Implementation Guide
0.1.0 - ci-build Philippines flag

PH Core Implementation Guide, published by UP Manila SILab. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/UP-Manila-SILab/ph-core/ and changes regularly. See the Directory of published versions

: transaction-ex - TTL Representation

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://loinc.org/rdf/> .
@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "transaction-ex"] ; # 
  fhir:type [ fhir:v "transaction"] ; # 
  fhir:entry ( [
fhir:fullUrl [ fhir:v "urn:uuid:64eb2d39-8da6-4c1d-b4c7-a6d3e916cd5b"^^xsd:anyURI ] ;
    ( fhir:resource <urn:uuid:64eb2d39-8da6-4c1d-b4c7-a6d3e916cd5b> ) ;
fhir:request [
fhir:method [ fhir:v "POST" ] ;
fhir:url [ fhir:v "Patient"^^xsd:anyURI ]     ]
  ] [
fhir:fullUrl [ fhir:v "urn:uuid:60b7132e-7cfd-44bc-83c2-de140dc8aaae"^^xsd:anyURI ] ;
    ( fhir:resource <urn:uuid:60b7132e-7cfd-44bc-83c2-de140dc8aaae> ) ;
fhir:request [
fhir:method [ fhir:v "POST" ] ;
fhir:url [ fhir:v "Encounter"^^xsd:anyURI ]     ]
  ] [
fhir:fullUrl [ fhir:v "urn:uuid:1a391d1e-a068-479a-88e3-e3d52c3a6f64"^^xsd:anyURI ] ;
    ( fhir:resource <urn:uuid:1a391d1e-a068-479a-88e3-e3d52c3a6f64> ) ;
fhir:request [
fhir:method [ fhir:v "POST" ] ;
fhir:url [ fhir:v "Condition"^^xsd:anyURI ]     ]
  ] [
fhir:fullUrl [ fhir:v "urn:uuid:024dcb47-cc23-407a-839b-b4634e95abae"^^xsd:anyURI ] ;
    ( fhir:resource <urn:uuid:024dcb47-cc23-407a-839b-b4634e95abae> ) ;
fhir:request [
fhir:method [ fhir:v "POST" ] ;
fhir:url [ fhir:v "Medication"^^xsd:anyURI ]     ]
  ] [
fhir:fullUrl [ fhir:v "urn:uuid:013f46df-f245-4a2f-beaf-9eb2c47fb1a3"^^xsd:anyURI ] ;
    ( fhir:resource <urn:uuid:013f46df-f245-4a2f-beaf-9eb2c47fb1a3> ) ;
fhir:request [
fhir:method [ fhir:v "POST" ] ;
fhir:url [ fhir:v "Observation"^^xsd:anyURI ]     ]
  ] [
fhir:fullUrl [ fhir:v "urn:uuid:b43c67e7-d9c4-48bb-a1b4-55769eeb9066"^^xsd:anyURI ] ;
    ( fhir:resource <urn:uuid:b43c67e7-d9c4-48bb-a1b4-55769eeb9066> ) ;
fhir:request [
fhir:method [ fhir:v "POST" ] ;
fhir:url [ fhir:v "AllergyIntolerance"^^xsd:anyURI ]     ]
  ] [
fhir:fullUrl [ fhir:v "urn:uuid:a036fd4c-c950-497b-8905-0d2c5ec6f1d4"^^xsd:anyURI ] ;
    ( fhir:resource <urn:uuid:a036fd4c-c950-497b-8905-0d2c5ec6f1d4> ) ;
fhir:request [
fhir:method [ fhir:v "POST" ] ;
fhir:url [ fhir:v "Practitioner"^^xsd:anyURI ]     ]
  ] ) . # 

<urn:uuid:64eb2d39-8da6-4c1d-b4c7-a6d3e916cd5b> a fhir:Patient ;
  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:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<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:value [
a fhir:CodeableConcept ;
        ( fhir:coding [
fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ;
fhir:code [ fhir:v "PH" ] ;
fhir:display [ fhir:v "Philippines" ]         ] )       ]     ] [
fhir:url [ fhir:v "period"^^xsd:anyURI ] ;
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:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/patient-religion"^^xsd:anyURI ] ;
fhir:value [
a fhir:CodeableConcept ;
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation"^^xsd:anyURI ] ;
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:value [
a fhir:boolean ;
fhir:v true     ]
  ] [
fhir:url [ fhir:v "urn://example.com/ph-core/fhir/StructureDefinition/indigenous-group"^^xsd:anyURI ] ;
fhir:value [
a fhir:CodeableConcept ;
      ( fhir:coding [
fhir:system [ fhir:v "urn://example.com/ph-core/fhir/CodeSystem/indigenous-groups"^^xsd:anyURI ] ;
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:value [
a fhir:CodeableConcept ;
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-Race"^^xsd:anyURI ] ;
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: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:value [
a fhir:Coding ;
fhir:system [ fhir:v "urn://example.com/ph-core/fhir/CodeSystem/PSGC"^^xsd:anyURI ] ;
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:value [
a fhir:Coding ;
fhir:system [ fhir:v "urn://example.com/ph-core/fhir/CodeSystem/PSGC"^^xsd:anyURI ] ;
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:value [
a fhir:Coding ;
fhir:system [ fhir:v "urn://example.com/ph-core/fhir/CodeSystem/PSGC"^^xsd:anyURI ] ;
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:value [
a fhir:Coding ;
fhir:system [ fhir:v "urn://example.com/ph-core/fhir/CodeSystem/PSGC"^^xsd:anyURI ] ;
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:value [
a fhir:Coding ;
fhir:system [ fhir:v "urn://example.com/ph-core/fhir/CodeSystem/PSGC"^^xsd:anyURI ] ;
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:value [
a fhir:Coding ;
fhir:system [ fhir:v "urn://example.com/ph-core/fhir/CodeSystem/PSGC"^^xsd:anyURI ] ;
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:value [
a fhir:Coding ;
fhir:system [ fhir:v "urn://example.com/ph-core/fhir/CodeSystem/PSGC"^^xsd:anyURI ] ;
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:value [
a fhir:Coding ;
fhir:system [ fhir:v "urn://example.com/ph-core/fhir/CodeSystem/PSGC"^^xsd:anyURI ] ;
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" ]
  ] ) . # 

<urn:uuid:60b7132e-7cfd-44bc-83c2-de140dc8aaae> a fhir:Encounter ;
  fhir:id [ fhir:v "example-encounter"] ; # 
  fhir:meta [
    ( fhir:profile [ fhir:v "urn://example.com/ph-core/fhir/StructureDefinition/ph-core-encounter"^^xsd:anyURI ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">An ambulatory encounter for Juan Dela Cruz that has been completed.</div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:status [ fhir:v "finished"] ; # 
  fhir:class [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ] ;
fhir:code [ fhir:v "AMB" ] ;
fhir:display [ fhir:v "ambulatory" ]
  ] ; # 
  fhir:subject [
fhir:reference [ fhir:v "urn:uuid:64eb2d39-8da6-4c1d-b4c7-a6d3e916cd5b" ]
  ] . # 

<urn:uuid:1a391d1e-a068-479a-88e3-e3d52c3a6f64> a fhir:Condition ;
  fhir:id [ fhir:v "example-condition"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Juan Dela Cruz has an active diagnosis of Type 2 Diabetes Mellitus.</div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:clinicalStatus [
    ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ] ;
fhir:code [ fhir:v "active" ] ;
fhir:display [ fhir:v "Active" ]     ] )
  ] ; # 
  fhir:code [
    ( fhir:coding [
a sct:44054006 ;
fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
fhir:code [ fhir:v "44054006" ] ;
fhir:display [ fhir:v "Diabetes mellitus type 2" ]     ] )
  ] ; # 
  fhir:subject [
fhir:reference [ fhir:v "urn:uuid:64eb2d39-8da6-4c1d-b4c7-a6d3e916cd5b" ]
  ] ; # 
  fhir:encounter [
fhir:reference [ fhir:v "urn:uuid:60b7132e-7cfd-44bc-83c2-de140dc8aaae" ]
  ] . # 

<urn:uuid:024dcb47-cc23-407a-839b-b4634e95abae> a fhir:Medication ;
  fhir:id [ fhir:v "example-medication"] ; # 
  fhir:meta [
    ( fhir:profile [ fhir:v "urn://example.com/ph-core/fhir/StructureDefinition/ph-core-medication"^^xsd:anyURI ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">A medication resource has been created, but no specific details are provided.</div>"^^rdf:XMLLiteral
  ] . # 

<urn:uuid:013f46df-f245-4a2f-beaf-9eb2c47fb1a3> a fhir:Observation ;
  fhir:id [ fhir:v "blood-pressure"] ; # 
  fhir:meta [
    ( fhir:profile [ fhir:v "urn://example.com/ph-core/fhir/StructureDefinition/ph-core-observation"^^xsd:anyURI ] [
fhir:v "http://hl7.org/fhir/StructureDefinition/vitalsigns"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/vitalsigns>     ] [
fhir:v "http://hl7.org/fhir/StructureDefinition/bp"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/bp>     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">On 17 September 2012, a blood pressure observation was recorded for Juan Dela Cruz. The systolic pressure was 107 mmHg (Normal), and the diastolic pressure was 60 mmHg (Below low normal). The measurement was taken from the right arm and performed by a practitioner.</div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:identifier ( [
fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
fhir:value [ fhir:v "urn:uuid:187e0c12-8dd2-67e2-99b2-bf273c878281" ]
  ] ) ; # 
  fhir:basedOn ( [
fhir:identifier [
fhir:system [ fhir:v "https://acme.org/identifiers"^^xsd:anyURI ] ;
fhir:value [ fhir:v "1234" ]     ]
  ] ) ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:category ( [
    ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/observation-category"^^xsd:anyURI ] ;
fhir:code [ fhir:v "vital-signs" ] ;
fhir:display [ fhir:v "Vital Signs" ]     ] )
  ] ) ; # 
  fhir:code [
    ( fhir:coding [
a loinc:85354-9 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "85354-9" ] ;
fhir:display [ fhir:v "Blood pressure panel with all children optional" ]     ] ) ;
fhir:text [ fhir:v "Blood pressure systolic & diastolic" ]
  ] ; # 
  fhir:subject [
fhir:reference [ fhir:v "urn:uuid:64eb2d39-8da6-4c1d-b4c7-a6d3e916cd5b" ]
  ] ; # 
  fhir:effective [
a fhir:dateTime ;
fhir:v "2012-09-17"^^xsd:date
  ] ; # 
  fhir:performer ( [
fhir:reference [ fhir:v "urn:uuid:a036fd4c-c950-497b-8905-0d2c5ec6f1d4" ]
  ] ) ; # 
  fhir:interpretation ( [
    ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"^^xsd:anyURI ] ;
fhir:code [ fhir:v "L" ] ;
fhir:display [ fhir:v "Low" ]     ] ) ;
fhir:text [ fhir:v "Below low normal" ]
  ] ) ; # 
  fhir:bodySite [
    ( fhir:coding [
a sct:368209003 ;
fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
fhir:code [ fhir:v "368209003" ] ;
fhir:display [ fhir:v "Right arm" ]     ] )
  ] ; # 
  fhir:component ( [
fhir:code [
      ( fhir:coding [
a loinc:8480-6 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "8480-6" ] ;
fhir:display [ fhir:v "Systolic blood pressure" ]       ] )     ] ;
fhir:value [
a fhir:Quantity ;
fhir:value [ fhir:v "107"^^xsd:decimal ] ;
fhir:unit [ fhir:v "mmHg" ] ;
fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "mm[Hg]" ]     ] ;
    ( fhir:interpretation [
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"^^xsd:anyURI ] ;
fhir:code [ fhir:v "N" ] ;
fhir:display [ fhir:v "Normal" ]       ] ) ;
fhir:text [ fhir:v "Normal" ]     ] )
  ] [
fhir:code [
      ( fhir:coding [
a loinc:8462-4 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "8462-4" ] ;
fhir:display [ fhir:v "Diastolic blood pressure" ]       ] )     ] ;
fhir:value [
a fhir:Quantity ;
fhir:value [ fhir:v "60"^^xsd:decimal ] ;
fhir:unit [ fhir:v "mmHg" ] ;
fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "mm[Hg]" ]     ] ;
    ( fhir:interpretation [
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"^^xsd:anyURI ] ;
fhir:code [ fhir:v "L" ] ;
fhir:display [ fhir:v "Low" ]       ] ) ;
fhir:text [ fhir:v "Below low normal" ]     ] )
  ] ) . # 

<urn:uuid:b43c67e7-d9c4-48bb-a1b4-55769eeb9066> a fhir:AllergyIntolerance ;
  fhir:id [ fhir:v "example-allergy"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Juan Dela Cruz has a high criticality, active allergy to Benethamine penicillin.</div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:clinicalStatus [
    ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical"^^xsd:anyURI ] ;
fhir:code [ fhir:v "active" ] ;
fhir:display [ fhir:v "Active" ]     ] )
  ] ; # 
  fhir:criticality [ fhir:v "high"] ; # 
  fhir:code [
    ( fhir:coding [
a sct:294494002 ;
fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
fhir:code [ fhir:v "294494002" ] ;
fhir:display [ fhir:v "Benethamine penicillin allergy" ]     ] )
  ] ; # 
  fhir:patient [
fhir:reference [ fhir:v "urn:uuid:64eb2d39-8da6-4c1d-b4c7-a6d3e916cd5b" ]
  ] . # 

<urn:uuid:a036fd4c-c950-497b-8905-0d2c5ec6f1d4> a fhir:Practitioner ;
  fhir:id [ fhir:v "example-practitioner"] ; # 
  fhir:meta [
    ( fhir:profile [ fhir:v "urn://example.com/ph-core/fhir/StructureDefinition/ph-core-practitioner"^^xsd:anyURI ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Dr. Maria Clara Santos is a female practitioner born on May 15, 1985. She resides at 1234 Mabini Street, Manila, NCR, 1000, Philippines. She can be contacted via mobile at +63-912-345-6789 or by email at maria.santos@example.ph.</div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:name ( [
fhir:family [ fhir:v "Santos" ] ;
    ( fhir:given [ fhir:v "Maria" ] [ fhir:v "Clara" ] )
  ] ) ; # 
  fhir:telecom ( [
fhir:system [ fhir:v "phone" ] ;
fhir:value [ fhir:v "+63-912-345-6789" ] ;
fhir:use [ fhir:v "mobile" ]
  ] [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "maria.santos@example.ph" ] ;
fhir:use [ fhir:v "work" ]
  ] ) ; # 
  fhir:address ( [
fhir:use [ fhir:v "home" ] ;
    ( fhir:line [ fhir:v "1234 Mabini Street" ] ) ;
fhir:city [ fhir:v "Manila" ] ;
fhir:state [ fhir:v "NCR" ] ;
fhir:postalCode [ fhir:v "1000" ] ;
fhir:country [ fhir:v "PH" ]
  ] ) ; # 
  fhir:gender [ fhir:v "female"] ; # 
  fhir:birthDate [ fhir:v "1985-05-15"^^xsd:date] . #