@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://nuts-foundation.github.io/nl-generic-functions-ig/Bundle/phi-org3> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "phi-org3"] ; # 
  fhir:type [ fhir:v "transaction"] ; # 
  fhir:entry ( [
     fhir:fullUrl [
       fhir:v "urn:uuid:96e7aa36-6d66-4a9e-bf6b-245d97d8ec1d"^^xsd:anyURI ;
       fhir:l <urn:uuid:96e7aa36-6d66-4a9e-bf6b-245d97d8ec1d>
     ] ;
     fhir:resource ( <urn:uuid:96e7aa36-6d66-4a9e-bf6b-245d97d8ec1d> ) ;
     fhir:request [
       fhir:method [ fhir:v "PUT" ] ;
       fhir:url [
         fhir:v "Patient/96e7aa36-6d66-4a9e-bf6b-245d97d8ec1d"^^xsd:anyURI ;
         fhir:l <http://nuts-foundation.github.io/nl-generic-functions-ig/Patient/96e7aa36-6d66-4a9e-bf6b-245d97d8ec1d>
       ]
     ]
  ] [
     fhir:fullUrl [
       fhir:v "urn:uuid:8732d369-7759-447b-af01-f3e0c601b452"^^xsd:anyURI ;
       fhir:l <urn:uuid:8732d369-7759-447b-af01-f3e0c601b452>
     ] ;
     fhir:resource ( <urn:uuid:8732d369-7759-447b-af01-f3e0c601b452> ) ;
     fhir:request [
       fhir:method [ fhir:v "PUT" ] ;
       fhir:url [
         fhir:v "MedicationStatement/8732d369-7759-447b-af01-f3e0c601b452"^^xsd:anyURI ;
         fhir:l <http://nuts-foundation.github.io/nl-generic-functions-ig/MedicationStatement/8732d369-7759-447b-af01-f3e0c601b452>
       ]
     ]
  ] [
     fhir:fullUrl [
       fhir:v "urn:uuid:bd8f360a-7bf2-4b65-9202-f3c092525492"^^xsd:anyURI ;
       fhir:l <urn:uuid:bd8f360a-7bf2-4b65-9202-f3c092525492>
     ] ;
     fhir:resource ( <urn:uuid:bd8f360a-7bf2-4b65-9202-f3c092525492> ) ;
     fhir:request [
       fhir:method [ fhir:v "PUT" ] ;
       fhir:url [
         fhir:v "CareTeam/bd8f360a-7bf2-4b65-9202-f3c092525492"^^xsd:anyURI ;
         fhir:l <http://nuts-foundation.github.io/nl-generic-functions-ig/CareTeam/bd8f360a-7bf2-4b65-9202-f3c092525492>
       ]
     ]
  ] ) . # 

