@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://gematik.de/fhir/isik/Encounter/FachabteilungskontaktNormal> a fhir:Encounter ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "FachabteilungskontaktNormal"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://gematik.de/fhir/isik/StructureDefinition/ISiKKontaktGesundheitseinrichtung"^^xsd:anyURI ;
       fhir:l <https://gematik.de/fhir/isik/StructureDefinition/ISiKKontaktGesundheitseinrichtung>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Encounter FachabteilungskontaktNormal</b></p><a name=\"FachabteilungskontaktNormal\"> </a><a name=\"hcFachabteilungskontaktNormal\"> </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-ISiKKontaktGesundheitseinrichtung.html\">ISiKKontaktGesundheitseinrichtung</a></p></div><blockquote><p><b>ExtensionAufnahmegrund</b></p><ul><li>ErsteUndZweiteStelle: <a href=\"https://simplifier.net/resolve?scope=de.basisprofil.r4@1.5.4&amp;canonical=http://fhir.de/CodeSystem/dkgev/AufnahmegrundErsteUndZweiteStelle#AufnahmegrundErsteUndZweiteStelle-01\">CodeSystemAufnahmegrundErsteUndZweiteStelle: 01</a> (Krankenhausbehandlung, vollstationär)</li></ul></blockquote><p><b>PlannedStartDate</b>: 2025-01-02</p><p><b>PlannedEndDate</b>: 2025-01-04</p><p><b>identifier</b>: Visit number/0123456789</p><p><b>status</b>: Finished</p><p><b>class</b>: <a href=\"http://terminology.hl7.org/7.1.0/CodeSystem-v3-ActCode.html#v3-ActCode-IMP\">ActCode: IMP</a> (inpatient encounter)</p><p><b>type</b>: <span title=\"Codes:{http://fhir.de/CodeSystem/Kontaktebene abteilungskontakt}\">Abteilungskontakt</span>, <span title=\"Codes:{http://fhir.de/CodeSystem/kontaktart-de operation}\">Operation</span></p><p><b>serviceType</b>: <span title=\"Codes:{http://fhir.de/CodeSystem/dkgev/Fachabteilungsschluessel 2300}\">Orthopädie</span></p><p><b>subject</b>: <a href=\"Patient-PatientinNormal.html\">Anna Müller (official) Female, DoB: 1957-08-12 ( Medical record number)</a></p><p><b>period</b>: 2024-10-21 --&gt; 2025-01-01</p><h3>Diagnoses</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Condition</b></td><td><b>Use</b></td><td><b>Rank</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Condition-PrimaereGonarthroseNormal.html\">Condition Primäre Gonarthrose, beidseitig</a></td><td><span title=\"Codes:{http://fhir.de/CodeSystem/KontaktDiagnoseProzedur treatment-diagnosis}\">Behandlungsrelevante Diagnosen</span></td><td>1</td></tr></table><p><b>account</b>: <a href=\"Account-AbrechnungsfallGonarthrose.html\">Account: identifier = Account number; status = active</a></p><h3>Hospitalizations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>AdmitSource</b></td><td><b>DischargeDisposition</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://fhir.de/CodeSystem/dgkev/Aufnahmeanlass E}\">Einweisung durch einen Arzt</span></td><td><span title=\"Codes:\"></span></td></tr></table><blockquote><p><b>location</b></p><p><b>location</b>: <a href=\"Location-RaumStandortBeispiel.html\">Zimmer 1234</a></p><p><b>status</b>: Active</p><p><b>physicalType</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/location-physical-type ro}\">Room</span></p></blockquote><blockquote><p><b>location</b></p><p><b>location</b>: <a href=\"Location-BettenstellplatzStandortBeispiel.html\">Bettenstellplatz 1234</a></p><p><b>status</b>: Active</p><p><b>physicalType</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/location-physical-type bd}\">Bed</span></p></blockquote><blockquote><p><b>location</b></p><p><b>location</b>: Ward 1234 (Identifier: <code>https://test.krankenhaus.de/fhir/sid/stationid</code>/1234)</p><p><b>status</b>: Active</p></blockquote><blockquote><p><b>location</b></p><p><b>location</b>: Ward 56789 (Identifier: <code>https://test.krankenhaus.de/fhir/sid/stationid</code>/56789)</p><p><b>status</b>: Completed</p><p><b>physicalType</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/location-physical-type wa}\">Ward</span></p></blockquote><p><b>serviceProvider</b>: Fachabteilung für Orthopädie und Endoprothetik (Identifier: <code>https://test.krankenhaus.de/fhir/sid/fachabteilungsid</code>/ORTHO-1234)</p></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:extension ( [
       fhir:url [
         fhir:v "ErsteUndZweiteStelle"^^xsd:anyURI ;
         fhir:l fhir:ErsteUndZweiteStelle
       ] ;
       fhir:value [
         a fhir:Coding ;
         fhir:system [
           fhir:v "http://fhir.de/CodeSystem/dkgev/AufnahmegrundErsteUndZweiteStelle"^^xsd:anyURI ;
           fhir:l <http://fhir.de/CodeSystem/dkgev/AufnahmegrundErsteUndZweiteStelle>
         ] ;
         fhir:code [ fhir:v "01" ] ;
         fhir:display [ fhir:v "Krankenhausbehandlung, vollstationär" ]
       ]
     ] ) ;
     fhir:url [
       fhir:v "http://fhir.de/StructureDefinition/Aufnahmegrund"^^xsd:anyURI ;
       fhir:l <http://fhir.de/StructureDefinition/Aufnahmegrund>
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Encounter.plannedStartDate"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-Encounter.plannedStartDate>
     ] ;
     fhir:value [
       a fhir:DateTime ;
       fhir:v "2025-01-02"^^xsd:date
     ]
  ] [
     fhir:url [
       fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Encounter.plannedEndDate"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-Encounter.plannedEndDate>
     ] ;
     fhir:value [
       a fhir:DateTime ;
       fhir:v "2025-01-04"^^xsd:date
     ]
  ] ) ; # 
  fhir:identifier ( [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/v2-0203"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/v2-0203>
         ] ;
         fhir:code [ fhir:v "VN" ]
       ] )
     ] ;
     fhir:system [
       fhir:v "https://test.krankenhaus.de/fhir/sid/besuchsnummer"^^xsd:anyURI ;
       fhir:l <https://test.krankenhaus.de/fhir/sid/besuchsnummer>
     ] ;
     fhir:value [ fhir:v "0123456789" ]
  ] ) ; # 
  fhir:status [ fhir:v "finished"] ; # 
  fhir:class [
     fhir:system [
       fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ;
       fhir:l <http://terminology.hl7.org/CodeSystem/v3-ActCode>
     ] ;
     fhir:code [ fhir:v "IMP" ]
  ] ; # 
  fhir:type ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://fhir.de/CodeSystem/Kontaktebene"^^xsd:anyURI ;
         fhir:l <http://fhir.de/CodeSystem/Kontaktebene>
       ] ;
       fhir:code [ fhir:v "abteilungskontakt" ]
     ] )
  ] [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://fhir.de/CodeSystem/kontaktart-de"^^xsd:anyURI ;
         fhir:l <http://fhir.de/CodeSystem/kontaktart-de>
       ] ;
       fhir:code [ fhir:v "operation" ]
     ] )
  ] ) ; # 
  fhir:serviceType [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://fhir.de/CodeSystem/dkgev/Fachabteilungsschluessel"^^xsd:anyURI ;
         fhir:l <http://fhir.de/CodeSystem/dkgev/Fachabteilungsschluessel>
       ] ;
       fhir:code [ fhir:v "2300" ] ;
       fhir:display [ fhir:v "Orthopädie" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:l <https://gematik.de/fhir/isik/Patient/PatientinNormal> ;
     fhir:reference [ fhir:v "Patient/PatientinNormal" ]
  ] ; # 
  fhir:period [
     fhir:start [ fhir:v "2024-10-21"^^xsd:date ] ;
     fhir:end [ fhir:v "2025-01-01"^^xsd:date ]
  ] ; # 
  fhir:diagnosis ( [
     fhir:condition [
       fhir:l <https://gematik.de/fhir/isik/Condition/PrimaereGonarthroseNormal> ;
       fhir:reference [ fhir:v "Condition/PrimaereGonarthroseNormal" ]
     ] ;
     fhir:use [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://fhir.de/CodeSystem/KontaktDiagnoseProzedur"^^xsd:anyURI ;
           fhir:l <http://fhir.de/CodeSystem/KontaktDiagnoseProzedur>
         ] ;
         fhir:code [ fhir:v "treatment-diagnosis" ]
       ] )
     ] ;
     fhir:rank [ fhir:v "1"^^xsd:positiveInteger ]
  ] ) ; # 
  fhir:account ( [
     fhir:l <https://gematik.de/fhir/isik/Account/AbrechnungsfallGonarthrose> ;
     fhir:reference [ fhir:v "Account/AbrechnungsfallGonarthrose" ] ;
     fhir:identifier [
       fhir:system [
         fhir:v "https://test.krankenhaus.de/fhir/sid/fallnummer"^^xsd:anyURI ;
         fhir:l <https://test.krankenhaus.de/fhir/sid/fallnummer>
       ] ;
       fhir:value [ fhir:v "1234" ]
     ]
  ] ) ; # 
  fhir:hospitalization [
     fhir:admitSource [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://fhir.de/CodeSystem/dgkev/Aufnahmeanlass"^^xsd:anyURI ;
           fhir:l <http://fhir.de/CodeSystem/dgkev/Aufnahmeanlass>
         ] ;
         fhir:code [ fhir:v "E" ]
       ] )
     ] ;
     fhir:dischargeDisposition [
       fhir:extension ( [
         fhir:extension ( [
           fhir:url [
             fhir:v "ErsteUndZweiteStelle"^^xsd:anyURI ;
             fhir:l fhir:ErsteUndZweiteStelle
           ] ;
           fhir:value [
             a fhir:Coding ;
             fhir:system [
               fhir:v "http://fhir.de/CodeSystem/dkgev/EntlassungsgrundErsteUndZweiteStelle"^^xsd:anyURI ;
               fhir:l <http://fhir.de/CodeSystem/dkgev/EntlassungsgrundErsteUndZweiteStelle>
             ] ;
             fhir:code [ fhir:v "01" ] ;
             fhir:display [ fhir:v "Behandlung regulär beendet" ]
           ]
         ] ) ;
         fhir:url [
           fhir:v "http://fhir.de/StructureDefinition/Entlassungsgrund"^^xsd:anyURI ;
           fhir:l <http://fhir.de/StructureDefinition/Entlassungsgrund>
         ]
       ] )
     ]
  ] ; # 
  fhir:location ( [
     fhir:location [
       fhir:l <https://gematik.de/fhir/isik/Location/RaumStandortBeispiel> ;
       fhir:reference [ fhir:v "Location/RaumStandortBeispiel" ] ;
       fhir:identifier [
         fhir:system [
           fhir:v "https://test.krankenhaus.de/fhir/sid/roomid"^^xsd:anyURI ;
           fhir:l <https://test.krankenhaus.de/fhir/sid/roomid>
         ] ;
         fhir:value [ fhir:v "1234" ]
       ] ;
       fhir:display [ fhir:v "Zimmer 1234" ]
     ] ;
     fhir:status [ fhir:v "active" ] ;
     fhir:physicalType [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/location-physical-type"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/location-physical-type>
         ] ;
         fhir:code [ fhir:v "ro" ] ;
         fhir:display [ fhir:v "Room" ]
       ] )
     ]
  ] [
     fhir:location [
       fhir:l <https://gematik.de/fhir/isik/Location/BettenstellplatzStandortBeispiel> ;
       fhir:reference [ fhir:v "Location/BettenstellplatzStandortBeispiel" ] ;
       fhir:identifier [
         fhir:system [
           fhir:v "https://test.krankenhaus.de/fhir/sid/bedid"^^xsd:anyURI ;
           fhir:l <https://test.krankenhaus.de/fhir/sid/bedid>
         ] ;
         fhir:value [ fhir:v "1234" ]
       ] ;
       fhir:display [ fhir:v "Bettenstellplatz 1234" ]
     ] ;
     fhir:status [ fhir:v "active" ] ;
     fhir:physicalType [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/location-physical-type"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/location-physical-type>
         ] ;
         fhir:code [ fhir:v "bd" ] ;
         fhir:display [ fhir:v "Bed" ]
       ] )
     ]
  ] [
     fhir:location [
       fhir:identifier [
         fhir:system [
           fhir:v "https://test.krankenhaus.de/fhir/sid/stationid"^^xsd:anyURI ;
           fhir:l <https://test.krankenhaus.de/fhir/sid/stationid>
         ] ;
         fhir:value [ fhir:v "1234" ]
       ] ;
       fhir:display [ fhir:v "Ward 1234" ]
     ] ;
     fhir:status [ fhir:v "active" ]
  ] [
     fhir:location [
       fhir:identifier [
         fhir:system [
           fhir:v "https://test.krankenhaus.de/fhir/sid/stationid"^^xsd:anyURI ;
           fhir:l <https://test.krankenhaus.de/fhir/sid/stationid>
         ] ;
         fhir:value [ fhir:v "56789" ]
       ] ;
       fhir:display [ fhir:v "Ward 56789" ]
     ] ;
     fhir:status [ fhir:v "completed" ] ;
     fhir:physicalType [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/location-physical-type"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/location-physical-type>
         ] ;
         fhir:code [ fhir:v "wa" ] ;
         fhir:display [ fhir:v "Ward" ]
       ] )
     ]
  ] ) ; # 
  fhir:serviceProvider [
     fhir:identifier [
       fhir:system [
         fhir:v "https://test.krankenhaus.de/fhir/sid/fachabteilungsid"^^xsd:anyURI ;
         fhir:l <https://test.krankenhaus.de/fhir/sid/fachabteilungsid>
       ] ;
       fhir:value [ fhir:v "ORTHO-1234" ]
     ] ;
     fhir:display [ fhir:v "Fachabteilung für Orthopädie und Endoprothetik" ]
  ] . # 

# -------------------------------------------------------------------------------------

