Release 5 R6 Ballot (3rd Draft)
This page is part of the FHIR Specification (v5.0.0: R5 - STU ). This is the current published version in it's permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4

Publish-box (todo)

Example CodeSystem/medication-status (Turtle)

Pharmacy Work Group Maturity Level : N/A Standards Status : Informative

Raw Turtle (+ also see Turtle/RDF Format Specification )

Definition for Code SystemMedicationStatusCodes

@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 -------------------------------------------------------------------

[] a fhir:CodeSystem ;
  fhir:id [ fhir:v "medication-status"] ;

<http://hl7.org/fhir/CodeSystem/medication-status> a fhir:CodeSystem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "medication-status"] ; # 

  fhir:meta [
     fhir:lastUpdated [ fhir:v "2023-03-26T15:21:02.749+11:00" ] ;
     fhir:profile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/shareablecodesystem" ] )
  ] ;

     fhir:lastUpdated [ fhir:v "2025-04-01T12:16:37.966+11:00"^^xsd:dateTime ] ;
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/StructureDefinition/shareablecodesystem"^^xsd:anyURI ;
       fhir:link <http://hl7.org/fhir/StructureDefinition/shareablecodesystem>
     ] )
  ] ; # 

  fhir:text [
     fhir:status [ fhir:v "generated" ]
  ] ;

     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CodeSystem medication-status</b></p><a name=\"medication-status\"> </a><a name=\"hcmedication-status\"> </a><a name=\"medication-status-en-AU\"> </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=\"shareablecodesystem.html\">Shareable CodeSystem</a></p></div><p>This case-sensitive code system <code>http://hl7.org/fhir/CodeSystem/medication-status</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\">active<a name=\"medication-status-active\"> </a></td><td>Active</td><td>The medication record is current and is appropriate for reference in new instances.</td></tr><tr><td style=\"white-space:nowrap\">inactive<a name=\"medication-status-inactive\"> </a></td><td>Inactive</td><td>The medication record is not current and is not is appropriate for reference in new instances.</td></tr><tr><td style=\"white-space:nowrap\">entered-in-error<a name=\"medication-status-entered-in-error\"> </a></td><td>Entered in Error</td><td>The medication record was created erroneously and is not appropriated for reference in new instances.</td></tr></table></div>"^^rdf:XMLLiteral
  ] ; # 

  fhir:extension ( [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg" ] ;
     fhir:value [ fhir:v "phx" ]
  ] ) ;
  fhir:url [ fhir:v "http://hl7.org/fhir/CodeSystem/medication-status"], [ fhir:v "http://hl7.org/fhir/CodeSystem/medication-status"] ;

     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:code ;
       fhir:v "phx"
     ]
  ] ) ; # 
  fhir:url [ fhir:v "http://hl7.org/fhir/CodeSystem/medication-status"^^xsd:anyURI] ; # 

  fhir:identifier ( [
     fhir:system [ fhir:v "urn:ietf:rfc:3986" ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.4.1380" ]
  ] [
     fhir:system [ fhir:v "urn:ietf:rfc:3986" ] ;

     fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;

     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.4.1380" ]
  ] ) ;
  fhir:version [ fhir:v "5.0.0"], [ fhir:v "5.0.0"] ;
  fhir:name [ fhir:v "MedicationStatusCodes"], [ fhir:v "MedicationStatusCodes"] ;
  fhir:title [ fhir:v "Medication Status Codes"], [ fhir:v "Medication Status Codes"] ;
  fhir:status [ fhir:v "active"], [ fhir:v "active"] ;
  fhir:experimental [ fhir:v "false"], [ fhir:v "false"] ;
  fhir:publisher [ fhir:v "HL7 International"], [ fhir:v "HL7 International"] ;
  fhir:description [ fhir:v "Medication Status Codes"], [ fhir:v "Medication Status Codes"] ;

  ] ) ; # 
  fhir:version [ fhir:v "6.0.0-ballot3"] ; # 
  fhir:name [ fhir:v "MedicationStatusCodes"] ; # 
  fhir:title [ fhir:v "Medication Status Codes"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v false] ; # 
  fhir:publisher [ fhir:v "HL7 International"] ; # 
  fhir:description [ fhir:v "Medication Status Codes"] ; # 

  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm" ] ;
       fhir:code [ fhir:v "001" ] ;
       fhir:display [ fhir:v "World" ]
     ] )
  ] [
     fhir:coding ( [
       fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm" ] ;

       fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ] ;

       fhir:code [ fhir:v "001" ] ;
       fhir:display [ fhir:v "World" ]
     ] )
  ] ) ;
  fhir:caseSensitive [ fhir:v "true"] ;
  fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/medication-status"] ;
  fhir:content [ fhir:v "complete"] ;

  ] ) ; # 
  fhir:caseSensitive [ fhir:v true] ; # 
  fhir:valueSet [
     fhir:v "http://hl7.org/fhir/ValueSet/medication-status"^^xsd:anyURI ;
     fhir:link <http://hl7.org/fhir/ValueSet/medication-status>
  ] ; # 
  fhir:hierarchyMeaning [] ; # 
  fhir:content [ fhir:v "complete"] ; # 

  fhir:concept ( [
     fhir:code [ fhir:v "active" ] ;
     fhir:display [ fhir:v "Active" ] ;
     fhir:definition [ fhir:v "The medication record is current and is appropriate for reference in new instances." ]
  ] [
     fhir:code [ fhir:v "inactive" ] ;
     fhir:display [ fhir:v "Inactive" ] ;
     fhir:definition [ fhir:v "The medication record is not current and is not is appropriate for reference in new instances." ]
  ] [
     fhir:code [ fhir:v "entered-in-error" ] ;
     fhir:display [ fhir:v "Entered in Error" ] ;
     fhir:definition [ fhir:v "The medication record was created erroneously and is not appropriated for reference in new instances." ]
  ] ) .

  ] ) . # 


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


Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.