@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://haau3.com/fhir/CodeSystem/shared-medications-mode> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "shared-medications-mode"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CodeSystem shared-medications-mode</b></p><a name=\"shared-medications-mode\"> </a><a name=\"hcshared-medications-mode\"> </a><p>This case-sensitive code system <code>https://haau3.com/fhir/CodeSystem/shared-medications-mode</code> defines the following codes:</p><table class=\"codes\"><tr><td style=\"white-space:nowrap\"><b>Code</b></td><td><b>Display</b></td><td><b>Definition</b></td></tr><tr><td style=\"white-space:nowrap\">reconciled<a name=\"shared-medications-mode-reconciled\"> </a></td><td>Reconciled medication list</td><td>The share carries haau3's reconciled medication list: one MedicationRequest per medication, whatever its status, tagged derived-by medlist, each with its Provenances. The default.</td></tr><tr><td style=\"white-space:nowrap\">as-received<a name=\"shared-medications-mode-as-received\"> </a></td><td>Medication records as received</td><td>The share carries the medication records as the source systems sent them: every MedicationRequest, MedicationStatement, MedicationDispense and MedicationAdministration, with the Medications they name.</td></tr></table></div>"
  ] ;
  fhir:CodeSystem.url [ fhir:value "https://haau3.com/fhir/CodeSystem/shared-medications-mode"] ;
  fhir:CodeSystem.version [ fhir:value "1.0.0"] ;
  fhir:CodeSystem.name [ fhir:value "SharedMedicationsModeCS"] ;
  fhir:CodeSystem.title [ fhir:value "Shared Medications Mode"] ;
  fhir:CodeSystem.status [ fhir:value "active"] ;
  fhir:CodeSystem.experimental [ fhir:value "false"^^xsd:boolean] ;
  fhir:CodeSystem.date [ fhir:value "2026-10-14T18:01:46+00:00"^^xsd:dateTime] ;
  fhir:CodeSystem.publisher [ fhir:value "haau3"] ;
  fhir:CodeSystem.contact [
     fhir:index 0 ;
     fhir:ContactDetail.name [ fhir:value "haau3" ] ;
     fhir:ContactDetail.telecom [
       fhir:index 0 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "https://haau3.com" ]
     ], [
       fhir:index 1 ;
       fhir:ContactPoint.system [ fhir:value "email" ] ;
       fhir:ContactPoint.value [ fhir:value "hello@haau3.com" ]
     ]
  ] ;
  fhir:CodeSystem.description [ fhir:value "What \"Medications\" carries when a person's records are shared through haau3: haau3's reconciled medication list, or the medication records as received. A share carries one or the other."] ;
  fhir:CodeSystem.jurisdiction [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
       fhir:Coding.code [ fhir:value "US" ] ;
       fhir:Coding.display [ fhir:value "United States of America" ]
     ]
  ] ;
  fhir:CodeSystem.caseSensitive [ fhir:value "true"^^xsd:boolean] ;
  fhir:CodeSystem.content [ fhir:value "complete"] ;
  fhir:CodeSystem.count [ fhir:value "2"^^xsd:nonNegativeInteger] ;
  fhir:CodeSystem.concept [
     fhir:index 0 ;
     fhir:CodeSystem.concept.code [ fhir:value "reconciled" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Reconciled medication list" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "The share carries haau3's reconciled medication list: one MedicationRequest per medication, whatever its status, tagged derived-by medlist, each with its Provenances. The default." ]
  ], [
     fhir:index 1 ;
     fhir:CodeSystem.concept.code [ fhir:value "as-received" ] ;
     fhir:CodeSystem.concept.display [ fhir:value "Medication records as received" ] ;
     fhir:CodeSystem.concept.definition [ fhir:value "The share carries the medication records as the source systems sent them: every MedicationRequest, MedicationStatement, MedicationDispense and MedicationAdministration, with the Medications they name." ]
  ] .

# - ontology header ------------------------------------------------------------

<https://haau3.com/fhir/CodeSystem/shared-medications-mode.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

