@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 -------------------------------------------------------------------

<https://nhdr.gov.ph/fhir/Bundle/Konsulta-RequestforAuthorizationTransactionCode> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "Konsulta-RequestforAuthorizationTransactionCode"] ; # 
  fhir:identifier [
     fhir:system [
       fhir:v "http://nhdr.gov.ph/fhir/ValueSet-form-type"^^xsd:anyURI ;
       fhir:l <http://nhdr.gov.ph/fhir/ValueSet-form-type>
     ] ;
     fhir:value [ fhir:v "Request-for-Authorization-Transaction-Code" ]
  ] ; # 
  fhir:type [ fhir:v "transaction"] ; # 
  fhir:entry ( [
     fhir:fullUrl [
       fhir:v "urn:uuid:patient-2"^^xsd:anyURI ;
       fhir:l <urn:uuid:patient-2>
     ] ;
     fhir:resource ( <urn:uuid:patient-2> ) ;
     fhir:request [
       fhir:method [ fhir:v "POST" ] ;
       fhir:url [
         fhir:v "Patient"^^xsd:anyURI ;
         fhir:l fhir:Patient
       ]
     ]
  ] [
     fhir:fullUrl [
       fhir:v "urn:uuid:organization-2"^^xsd:anyURI ;
       fhir:l <urn:uuid:organization-2>
     ] ;
     fhir:resource ( <urn:uuid:organization-2> ) ;
     fhir:request [
       fhir:method [ fhir:v "POST" ] ;
       fhir:url [
         fhir:v "Organization"^^xsd:anyURI ;
         fhir:l fhir:Organization
       ]
     ]
  ] [
     fhir:fullUrl [
       fhir:v "urn:uuid:provenance-2"^^xsd:anyURI ;
       fhir:l <urn:uuid:provenance-2>
     ] ;
     fhir:resource ( <urn:uuid:provenance-2> ) ;
     fhir:request [
       fhir:method [ fhir:v "POST" ] ;
       fhir:url [
         fhir:v "Provenance"^^xsd:anyURI ;
         fhir:l fhir:Provenance
       ]
     ]
  ] [
     fhir:fullUrl [
       fhir:v "urn:uuid:appointment-2"^^xsd:anyURI ;
       fhir:l <urn:uuid:appointment-2>
     ] ;
     fhir:resource ( <urn:uuid:appointment-2> ) ;
     fhir:request [
       fhir:method [ fhir:v "POST" ] ;
       fhir:url [
         fhir:v "Appointment"^^xsd:anyURI ;
         fhir:l fhir:Appointment
       ]
     ]
  ] ) . # 

