@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/Fachabteilungskontakt> a fhir:Encounter ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "Fachabteilungskontakt"] ; # 
  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 Fachabteilungskontakt</b></p><a name=\"Fachabteilungskontakt\"> </a><a name=\"hcFachabteilungskontakt\"> </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><li>DritteStelle: <a href=\"https://simplifier.net/resolve?scope=de.basisprofil.r4@1.5.4&amp;canonical=http://fhir.de/CodeSystem/dkgev/AufnahmegrundDritteStelle#AufnahmegrundDritteStelle-0\">AufnahmegrundDritteStelle: 0</a> (Anderes)</li><li>VierteStelle: <a href=\"https://simplifier.net/resolve?scope=de.basisprofil.r4@1.5.4&amp;canonical=http://fhir.de/CodeSystem/dkgev/AufnahmegrundVierteStelle#AufnahmegrundVierteStelle-1\">AufnahmegrundVierteStelle: 1</a> (Normalfall)</li></ul></blockquote><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 0100}\">Innere Medizin</span></p><p><b>subject</b>: <a href=\"Patient-PatientinMusterfrau.html\">Erika Fürstin von Musterfrau (official) Female, DoB: 1964-08-12 ( Private Krankenversicherung (use: secondary, ))</a></p><p><b>period</b>: 2021-02-12 --&gt; 2021-02-13</p><h3>Diagnoses</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Condition</b></td><td><b>Use</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"https://simplifier.net/resolve?scope=de.basisprofil.r4@1.5.4&amp;canonical=http://fhir.org/packages/de.basisprofil.r4/Condition/BehandlungsDiagnoseFreitext\">Condition/BehandlungsDiagnoseFreitext</a></td><td><span title=\"Codes:{http://fhir.de/CodeSystem/KontaktDiagnoseProzedur treatment-diagnosis}\">Behandlungsrelevante Diagnosen</span></td></tr></table><p><b>account</b>: <a href=\"https://simplifier.net/resolve?scope=de.basisprofil.r4@1.5.4&amp;canonical=http://fhir.org/packages/de.basisprofil.r4/Account/AbrechnungsfallDRG\">Account/AbrechnungsfallDRG</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><h3>Locations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Location</b></td><td><b>Status</b></td><td><b>PhysicalType</b></td></tr><tr><td style=\"display: none\">*</td><td>Bettenstellplatz 123 (Identifier: <code>https://test.krankenhaus.de/fhir/sid/locationid</code>/123)</td><td>Active</td><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/location-physical-type bd}\">Bed</span></td></tr></table><p><b>serviceProvider</b>: Fachabteilung XYZ (Identifier: <code>https://test.krankenhaus.de/fhir/sid/fachabteilungsid</code>/XYZ)</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 "DritteStelle"^^xsd:anyURI ;
         fhir:l fhir:DritteStelle
       ] ;
       fhir:value [
         a fhir:Coding ;
         fhir:system [
           fhir:v "http://fhir.de/CodeSystem/dkgev/AufnahmegrundDritteStelle"^^xsd:anyURI ;
           fhir:l <http://fhir.de/CodeSystem/dkgev/AufnahmegrundDritteStelle>
         ] ;
         fhir:code [ fhir:v "0" ] ;
         fhir:display [ fhir:v "Anderes" ]
       ]
     ] [
       fhir:url [
         fhir:v "VierteStelle"^^xsd:anyURI ;
         fhir:l fhir:VierteStelle
       ] ;
       fhir:value [
         a fhir:Coding ;
         fhir:system [
           fhir:v "http://fhir.de/CodeSystem/dkgev/AufnahmegrundVierteStelle"^^xsd:anyURI ;
           fhir:l <http://fhir.de/CodeSystem/dkgev/AufnahmegrundVierteStelle>
         ] ;
         fhir:code [ fhir:v "1" ] ;
         fhir:display [ fhir:v "Normalfall" ]
       ]
     ] ) ;
     fhir:url [
       fhir:v "http://fhir.de/StructureDefinition/Aufnahmegrund"^^xsd:anyURI ;
       fhir:l <http://fhir.de/StructureDefinition/Aufnahmegrund>
     ]
  ] ) ; # 
  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 "0100" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:l <https://gematik.de/fhir/isik/Patient/PatientinMusterfrau> ;
     fhir:reference [ fhir:v "Patient/PatientinMusterfrau" ]
  ] ; # 
  fhir:period [
     fhir:start [ fhir:v "2021-02-12"^^xsd:date ] ;
     fhir:end [ fhir:v "2021-02-13"^^xsd:date ]
  ] ; # 
  fhir:diagnosis ( [
     fhir:condition [
       fhir:l <https://gematik.de/fhir/isik/Condition/BehandlungsDiagnoseFreitext> ;
       fhir:reference [ fhir:v "Condition/BehandlungsDiagnoseFreitext" ]
     ] ;
     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:account ( [
     fhir:l <https://gematik.de/fhir/isik/Account/AbrechnungsfallDRG> ;
     fhir:reference [ fhir:v "Account/AbrechnungsfallDRG" ] ;
     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 "XZY" ]
     ]
  ] ) ; # 
  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 "DritteStelle"^^xsd:anyURI ;
             fhir:l fhir:DritteStelle
           ] ;
           fhir:value [
             a fhir:Coding ;
             fhir:system [
               fhir:v "http://fhir.de/CodeSystem/dkgev/EntlassungsgrundDritteStelle"^^xsd:anyURI ;
               fhir:l <http://fhir.de/CodeSystem/dkgev/EntlassungsgrundDritteStelle>
             ] ;
             fhir:code [ fhir:v "1" ] ;
             fhir:display [ fhir:v "arbeitsfähig entlassen" ]
           ]
         ] ) ;
         fhir:url [
           fhir:v "http://fhir.de/StructureDefinition/Entlassungsgrund"^^xsd:anyURI ;
           fhir:l <http://fhir.de/StructureDefinition/Entlassungsgrund>
         ]
       ] )
     ]
  ] ; # 
  fhir:location ( [
     fhir:location [
       fhir:identifier [
         fhir:system [
           fhir:v "https://test.krankenhaus.de/fhir/sid/locationid"^^xsd:anyURI ;
           fhir:l <https://test.krankenhaus.de/fhir/sid/locationid>
         ] ;
         fhir:value [ fhir:v "123" ]
       ] ;
       fhir:display [ fhir:v "Bettenstellplatz 123" ]
     ] ;
     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: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 "XYZ" ]
     ] ;
     fhir:display [ fhir:v "Fachabteilung XYZ" ]
  ] . # 

# -------------------------------------------------------------------------------------

