@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://loinc.org/rdf/> .
@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/us/smp/Parameters/smp-history-output-parameters-1> a fhir:Parameters ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "smp-history-output-parameters-1"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/us/smp/StructureDefinition/smp-parameters-response"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/us/smp/StructureDefinition/smp-parameters-response>
     ] )
  ] ; # 
  fhir:parameter ( [
     fhir:name [ fhir:v "smp-medication-data" ] ;
     fhir:Parameters.parameter.resource ( [
       a fhir:Bundle ;
       fhir:id [ fhir:v "smp-parameters-response-1" ] ;
       fhir:meta [
         fhir:profile ( [
           fhir:v "http://hl7.org/fhir/us/smp/StructureDefinition/smp-bundle"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/us/smp/StructureDefinition/smp-bundle>
         ] )
       ] ;
       fhir:type [ fhir:v "collection" ] ;
       fhir:entry ( [
         fhir:fullUrl [
           fhir:v "urn:uuid:9ce2a97b-5cab-4986-814f-4734016e6084"^^xsd:anyURI ;
           fhir:l <urn:uuid:9ce2a97b-5cab-4986-814f-4734016e6084>
         ] ;
         fhir:resource ( <urn:uuid:9ce2a97b-5cab-4986-814f-4734016e6084> )
       ] [
         fhir:fullUrl [
           fhir:v "urn:uuid:23ac0bc6-0959-4181-8af0-6db5e2ef8176"^^xsd:anyURI ;
           fhir:l <urn:uuid:23ac0bc6-0959-4181-8af0-6db5e2ef8176>
         ] ;
         fhir:resource ( <urn:uuid:23ac0bc6-0959-4181-8af0-6db5e2ef8176> )
       ] )
     ] )
  ] ) . # 

<urn:uuid:9ce2a97b-5cab-4986-814f-4734016e6084> a fhir:List ;
  fhir:id [ fhir:v "smp-medlist-1"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/us/smp/StructureDefinition/smp-medication-list"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/us/smp/StructureDefinition/smp-medication-list>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">A hospital medication administration list for a patient</div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "current"] ; # 
  fhir:mode [ fhir:v "working"] ; # 
  fhir:title [ fhir:v "Hospital Medication Administration List"] ; # 
  fhir:code [
     fhir:coding ( [
       a loinc:104207-6 ;
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "104207-6" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/us/smp/Patient/example> ;
     fhir:reference [ fhir:v "Patient/example" ] ;
     fhir:display [ fhir:v "US Core Example Patient" ]
  ] ; # 
  fhir:date [ fhir:v "2024-07-01"^^xsd:date] ; # 
  fhir:source [
     fhir:l <http://hl7.org/fhir/us/smp/Practitioner/practitioner-1> ;
     fhir:reference [ fhir:v "Practitioner/practitioner-1" ]
  ] ; # 
  fhir:entry ( [
     fhir:date [ fhir:v "2024-07-01"^^xsd:date ] ;
     fhir:item [
       fhir:l <urn:uuid:23ac0bc6-0959-4181-8af0-6db5e2ef8176> ;
       fhir:reference [ fhir:v "urn:uuid:23ac0bc6-0959-4181-8af0-6db5e2ef8176" ]
     ]
  ] ) . # 

<http://hl7.org/fhir/us/smp/Patient/example> a fhir:Us .

<http://hl7.org/fhir/us/smp/Practitioner/practitioner-1> a fhir:Us .

<urn:uuid:23ac0bc6-0959-4181-8af0-6db5e2ef8176> a fhir:MedicationStatement ;
  fhir:id [ fhir:v "smp-medstmt-bundle-1"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/us/smp/StructureDefinition/smp-medicationstatement"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/us/smp/StructureDefinition/smp-medicationstatement>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">A statement of an individual medication the patient is receiving</div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:medication [
     a fhir:CodeableConcept ;
     fhir:coding ( [
       fhir:system [
         fhir:v "http://www.nlm.nih.gov/research/umls/rxnorm"^^xsd:anyURI ;
         fhir:l <http://www.nlm.nih.gov/research/umls/rxnorm>
       ] ;
       fhir:code [ fhir:v "428759" ] ;
       fhir:display [ fhir:v "metformin 250 MG Oral Tablet" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/us/smp/Patient/example> ;
     fhir:reference [ fhir:v "Patient/example" ] ;
     fhir:display [ fhir:v "US Core Example Patient" ]
  ] ; # 
  fhir:effective [
     a fhir:DateTime ;
     fhir:v "2024-06-01"^^xsd:date
  ] ; # 
  fhir:dateAsserted [ fhir:v "2024-07-01"^^xsd:date] ; # 
  fhir:reasonCode ( [
     fhir:coding ( [
       a sct:359642000 ;
       fhir:system [
         fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
         fhir:l <http://snomed.info/sct>
       ] ;
       fhir:code [ fhir:v "359642000" ] ;
       fhir:display [ fhir:v "Diabetes mellitus type 2 in nonobese (disorder)" ]
     ] )
  ] ) ; # 
  fhir:dosage ( [
     fhir:sequence [ fhir:v 1 ] ;
     fhir:text [ fhir:v "po daily" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