<urn:uuid:patient-2> a fhir:Patient ;
  fhir:id [ fhir:v "K1-Patient"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://nhdr.gov.ph/fhir/StructureDefinition/PH-Patient"^^xsd:anyURI ;
       fhir:l <https://nhdr.gov.ph/fhir/StructureDefinition/PH-Patient>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Patient_K1-Patient\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Patient K1-Patient</b></p><a name=\"K1-Patient\"> </a><a name=\"hcK1-Patient\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-PH-Patient.html\">PH Patient</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Quinn Ry Senilla  (no stated gender), DoB: 1990-05-10 ( PhilHealth ID: PH-00001)</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Patient\">Contact Detail</td><td colspan=\"3\"><ul><li>ph: 09456469323</li><li></li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Patient Links\">Links:</td><td colspan=\"3\"><ul><li>General Practitioner: <a href=\"Bundle-Konsulta-Availment-Slip.html#Organization_K1-Organization\">Organization 6th General Hospital</a></li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Patient Type\"><a href=\"StructureDefinition-PatientType.html\">Patient Type</a></td><td colspan=\"3\"><span title=\"Codes:{https://nhdr.gov.ph/fhir/ValueSet/PatientTypeVS MM}\">Member</span></td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "https://nhdr.gov.ph/fhir/StructureDefinition/PatientType"^^xsd:anyURI ;
       fhir:l <https://nhdr.gov.ph/fhir/StructureDefinition/PatientType>
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         fhir:system [
           fhir:v "https://nhdr.gov.ph/fhir/ValueSet/PatientTypeVS"^^xsd:anyURI ;
           fhir:l <https://nhdr.gov.ph/fhir/ValueSet/PatientTypeVS>
         ] ;
         fhir:code [ fhir:v "MM" ] ;
         fhir:display [ fhir:v "Member" ]
       ] )
     ]
  ] ) ; # 
  fhir:identifier ( [
     fhir:type [
       fhir:text [ fhir:v "PhilHealth ID" ]
     ] ;
     fhir:system [
       fhir:v "http://nhdr.gov.ph/fhir/Identifier/philhealth-id"^^xsd:anyURI ;
       fhir:l <http://nhdr.gov.ph/fhir/Identifier/philhealth-id>
     ] ;
     fhir:value [ fhir:v "PH-00001" ]
  ] ) ; # 
  fhir:name ( [
     fhir:family [ fhir:v "Senilla" ] ;
     fhir:given ( [ fhir:v "Quinn" ] [ fhir:v "Ry" ] )
  ] ) ; # 
  fhir:telecom ( [
     fhir:system [ fhir:v "phone" ] ;
     fhir:value [ fhir:v "09456469323" ]
  ] ) ; # 
  fhir:birthDate [ fhir:v "1990-05-10"^^xsd:date] ; # 
  fhir:address ( [
     fhir:extension ( [
       fhir:url [
         fhir:v "https://nhdr.gov.ph/fhir/StructureDefinition/Province"^^xsd:anyURI ;
         fhir:l <https://nhdr.gov.ph/fhir/StructureDefinition/Province>
       ] ;
       fhir:value [
         a fhir:Coding ;
         fhir:system [
           fhir:v "https://psa.gov.ph/classification/psgc"^^xsd:anyURI ;
           fhir:l <https://psa.gov.ph/classification/psgc>
         ] ;
         fhir:code [ fhir:v "036900000" ] ;
         fhir:display [ fhir:v "Tarlac" ]
       ]
     ] [
       fhir:url [
         fhir:v "https://nhdr.gov.ph/fhir/StructureDefinition/CityMunicipality"^^xsd:anyURI ;
         fhir:l <https://nhdr.gov.ph/fhir/StructureDefinition/CityMunicipality>
       ] ;
       fhir:value [
         a fhir:Coding ;
         fhir:system [
           fhir:v "https://psa.gov.ph/classification/psgc"^^xsd:anyURI ;
           fhir:l <https://psa.gov.ph/classification/psgc>
         ] ;
         fhir:code [ fhir:v "036916000" ] ;
         fhir:display [ fhir:v "Tarlac City" ]
       ]
     ] [
       fhir:url [
         fhir:v "https://nhdr.gov.ph/fhir/StructureDefinition/Barangay"^^xsd:anyURI ;
         fhir:l <https://nhdr.gov.ph/fhir/StructureDefinition/Barangay>
       ] ;
       fhir:value [
         a fhir:Coding ;
         fhir:system [
           fhir:v "https://psa.gov.ph/classification/psgc"^^xsd:anyURI ;
           fhir:l <https://psa.gov.ph/classification/psgc>
         ] ;
         fhir:code [ fhir:v "036916001" ] ;
         fhir:display [ fhir:v "San Roque" ]
       ]
     ] )
  ] ) ; # 
  fhir:generalPractitioner ( [
     fhir:l <https://nhdr.gov.ph/fhir/Organization/K1-Organization> ;
     fhir:reference [ fhir:v "Organization/K1-Organization" ]
  ] ) . # 