<urn:uuid:96e7aa36-6d66-4a9e-bf6b-245d97d8ec1d> a fhir:Patient ;
  fhir:id [ fhir:v "96e7aa36-6d66-4a9e-bf6b-245d97d8ec1d"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://nictiz.nl/fhir/StructureDefinition/nl-core-Patient"^^xsd:anyURI ;
       fhir:l <http://nictiz.nl/fhir/StructureDefinition/nl-core-Patient>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Patient_96e7aa36-6d66-4a9e-bf6b-245d97d8ec1d\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Patient 96e7aa36-6d66-4a9e-bf6b-245d97d8ec1d</b></p><a name=\"96e7aa36-6d66-4a9e-bf6b-245d97d8ec1d\"> </a><a name=\"hc96e7aa36-6d66-4a9e-bf6b-245d97d8ec1d\"> </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=\"https://simplifier.net/resolve?scope=nictiz.fhir.nl.r4.nl-core@0.12.0-beta.4&amp;canonical=http://nictiz.nl/fhir/StructureDefinition/nl-core-Patient\">nl core Patient</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Jaantje Merkens  Female, DoB: 1950-02-26 ( http://organization3.example.org/EHR/patients#126)</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Other Ids (see the one above)\">Other Ids:</td><td colspan=\"3\"><ul><li><code>http://fhir.nl/fhir/NamingSystem/bsn</code>/111222333</li><li><code>https://cp3-test.example.org/Patient</code>/96e7aa36-6d66-4a9e-bf6b-245d97d8ec1d</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Patient\">Contact Detail</td><td colspan=\"3\"><ul><li><a href=\"tel:+31612345678\">+31612345678</a></li><li><a href=\"mailto:j.merkens@bigtech.com\">j.merkens@bigtech.com</a></li><li>Kerkstraat 18 Ulft 7071 WZ </li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Patient Links\">Links:</td><td colspan=\"3\"><ul><li>Managing Organization: <a href=\"Organization-3e799075-63a2-4a4c-913d-a91b8198463d.html\">Organization 1</a></li></ul></td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "http://organization3.example.org/EHR/patients"^^xsd:anyURI ;
       fhir:l <http://organization3.example.org/EHR/patients>
     ] ;
     fhir:value [ fhir:v "126" ]
  ] [
     fhir:system [
       fhir:v "http://fhir.nl/fhir/NamingSystem/bsn"^^xsd:anyURI ;
       fhir:l <http://fhir.nl/fhir/NamingSystem/bsn>
     ] ;
     fhir:value [ fhir:v "111222333" ]
  ] [
     fhir:system [
       fhir:v "https://cp3-test.example.org/Patient"^^xsd:anyURI ;
       fhir:l <https://cp3-test.example.org/Patient>
     ] ;
     fhir:value [ fhir:v "96e7aa36-6d66-4a9e-bf6b-245d97d8ec1d" ] ;
     fhir:assigner [
       fhir:identifier [
         fhir:type [
           fhir:coding ( [
             fhir:system [
               fhir:v "http://terminology.hl7.org/CodeSystem/provenance-participant-type"^^xsd:anyURI ;
               fhir:l <http://terminology.hl7.org/CodeSystem/provenance-participant-type>
             ] ;
             fhir:code [ fhir:v "author" ]
           ] )
         ] ;
         fhir:system [
           fhir:v "http://fhir.nl/fhir/NamingSystem/ura"^^xsd:anyURI ;
           fhir:l <http://fhir.nl/fhir/NamingSystem/ura>
         ] ;
         fhir:value [ fhir:v "33333333" ]
       ]
     ]
  ] ) ; # 
  fhir:name ( [
     fhir:family [ fhir:v "Merkens" ] ;
     fhir:given ( [ fhir:v "Jaantje" ] )
  ] ) ; # 
  fhir:telecom ( [
     fhir:system [ fhir:v "phone" ] ;
     fhir:value [ fhir:v "+31612345678" ]
  ] [
     fhir:system [ fhir:v "email" ] ;
     fhir:value [ fhir:v "j.merkens@bigtech.com" ]
  ] ) ; # 
  fhir:gender [ fhir:v "female"] ; # 
  fhir:birthDate [ fhir:v "1950-02-26"^^xsd:date] ; # 
  fhir:address ( [
     fhir:line ( [ fhir:v "Kerkstraat 18" ] ) ;
     fhir:city [ fhir:v "Ulft" ] ;
     fhir:postalCode [ fhir:v "7071 WZ" ]
  ] ) ; # 
  fhir:managingOrganization [
     fhir:l <http://nuts-foundation.github.io/nl-generic-functions-ig/Organization/3e799075-63a2-4a4c-913d-a91b8198463d> ;
     fhir:reference [ fhir:v "Organization/3e799075-63a2-4a4c-913d-a91b8198463d" ] ;
     fhir:display [ fhir:v "Organization 1" ]
  ] . # 

