@prefix fhir: <http://hl7.org/fhir/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

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

[] a fhir:CodeSystem ;
  fhir:id [ fhir:v "admit-source"] ;
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2024-04-24T00:00:00+00:00" ] ;
     fhir:profile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/shareablecodesystem" ] )
  ] ;
  fhir:text [
     fhir:status [ fhir:v "generated" ]
  ] ;
  fhir:extension ( [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg" ] ;
     fhir:value [ fhir:v "pa" ]
  ] ) ;
  fhir:url [ fhir:v "http://terminology.hl7.org/CodeSystem/admit-source"], [ fhir:v "http://terminology.hl7.org/CodeSystem/admit-source"] ;
  fhir:identifier ( [
     fhir:system [ fhir:v "urn:ietf:rfc:3986" ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.1.1092" ]
  ] [
     fhir:system [ fhir:v "urn:ietf:rfc:3986" ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.1.1092" ]
  ] ) ;
  fhir:version [ fhir:v "1.0.1"], [ fhir:v "1.0.1"] ;
  fhir:name [ fhir:v "AdmitSource"], [ fhir:v "AdmitSource"] ;
  fhir:title [ fhir:v "Admit source"], [ fhir:v "Admit source"] ;
  fhir:status [ fhir:v "active"], [ fhir:v "active"] ;
  fhir:experimental [ fhir:v "false"], [ fhir:v "false"] ;
  fhir:date [ fhir:v "2025-03-11T17:00:17+00:00"], [ fhir:v "2025-03-11T17:00:17+00:00"] ;
  fhir:publisher [ fhir:v "Health Level Seven International"], [ fhir:v "Health Level Seven International"] ;
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://hl7.org" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "hq@HL7.org" ]
     ] )
  ] [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://hl7.org" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "hq@HL7.org" ]
     ] )
  ] ) ;
  fhir:description [ fhir:v "This value set defines a set of codes that can be used to indicate from where the patient came in."], [ fhir:v "This value set defines a set of codes that can be used to indicate from where the patient came in."] ;
  fhir:copyright [ fhir:v "This material derives from the HL7 Terminology (THO). THO is copyright ©1989+ Health Level Seven International and is made available under the CC0 designation. For more licensing information see: https://terminology.hl7.org/license"], [ fhir:v "This material derives from the HL7 Terminology (THO). THO is copyright ©1989+ Health Level Seven International and is made available under the CC0 designation. For more licensing information see: https://terminology.hl7.org/license"] ;
  fhir:caseSensitive [ fhir:v "true"] ;
  fhir:valueSet [ fhir:v "http://terminology.hl7.org/ValueSet/encounter-admit-source"] ;
  fhir:content [ fhir:v "complete"] ;
  fhir:concept ( [
     fhir:code [ fhir:v "hosp-trans" ] ;
     fhir:display [ fhir:v "Transferred from other hospital" ] ;
     fhir:definition [ fhir:v "The Patient has been transferred from another hospital for this encounter." ] ;
     fhir:designation ( [
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/designation-usage" ] ;
         fhir:code [ fhir:v "display" ]
       ] ;
       fhir:value [ fhir:v "Transferred from other hospital" ]
     ] )
  ] [
     fhir:code [ fhir:v "emd" ] ;
     fhir:display [ fhir:v "From accident/emergency department" ] ;
     fhir:definition [ fhir:v "The patient has been transferred from the emergency department within the hospital. This is typically used in the transition to an inpatient encounter" ] ;
     fhir:designation ( [
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/designation-usage" ] ;
         fhir:code [ fhir:v "display" ]
       ] ;
       fhir:value [ fhir:v "From accident/emergency department" ]
     ] )
  ] [
     fhir:code [ fhir:v "outp" ] ;
     fhir:display [ fhir:v "From outpatient department" ] ;
     fhir:definition [ fhir:v "The patient has been transferred from an outpatient department within the hospital." ] ;
     fhir:designation ( [
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/designation-usage" ] ;
         fhir:code [ fhir:v "display" ]
       ] ;
       fhir:value [ fhir:v "From outpatient department" ]
     ] )
  ] [
     fhir:code [ fhir:v "born" ] ;
     fhir:display [ fhir:v "Born in hospital" ] ;
     fhir:definition [ fhir:v "The patient is a newborn and the encounter will track the baby related activities (as opposed to the Mothers encounter - that may be associated using the newborn encounters partof property)" ] ;
     fhir:designation ( [
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/designation-usage" ] ;
         fhir:code [ fhir:v "display" ]
       ] ;
       fhir:value [ fhir:v "Born in hospital" ]
     ] )
  ] [
     fhir:code [ fhir:v "gp" ] ;
     fhir:display [ fhir:v "General Practitioner referral" ] ;
     fhir:definition [ fhir:v "The patient has been admitted due to a referred from a General Practitioner." ] ;
     fhir:designation ( [
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/designation-usage" ] ;
         fhir:code [ fhir:v "display" ]
       ] ;
       fhir:value [ fhir:v "General Practitioner referral" ]
     ] )
  ] [
     fhir:code [ fhir:v "mp" ] ;
     fhir:display [ fhir:v "Medical Practitioner/physician referral" ] ;
     fhir:definition [ fhir:v "The patient has been admitted due to a referred from a Specialist (as opposed to a General Practitioner)." ] ;
     fhir:designation ( [
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/designation-usage" ] ;
         fhir:code [ fhir:v "display" ]
       ] ;
       fhir:value [ fhir:v "Medical Practitioner/physician referral" ]
     ] )
  ] [
     fhir:code [ fhir:v "nursing" ] ;
     fhir:display [ fhir:v "From nursing home" ] ;
     fhir:definition [ fhir:v "The patient has been transferred from a nursing home." ] ;
     fhir:designation ( [
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/designation-usage" ] ;
         fhir:code [ fhir:v "display" ]
       ] ;
       fhir:value [ fhir:v "From nursing home" ]
     ] )
  ] [
     fhir:code [ fhir:v "psych" ] ;
     fhir:display [ fhir:v "From psychiatric hospital" ] ;
     fhir:definition [ fhir:v "The patient has been transferred from a psychiatric facility." ] ;
     fhir:designation ( [
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/designation-usage" ] ;
         fhir:code [ fhir:v "display" ]
       ] ;
       fhir:value [ fhir:v "From psychiatric hospital" ]
     ] )
  ] [
     fhir:code [ fhir:v "rehab" ] ;
     fhir:display [ fhir:v "From rehabilitation facility" ] ;
     fhir:definition [ fhir:v "The patient has been transferred from a rehabilitation facility or clinic." ] ;
     fhir:designation ( [
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/designation-usage" ] ;
         fhir:code [ fhir:v "display" ]
       ] ;
       fhir:value [ fhir:v "From rehabilitation facility" ]
     ] )
  ] [
     fhir:code [ fhir:v "other" ] ;
     fhir:display [ fhir:v "Other" ] ;
     fhir:definition [ fhir:v "The patient has been admitted from a source otherwise not specified here." ] ;
     fhir:designation ( [
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/designation-usage" ] ;
         fhir:code [ fhir:v "display" ]
       ] ;
       fhir:value [ fhir:v "Other" ]
     ] )
  ] ) .

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