<urn:uuid:organization-2> a fhir:Organization ;
  fhir:id [ fhir:v "K2-Organization"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://nhdr.gov.ph/fhir/StructureDefinition/PH-Organization"^^xsd:anyURI ;
       fhir:l <https://nhdr.gov.ph/fhir/StructureDefinition/PH-Organization>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Organization_K2-Organization\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Organization K2-Organization</b></p><a name=\"K2-Organization\"> </a><a name=\"hcK2-Organization\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-PH-Organization.html\">PH Organization</a></p></div><p><b>name</b>: Philippine Health Insurance Corporation</p><h3>Contacts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Name</b></td></tr><tr><td style=\"display: none\">*</td><td>Dr. Maria Santos</td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:name [ fhir:v "Philippine Health Insurance Corporation"] ; # 
  fhir:contact ( [
     fhir:name [
       fhir:text [ fhir:v "Dr. Maria Santos" ]
     ]
  ] ) . # 

<urn:uuid:provenance-2> a fhir:Provenance ;
  fhir:id [ fhir:v "K1-Provenance"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://nhdr.gov.ph/fhir/StructureDefinition/PH-Provenance"^^xsd:anyURI ;
       fhir:l <https://nhdr.gov.ph/fhir/StructureDefinition/PH-Provenance>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Provenance_K1-Provenance\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Provenance K1-Provenance</b></p><a name=\"K1-Provenance\"> </a><a name=\"hcK1-Provenance\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-PH-Provenance.html\">PH Provenance</a></p></div><p>Provenance for <a href=\"Bundle-Konsulta-Availment-Slip.html#Patient_K1-Patient\">Patient</a></p><p>Summary</p><table class=\"grid\"><tr><td>Recorded</td><td>2026-02-03 09:00:00+0800</td></tr></table><p><b>Agents</b></p><table class=\"grid\"><tr><td><b>who</b></td></tr><tr><td><a href=\"Bundle-ClaimsForm1-1.html#Organization_CF1-Organization\">Organization</a></td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:target ( [
     fhir:l <https://nhdr.gov.ph/fhir/Patient/K1-Patient> ;
     fhir:reference [ fhir:v "Patient/K1-Patient" ] ;
     fhir:display [ fhir:v "Patient" ]
  ] ) ; # 
  fhir:recorded [ fhir:v "2026-02-03T09:00:00+08:00"^^xsd:dateTime] ; # 
  fhir:agent ( [
     fhir:who [
       fhir:l <https://nhdr.gov.ph/fhir/Organization/CF1-Organization> ;
       fhir:reference [ fhir:v "Organization/CF1-Organization" ] ;
       fhir:display [ fhir:v "Organization" ]
     ]
  ] ) ; # 
  fhir:signature ( [
     fhir:type ( [
       fhir:system [
         fhir:v "urn:iso-astm:E1762-95:2013"^^xsd:anyURI ;
         fhir:l <urn:iso-astm:E1762-95:2013>
       ] ;
       fhir:code [ fhir:v "1.2.840.10065.1.12.1.20" ] ;
       fhir:display [ fhir:v "Electronic Signature" ]
     ] ) ;
     fhir:when [ fhir:v "2026-02-03T10:30:00+08:00"^^xsd:dateTime ] ;
     fhir:who [
       fhir:l <https://nhdr.gov.ph/fhir/Patient/K1-Patient> ;
       fhir:reference [ fhir:v "Patient/K1-Patient" ] ;
       fhir:display [ fhir:v "Patient" ]
     ] ;
     fhir:data [ fhir:v "QkFTRTY0X1NJR05BVFVSRV9QQVRJRU5U"^^xsd:base64Binary ]
  ] [
     fhir:type ( [
       fhir:system [
         fhir:v "urn:iso-astm:E1762-95:2013"^^xsd:anyURI ;
         fhir:l <urn:iso-astm:E1762-95:2013>
       ] ;
       fhir:code [ fhir:v "1.2.840.10065.1.12.1.20" ] ;
       fhir:display [ fhir:v "Electronic Signature" ]
     ] ) ;
     fhir:when [ fhir:v "2026-02-03T10:30:00+08:00"^^xsd:dateTime ] ;
     fhir:who [
       fhir:l <https://nhdr.gov.ph/fhir/Practitioner/K1-Practitioner> ;
       fhir:reference [ fhir:v "Practitioner/K1-Practitioner" ] ;
       fhir:display [ fhir:v "Practitioner" ]
     ] ;
     fhir:data [ fhir:v "QkFTRTY0X1NJR05BVFVSRV9QQVRJRU5U"^^xsd:base64Binary ]
  ] ) . # 

<urn:uuid:appointment-2> a fhir:Appointment ;
  fhir:id [ fhir:v "K2-Appointment"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://nhdr.gov.ph/fhir/StructureDefinition/PH-Appointment"^^xsd:anyURI ;
       fhir:l <https://nhdr.gov.ph/fhir/StructureDefinition/PH-Appointment>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Appointment_K2-Appointment\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Appointment K2-Appointment</b></p><a name=\"K2-Appointment\"> </a><a name=\"hcK2-Appointment\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-PH-Appointment.html\">PH Appointment</a></p></div><p><b>identifier</b>: <code>https://nhdr.gov.ph/fhir/Identifier/appointment-id</code>/K2-APPT-0001</p><p><b>status</b>: Booked</p><p><b>created</b>: 2026-03-01 08:30:00+0800</p><h3>Participants</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Actor</b></td><td><b>Status</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Bundle-Konsulta-Availment-Slip.html#Patient_K1-Patient\">Patient</a></td><td>Accepted</td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "https://nhdr.gov.ph/fhir/Identifier/appointment-id"^^xsd:anyURI ;
       fhir:l <https://nhdr.gov.ph/fhir/Identifier/appointment-id>
     ] ;
     fhir:value [ fhir:v "K2-APPT-0001" ]
  ] ) ; # 
  fhir:status [ fhir:v "booked"] ; # 
  fhir:created [ fhir:v "2026-03-01T08:30:00+08:00"^^xsd:dateTime] ; # 
  fhir:participant ( [
     fhir:actor [
       fhir:l <https://nhdr.gov.ph/fhir/Patient/K1-Patient> ;
       fhir:reference [ fhir:v "Patient/K1-Patient" ] ;
       fhir:display [ fhir:v "Patient" ]
     ] ;
     fhir:status [ fhir:v "Accepted" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