<urn:uuid:8732d369-7759-447b-af01-f3e0c601b452> a fhir:MedicationStatement ;
  fhir:id [ fhir:v "8732d369-7759-447b-af01-f3e0c601b452"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"MedicationStatement_8732d369-7759-447b-af01-f3e0c601b452\"> </a><p class=\"res-header-id\"><b>Generated Narrative: MedicationStatement 8732d369-7759-447b-af01-f3e0c601b452</b></p><a name=\"8732d369-7759-447b-af01-f3e0c601b452\"> </a><a name=\"hc8732d369-7759-447b-af01-f3e0c601b452\"> </a><p><b>identifier</b>: <code>https://cp3-test.example.org/MedicationStatement</code>/8732d369-7759-447b-af01-f3e0c601b452</p><p><b>status</b>: Active</p><p><b>medication</b>: <span title=\"Codes:{http://www.whocc.no/atc L04AA32}\">apremilast</span></p><p><b>subject</b>: <a href=\"Bundle-phi-org3.html#Patient_96e7aa36-6d66-4a9e-bf6b-245d97d8ec1d\">Jaantje Merkens  Female, DoB: 1950-02-26 ( http://organization3.example.org/EHR/patients#126)</a></p><p><b>dateAsserted</b>: 2024-10-03</p><p><b>informationSource</b>: <a href=\"PractitionerRole-d60525bd-5caf-4437-8f4b-4156300a27de.html\">PractitionerRole Klinisch geriater</a></p><blockquote><p><b>dosage</b></p><p><b>text</b>: 10 mg orally every 4 hours</p><p><b>timing</b>: 6 per 1 day</p><h3>DoseAndRates</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Dose[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>10 mg</td></tr></table></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "https://cp3-test.example.org/MedicationStatement"^^xsd:anyURI ;
       fhir:l <https://cp3-test.example.org/MedicationStatement>
     ] ;
     fhir:value [ fhir:v "8732d369-7759-447b-af01-f3e0c601b452" ] ;
     fhir:assigner [
       fhir:identifier [
         fhir:type [
           fhir:coding ( [
             fhir:system [
               fhir:v "http://terminology.hl7.org/CodeSystem/provenance-participant-type"^^xsd:anyURI ;
               fhir:l <http://terminology.hl7.org/CodeSystem/provenance-participant-type>
             ] ;
             fhir:code [ fhir:v "author" ]
           ] )
         ] ;
         fhir:system [
           fhir:v "http://fhir.nl/fhir/NamingSystem/ura"^^xsd:anyURI ;
           fhir:l <http://fhir.nl/fhir/NamingSystem/ura>
         ] ;
         fhir:value [ fhir:v "33333333" ]
       ]
     ]
  ] ) ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:medication [
     a fhir:CodeableConcept ;
     fhir:coding ( [
       fhir:system [
         fhir:v "http://www.whocc.no/atc"^^xsd:anyURI ;
         fhir:l <http://www.whocc.no/atc>
       ] ;
       fhir:code [ fhir:v "L04AA32" ] ;
       fhir:display [ fhir:v "apremilast" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:l <http://nuts-foundation.github.io/nl-generic-functions-ig/Patient/96e7aa36-6d66-4a9e-bf6b-245d97d8ec1d> ;
     fhir:reference [ fhir:v "Patient/96e7aa36-6d66-4a9e-bf6b-245d97d8ec1d" ]
  ] ; # 
  fhir:dateAsserted [ fhir:v "2024-10-03"^^xsd:date] ; # 
  fhir:informationSource [
     fhir:l <http://nuts-foundation.github.io/nl-generic-functions-ig/PractitionerRole/d60525bd-5caf-4437-8f4b-4156300a27de> ;
     fhir:reference [ fhir:v "PractitionerRole/d60525bd-5caf-4437-8f4b-4156300a27de" ]
  ] ; # 
  fhir:dosage ( [
     fhir:text [ fhir:v "10 mg orally every 4 hours" ] ;
     fhir:timing [
       fhir:repeat [
         fhir:frequency [ fhir:v "6"^^xsd:positiveInteger ] ;
         fhir:period [ fhir:v "1"^^xsd:decimal ] ;
         fhir:periodUnit [ fhir:v "d" ]
       ]
     ] ;
     fhir:doseAndRate ( [
       fhir:dose [
         a fhir:Quantity ;
         fhir:value [ fhir:v "10"^^xsd:decimal ] ;
         fhir:unit [ fhir:v "mg" ]
       ]
     ] )
  ] ) . # 

<urn:uuid:bd8f360a-7bf2-4b65-9202-f3c092525492> a fhir:CareTeam ;
  fhir:id [ fhir:v "bd8f360a-7bf2-4b65-9202-f3c092525492"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"CareTeam_bd8f360a-7bf2-4b65-9202-f3c092525492\"> </a><p class=\"res-header-id\"><b>Generated Narrative: CareTeam bd8f360a-7bf2-4b65-9202-f3c092525492</b></p><a name=\"bd8f360a-7bf2-4b65-9202-f3c092525492\"> </a><a name=\"hcbd8f360a-7bf2-4b65-9202-f3c092525492\"> </a><p><b>identifier</b>: <code>https://cp3-test.example.org/CareTeam</code>/bd8f360a-7bf2-4b65-9202-f3c092525492</p><blockquote><p><b>participant</b></p><p><b>member</b>: <a href=\"Bundle-phi-org3.html#Patient_96e7aa36-6d66-4a9e-bf6b-245d97d8ec1d\">Jaantje Merkens  Female, DoB: 1950-02-26 ( http://organization3.example.org/EHR/patients#126)</a></p><p><b>period</b>: 2024-08-27 --&gt; (ongoing)</p></blockquote><blockquote><p><b>participant</b></p><p><b>member</b>: <a href=\"PractitionerRole-d60525bd-5caf-4437-8f4b-4156300a27de.html\">PractitionerRole Klinisch geriater</a></p><p><b>period</b>: 2024-08-27 --&gt; (ongoing)</p></blockquote><blockquote><p><b>participant</b></p><p><b>member</b>: <a href=\"Organization-3e799075-63a2-4a4c-913d-a91b8198463d.html\">Organization example Care Institution</a></p><p><b>period</b>: 2024-08-27 --&gt; (ongoing)</p></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "https://cp3-test.example.org/CareTeam"^^xsd:anyURI ;
       fhir:l <https://cp3-test.example.org/CareTeam>
     ] ;
     fhir:value [ fhir:v "bd8f360a-7bf2-4b65-9202-f3c092525492" ] ;
     fhir:assigner [
       fhir:identifier [
         fhir:type [
           fhir:coding ( [
             fhir:system [
               fhir:v "http://terminology.hl7.org/CodeSystem/provenance-participant-type"^^xsd:anyURI ;
               fhir:l <http://terminology.hl7.org/CodeSystem/provenance-participant-type>
             ] ;
             fhir:code [ fhir:v "author" ]
           ] )
         ] ;
         fhir:system [
           fhir:v "http://fhir.nl/fhir/NamingSystem/ura"^^xsd:anyURI ;
           fhir:l <http://fhir.nl/fhir/NamingSystem/ura>
         ] ;
         fhir:value [ fhir:v "33333333" ]
       ]
     ]
  ] ) ; # 
  fhir:participant ( [
     fhir:member [
       fhir:l <http://nuts-foundation.github.io/nl-generic-functions-ig/Patient/96e7aa36-6d66-4a9e-bf6b-245d97d8ec1d> ;
       fhir:reference [ fhir:v "Patient/96e7aa36-6d66-4a9e-bf6b-245d97d8ec1d" ]
     ] ;
     fhir:period [
       fhir:start [ fhir:v "2024-08-27"^^xsd:date ]
     ]
  ] [
     fhir:member [
       fhir:l <http://nuts-foundation.github.io/nl-generic-functions-ig/PractitionerRole/d60525bd-5caf-4437-8f4b-4156300a27de> ;
       fhir:reference [ fhir:v "PractitionerRole/d60525bd-5caf-4437-8f4b-4156300a27de" ]
     ] ;
     fhir:period [
       fhir:start [ fhir:v "2024-08-27"^^xsd:date ]
     ]
  ] [
     fhir:member [
       fhir:l <http://nuts-foundation.github.io/nl-generic-functions-ig/Organization/3e799075-63a2-4a4c-913d-a91b8198463d> ;
       fhir:reference [ fhir:v "Organization/3e799075-63a2-4a4c-913d-a91b8198463d" ] ;
       fhir:identifier [
         fhir:system [
           fhir:v "http://fhir.nl/fhir/NamingSystem/ura"^^xsd:anyURI ;
           fhir:l <http://fhir.nl/fhir/NamingSystem/ura>
         ] ;
         fhir:value [ fhir:v "33333333" ]
       ]
     ] ;
     fhir:period [
       fhir:start [ fhir:v "2024-08-27"^^xsd:date ]
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

