HL7 Europe Base and Core FHIR IG
2.0.0-gamma - qa-preview 150

HL7 Europe Base and Core FHIR IG - Downloaded Version 2.0.0-gamma See the Directory of published versions

## Resource Profile: MedicationStatementEuCore - TTL Profile

Page standards status: Draft | Maturity Level: 1

TTL representation of the medicationStatement-eu-core resource profile.

Raw ttl | Download

    @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:StructureDefinition ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:id [ fhir:v "medicationStatement-eu-core"] ; #
      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: StructureDefinition medicationStatement-eu-core</b></p><a name=\"medicationStatement-eu-core\"> </a><a name=\"hcmedicationStatement-eu-core\"> </a><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;\"><tr style=\"border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top\"><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"The logical name of the element\">Name</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Information about the use of the element\">Flags</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Minimum and Maximum # of times the element can appear in the instance\">Card.</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px; width: 100px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Reference to the type of the element\">Type</a></th><th style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Additional information about the element\">Description &amp; Constraints</a><span style=\"float: right\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC\" alt=\"doco\" style=\"background-color: inherit\"/></a></span></th></tr><tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_resource.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-medicationStatement-eu-core-definitions.html#MedicationStatement\">MedicationStatement</a><a name=\"MedicationStatement\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/medicationstatement.html\">MedicationStatement</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Record of medication being taken by a patient</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-medicationStatement-eu-core-definitions.html#MedicationStatement.language\">language</a><a name=\"MedicationStatement.language\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#code\">code</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Language of the statement</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck13.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_extension_simple.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Simple Extension\" class=\"hierarchy\"/> <a href=\"StructureDefinition-medicationStatement-eu-core-definitions.html#MedicationStatement.extension\">Slices for extension</a><a name=\"MedicationStatement.extension\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/extensibility.html#Extension\">Extension</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Extension</span><br/><span style=\"font-weight:bold\">Slice: </span>Unordered, Open by value:url</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck125.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end_slicer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice_item.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Slice Item\" class=\"hierarchy\"/> <a href=\"StructureDefinition-medicationStatement-eu-core-definitions.html#MedicationStatement.extension:adherence\" title=\"Extension URL = http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.adherence\">extension:adherence</a><a name=\"MedicationStatement.extension.2\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">(Complex)</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Indicates whether the medication is or is not being consumed or administered</span><br/><span style=\"font-weight:bold\">URL: </span><a href=\"http://hl7.org/fhir/uv/xver-r5.r4/0.0.1-snapshot-2/StructureDefinition-ext-R5-MedicationStatement.adherence.html\">http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.adherence</a></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1253.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_slice.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Slice Definition\" class=\"hierarchy\"/> Slices for extension<a name=\"MedicationStatement.extension.extension\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Content/Rules for all slices</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck12524.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline_slice.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end_slicer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice_item.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Slice Item\" class=\"hierarchy\"/> <a href=\"StructureDefinition-medicationStatement-eu-core-definitions.html#MedicationStatement.extension:adherence.extension:code\" title=\"Slice code\">extension:code</a><a name=\"MedicationStatement.extension.extension.2\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">1</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/extensibility.html#Extension\">Extension</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Type of adherence.</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1240.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_blank.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end_slice.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a style=\"text-decoration:line-through; text-decoration:line-through\" href=\"StructureDefinition-medicationStatement-eu-core-definitions.html#MedicationStatement.extension:adherence.value[x]\">value[x]</a><a name=\"MedicationStatement.extension.value_x_\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"text-decoration:line-through\"/><span style=\"text-decoration:line-through\">0</span><span style=\"text-decoration:line-through\">..</span><span style=\"text-decoration:line-through\">0</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"font-style: italic\">Value of extension</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-medicationStatement-eu-core-definitions.html#MedicationStatement.identifier\">identifier</a><a name=\"MedicationStatement.identifier\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#Identifier\">Identifier</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Medication Statement Identifier</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-medicationStatement-eu-core-definitions.html#MedicationStatement.status\">status</a><a name=\"MedicationStatement.status\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">1</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#code\">code</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">State of the medication</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-medicationStatement-eu-core-definitions.html#MedicationStatement.statusReason\">statusReason</a><a name=\"MedicationStatement.statusReason\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#CodeableConcept\">CodeableConcept</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Reason for the 'exception' statuses of the medication</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-medicationStatement-eu-core-definitions.html#MedicationStatement.category\">category</a><a name=\"MedicationStatement.category\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#CodeableConcept\">CodeableConcept</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Type of intended use<br class=\"binding\"/><span style=\"font-weight:bold\" title=\"null\" class=\"binding\">Binding: </span><a href=\"http://hl7.org/fhir/R4/valueset-medication-statement-category.html\" title=\"http://hl7.org/fhir/ValueSet/medication-statement-category\" class=\"binding\">Medication usage category codes</a><span title=\"null\" class=\"binding\"> (</span><a href=\"http://hl7.org/fhir/R4/terminologies.html#preferred\" title=\"Instances are encouraged to draw from the specified codes for interoperability purposes but are not required to do so to be considered conformant.\" class=\"binding\">preferred</a><span title=\"null\" class=\"binding\">)</span><span title=\"null\" class=\"binding\">: </span><span title=\"null\" class=\"binding\">A coded concept identifying where the medication included in the MedicationStatement is expected to be consumed or administered.</span><table class=\"binding grid\"><tr><td style=\"font-size: 11px\"><b>Additional Bindings</b></td><td style=\"font-size: 11px\">Purpose</td></tr><tr><td style=\"font-size: 11px\"><a href=\"ValueSet-medicationIntendedUse-eu.html\" title=\"http://hl7.eu/fhir/base/ValueSet/medicationIntendedUse-eu\">Medication Intended Use</a></td><td style=\"font-size: 11px\"><a href=\"http://hl7.org/fhir/R4/terminologies.html#strength\" title=\"This is the value set that is recommended (documentation should explain why)\">Preferred</a></td></tr></table></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_choice.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Choice of Types\" class=\"hierarchy\"/> <a href=\"StructureDefinition-medicationStatement-eu-core-definitions.html#MedicationStatement.medication[x]\">medication[x]</a><a name=\"MedicationStatement.medication_x_\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">1</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">What medication was taken</span><br class=\"binding\"/><span style=\"font-weight:bold\" title=\"null\" class=\"binding\">Binding: </span><a href=\"http://hl7.org/fhir/uv/ips/STU2/ValueSet-medication-uv-ips.html\" title=\"http://hl7.org/fhir/uv/ips/ValueSet/medication-uv-ips\" class=\"binding\">Medications - IPS</a><span title=\"null\" class=\"binding\"> (</span><a href=\"http://hl7.org/fhir/R4/terminologies.html#example\" title=\"Instances are not expected or even encouraged to draw from the specified value set.  The value set merely provides examples of the types of concepts intended to be included.\" class=\"binding\">example</a><span title=\"null\" class=\"binding\">)</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <span title=\"Base StructureDefinition for CodeableConcept Type: A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text.\">medicationCodeableConcept</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#CodeableConcept\">CodeableConcept</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> medicationReference</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/references.html#Reference\">Reference</a>(<a href=\"StructureDefinition-medication-eu-core.html\">Medication (EU core)</a>)</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-medicationStatement-eu-core-definitions.html#MedicationStatement.subject\">subject</a><a name=\"MedicationStatement.subject\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">1</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a href=\"StructureDefinition-patient-eu-core.html\">Patient (EU core)</a> | <a href=\"http://hl7.org/fhir/R4/group.html\">Group</a>)</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Who is/was taking  the medication</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck13.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Slice Definition\" class=\"hierarchy\"/> <a style=\"font-style: italic; font-style: italic\" href=\"StructureDefinition-medicationStatement-eu-core-definitions.html#MedicationStatement.effective[x]\">Slices for effective[x]</a><a name=\"MedicationStatement.effective_x_\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"font-style: italic\"/><span style=\"opacity: 0.5; font-style: italic\">0</span><span style=\"opacity: 0.5; font-style: italic\">..</span><span style=\"opacity: 0.5; font-style: italic\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; font-style: italic; opacity: 0.5; font-style: italic\" href=\"http://hl7.org/fhir/R4/datatypes.html#dateTime\">dateTime</a><span style=\"opacity: 0.5; font-style: italic\">, </span><a style=\"opacity: 0.5; font-style: italic; opacity: 0.5; font-style: italic\" href=\"http://hl7.org/fhir/R4/datatypes.html#Period\">Period</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5; font-style: italic\">The date/time or interval when the medication is/was/will be taken</span><br style=\"font-style: italic\"/><span style=\"font-weight:bold; font-style: italic\">Slice: </span><span style=\"font-style: italic\">Unordered, Open by type:$this</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck124.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end_slicer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice_item.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Slice Item\" class=\"hierarchy\"/> <a href=\"StructureDefinition-medicationStatement-eu-core-definitions.html#MedicationStatement.effective[x]:effectivePeriod\" title=\"Slice effectivePeriod\">effective[x]:effectivePeriod</a><a name=\"MedicationStatement.effective_x_.2\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..1</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#Period\">Period</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Period when the medication is/was or should be used.</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-medicationStatement-eu-core-definitions.html#MedicationStatement.informationSource\">informationSource</a><a name=\"MedicationStatement.informationSource\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a href=\"StructureDefinition-patient-eu-core.html\">Patient (EU core)</a> | <a href=\"StructureDefinition-practitioner-eu-core.html\">Practitioner (EU core)</a> | <a href=\"StructureDefinition-practitionerRole-eu-core.html\">PractitionerRole (EU core)</a> | <a href=\"StructureDefinition-organization-eu-core.html\">Organization (EU core)</a> | <a href=\"http://hl7.org/fhir/R4/relatedperson.html\">RelatedPerson</a>)</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Person or organization that provided the information about the taking of this medication</span></td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-medicationStatement-eu-core-definitions.html#MedicationStatement.derivedFrom\">derivedFrom</a><a name=\"MedicationStatement.derivedFrom\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/resource.html\">Resource</a>)</td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">The reference to the source of the statement</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-medicationStatement-eu-core-definitions.html#MedicationStatement.reasonCode\">reasonCode</a><a name=\"MedicationStatement.reasonCode\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#CodeableConcept\">CodeableConcept</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Coded reason for use</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-medicationStatement-eu-core-definitions.html#MedicationStatement.note\">note</a><a name=\"MedicationStatement.note\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-medicationStatement-eu-core-definitions.html#MedicationStatement.note.text\">text</a><a name=\"MedicationStatement.note.text\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">1</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#markdown\">markdown</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Textual note about the statement</td></tr>#xD;\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-medicationStatement-eu-core-definitions.html#MedicationStatement.dosage\">dosage</a><a name=\"MedicationStatement.dosage\"> </a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#Dosage\">Dosage</a></td><td style=\"vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Details of how medication is/was taken or should be taken.</td></tr>#xD;\n<tr><td colspan=\"5\" class=\"hierarchy\"><br/><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC\" alt=\"doco\" style=\"background-color: inherit\"/> Documentation for this format</a></td></tr></table></div>"^^rdf:XMLLiteral ]
      ] ; #
      fhir:extension ( [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm>     ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 1     ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status>     ] ;
    fhir:value [
    a fhir:Code ;
    fhir:v "draft"     ]
      ] ) ; #
      fhir:url [
    fhir:v "http://hl7.eu/fhir/base/StructureDefinition/medicationStatement-eu-core"^^xsd:anyURI ;
    fhir:l <http://hl7.eu/fhir/base/StructureDefinition/medicationStatement-eu-core>
      ] ; #
      fhir:version [ fhir:v "2.0.0-gamma"] ; #
      fhir:name [ fhir:v "MedicationStatementEuCore"] ; #
      fhir:title [ fhir:v "MedicationStatement (EU core)"] ; #
      fhir:status [ fhir:v "draft"] ; #
      fhir:date [ fhir:v "2026-02-25T10:00:47+01:00"^^xsd:dateTime] ; #
      fhir:publisher [ fhir:v "HL7 Europe"] ; #
      fhir:contact ( [
    fhir:name [ fhir:v "HL7 Europe" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "http://hl7.eu" ]     ] )
      ] ) ; #
      fhir:description [ fhir:v "This profile introduces essential constraints and extensions for the MedicationStatement resource that apply across multiple use cases."] ; #
      fhir:jurisdiction ( [
        ( fhir:coding [
    fhir:system [
    fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ;
    fhir:l <http://unstats.un.org/unsd/methods/m49/m49.htm>       ] ;
    fhir:code [ fhir:v "150" ] ;
    fhir:display [ fhir:v "Europe" ]     ] )
      ] ) ; #
      fhir:copyright [ fhir:v "Copyright HL7 Europe. Licensed under creative commons public domain (CC0 1.0)."] ; #
      fhir:fhirVersion [ fhir:v "4.0.1"] ; #
      fhir:mapping ( [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:uri [
    fhir:v "http://hl7.org/fhir/workflow"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/workflow>     ] ;
    fhir:name [ fhir:v "Workflow Pattern" ]
      ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:uri [
    fhir:v "http://hl7.org/v3"^^xsd:anyURI ;
    fhir:l <http://hl7.org/v3>     ] ;
    fhir:name [ fhir:v "RIM Mapping" ]
      ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:uri [
    fhir:v "http://hl7.org/fhir/fivews"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/fivews>     ] ;
    fhir:name [ fhir:v "FiveWs Pattern Mapping" ]
      ] [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:uri [
    fhir:v "http://hl7.org/v2"^^xsd:anyURI ;
    fhir:l <http://hl7.org/v2>     ] ;
    fhir:name [ fhir:v "HL7 v2 Mapping" ]
      ] ) ; #
      fhir:kind [ fhir:v "resource"] ; #
      fhir:abstract [ fhir:v false] ; #
      fhir:type [
    fhir:v "MedicationStatement"^^xsd:anyURI ;
    fhir:l fhir:MedicationStatement
      ] ; #
      fhir:baseDefinition [
    fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationStatement"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationStatement>
      ] ; #
      fhir:derivation [ fhir:v "constraint"] ; #
      fhir:snapshot [
        ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version>       ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "4.0.1"       ]     ] ) ;
        ( fhir:element [
    fhir:id [ fhir:v "MedicationStatement" ] ;
    fhir:path [ fhir:v "MedicationStatement" ] ;
    fhir:short [ fhir:v "Record of medication being taken by a patient" ] ;
    fhir:definition [ fhir:v "A record of a medication that is being consumed by a patient.   A MedicationStatement may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future.  The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician.  A common scenario where this information is captured is during the history taking process during a patient visit or stay.   The medication information may come from sources such as the patient's memory, from a prescription bottle,  or from a list of medications the patient, clinician or other party maintains. \n\nThe primary difference between a medication statement and a medication administration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication.  A medication statement is often, if not always, less specific.  There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise.  As stated earlier, the medication statement information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains.  Medication administration is more formal and is not missing detailed information." ] ;
    fhir:comment [ fhir:v "When interpreting a medicationStatement, the value of the status and NotTaken needed to be considered:\rMedicationStatement.status + MedicationStatement.wasNotTaken\rStatus=Active + NotTaken=T = Not currently taking\rStatus=Completed + NotTaken=T = Not taken in the past\rStatus=Intended + NotTaken=T = No intention of taking\rStatus=Active + NotTaken=F = Taking, but not as prescribed\rStatus=Active + NotTaken=F = Taking\rStatus=Intended +NotTaken= F = Will be taking (not started)\rStatus=Completed + NotTaken=F = Taken in past\rStatus=In Error + NotTaken=N/A = In Error." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "MedicationStatement" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:constraint [
    fhir:key [ fhir:v "dom-2" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "If the resource is contained in another resource, it SHALL NOT contain nested Resources" ] ;
    fhir:expression [ fhir:v "contained.contained.empty()" ] ;
    fhir:xpath [ fhir:v "not(parent::f:contained and f:contained)" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ] [
    fhir:key [ fhir:v "dom-3" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource" ] ;
    fhir:expression [ fhir:v "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()" ] ;
    fhir:xpath [ fhir:v "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ] [
    fhir:key [ fhir:v "dom-4" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" ] ;
    fhir:expression [ fhir:v "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" ] ;
    fhir:xpath [ fhir:v "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ] [
    fhir:key [ fhir:v "dom-5" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "If a resource is contained in another resource, it SHALL NOT have a security label" ] ;
    fhir:expression [ fhir:v "contained.meta.security.empty()" ] ;
    fhir:xpath [ fhir:v "not(exists(f:contained/*/f:meta/f:security))" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ] [
            ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice>           ] ;
    fhir:value [
    a fhir:Boolean ;
    fhir:v true           ]         ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation>           ] ;
    fhir:value [
    a fhir:Markdown ;
    fhir:v "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."           ]         ] ) ;
    fhir:key [ fhir:v "dom-6" ] ;
    fhir:severity [ fhir:v "warning" ] ;
    fhir:human [ fhir:v "A resource should have narrative for robust management" ] ;
    fhir:expression [ fhir:v "text.`div`.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:text/h:div)" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "Entity. Role, or Act" ]       ] [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "SubstanceAdministration" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.id" ] ;
    fhir:path [ fhir:v "MedicationStatement.id" ] ;
    fhir:short [ fhir:v "Logical id of this artifact" ] ;
    fhir:definition [ fhir:v "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." ] ;
    fhir:comment [ fhir:v "The only time that a resource does not have an id is when it is being submitted to the server using a create operation." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Resource.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
            ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type>           ] ;
    fhir:value [
    a fhir:Url ;
    fhir:v "id"^^xsd:anyURI ;
    fhir:l fhir:id           ]         ] ) ;
    fhir:code [
    fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhirpath/System.String>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "MedicationStatement.meta" ] ;
    fhir:path [ fhir:v "MedicationStatement.meta" ] ;
    fhir:short [ fhir:v "Metadata about the resource" ] ;
    fhir:definition [ fhir:v "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Resource.meta" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Meta"^^xsd:anyURI ;
    fhir:l fhir:Meta         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "MedicationStatement.implicitRules" ] ;
    fhir:path [ fhir:v "MedicationStatement.implicitRules" ] ;
    fhir:short [ fhir:v "A set of rules under which this content was created" ] ;
    fhir:definition [ fhir:v "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc." ] ;
    fhir:comment [ fhir:v "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Resource.implicitRules" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "uri"^^xsd:anyURI ;
    fhir:l fhir:uri         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v true ] ;
    fhir:isModifierReason [ fhir:v "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation" ] ;
    fhir:isSummary [ fhir:v true ]     ] [
    fhir:id [ fhir:v "MedicationStatement.language" ] ;
    fhir:path [ fhir:v "MedicationStatement.language" ] ;
    fhir:short [ fhir:v "Language of the statement" ] ;
    fhir:definition [ fhir:v "The base language in which the resource is written." ] ;
    fhir:comment [ fhir:v "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Resource.language" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "code"^^xsd:anyURI ;
    fhir:l fhir:code         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet>           ] ;
    fhir:value [
    a fhir:Canonical ;
    fhir:v "http://hl7.org/fhir/ValueSet/all-languages"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/ValueSet/all-languages>           ]         ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>           ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Language"           ]         ] ) ;
    fhir:strength [ fhir:v "preferred" ] ;
    fhir:description [ fhir:v "A human language." ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/languages|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/ValueSet/languages?version=4.0.1>         ]       ]     ] [
    fhir:id [ fhir:v "MedicationStatement.text" ] ;
    fhir:path [ fhir:v "MedicationStatement.text" ] ;
    fhir:short [ fhir:v "Text summary of the resource, for human interpretation" ] ;
    fhir:definition [ fhir:v "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety." ] ;
    fhir:comment [ fhir:v "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later." ] ;
          ( fhir:alias [ fhir:v "narrative" ] [ fhir:v "html" ] [ fhir:v "xhtml" ] [ fhir:v "display" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.text" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Narrative"^^xsd:anyURI ;
    fhir:l fhir:Narrative         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "Act.text?" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.contained" ] ;
    fhir:path [ fhir:v "MedicationStatement.contained" ] ;
    fhir:short [ fhir:v "Contained, inline Resources" ] ;
    fhir:definition [ fhir:v "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope." ] ;
    fhir:comment [ fhir:v "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels." ] ;
          ( fhir:alias [ fhir:v "inline resources" ] [ fhir:v "anonymous resources" ] [ fhir:v "contained resources" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.contained" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Resource"^^xsd:anyURI ;
    fhir:l fhir:Resource         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.extension" ] ;
    fhir:path [ fhir:v "MedicationStatement.extension" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "value" ] ;
    fhir:path [ fhir:v "url" ]         ] ) ;
    fhir:ordered [ fhir:v false ] ;
    fhir:rules [ fhir:v "open" ]       ] ;
    fhir:short [ fhir:v "Extension" ] ;
    fhir:definition [ fhir:v "An Extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Extension"^^xsd:anyURI ;
    fhir:l fhir:Extension         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ]     ] [
    fhir:id [ fhir:v "MedicationStatement.extension:adherence" ] ;
    fhir:path [ fhir:v "MedicationStatement.extension" ] ;
    fhir:sliceName [ fhir:v "adherence" ] ;
    fhir:short [ fhir:v "Indicates whether the medication is or is not being consumed or administered" ] ;
    fhir:definition [ fhir:v "This cross-version extension represents MedicationStatement.adherence from http://hl7.org/fhir/StructureDefinition/MedicationStatement|5.0.0 for use in FHIR R4." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Extension"^^xsd:anyURI ;
    fhir:l fhir:Extension         ] ;
            ( fhir:profile [
    fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.adherence"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.adherence>         ] )       ] ) ;
          ( fhir:condition [ fhir:v "ele-1" ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element?version=4.0.1>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Extension?version=4.0.1>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ]     ] [
    fhir:id [ fhir:v "MedicationStatement.extension:adherence.id" ] ;
    fhir:path [ fhir:v "MedicationStatement.extension.id" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "Unique id for inter-element referencing" ] ;
    fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
            ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type>           ] ;
    fhir:value [
    a fhir:Url ;
    fhir:v "string"^^xsd:anyURI ;
    fhir:l fhir:string           ]         ] ) ;
    fhir:code [
    fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhirpath/System.String>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.extension:adherence.extension" ] ;
    fhir:path [ fhir:v "MedicationStatement.extension.extension" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "value" ] ;
    fhir:path [ fhir:v "url" ]         ] ) ;
    fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
    fhir:ordered [ fhir:v false ] ;
    fhir:rules [ fhir:v "closed" ]       ] ;
    fhir:short [ fhir:v "Extension" ] ;
    fhir:definition [ fhir:v "An Extension" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Extension"^^xsd:anyURI ;
    fhir:l fhir:Extension         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element?version=4.0.1>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Extension?version=4.0.1>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ]     ] [
    fhir:id [ fhir:v "MedicationStatement.extension:adherence.extension:code" ] ;
    fhir:path [ fhir:v "MedicationStatement.extension.extension" ] ;
    fhir:sliceName [ fhir:v "code" ] ;
    fhir:short [ fhir:v "Type of adherence." ] ;
    fhir:definition [ fhir:v "An Extension" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Extension"^^xsd:anyURI ;
    fhir:l fhir:Extension         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element?version=4.0.1>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Extension?version=4.0.1>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ]     ] [
    fhir:id [ fhir:v "MedicationStatement.extension:adherence.extension:code.id" ] ;
    fhir:path [ fhir:v "MedicationStatement.extension.extension.id" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "Unique id for inter-element referencing" ] ;
    fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
            ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type>           ] ;
    fhir:value [
    a fhir:Url ;
    fhir:v "string"^^xsd:anyURI ;
    fhir:l fhir:string           ]         ] ) ;
    fhir:code [
    fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhirpath/System.String>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.extension:adherence.extension:code.extension" ] ;
    fhir:path [ fhir:v "MedicationStatement.extension.extension.extension" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "value" ] ;
    fhir:path [ fhir:v "url" ]         ] ) ;
    fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
    fhir:rules [ fhir:v "open" ]       ] ;
    fhir:short [ fhir:v "Additional content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Extension"^^xsd:anyURI ;
    fhir:l fhir:Extension         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element?version=4.0.1>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Extension?version=4.0.1>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.extension:adherence.extension:code.url" ] ;
    fhir:path [ fhir:v "MedicationStatement.extension.extension.url" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "identifies the meaning of the extension" ] ;
    fhir:definition [ fhir:v "Source of the definition for the extension code - a logical name or a URL." ] ;
    fhir:comment [ fhir:v "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Extension.url" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
            ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type>           ] ;
    fhir:value [
    a fhir:Url ;
    fhir:v "uri"^^xsd:anyURI ;
    fhir:l fhir:uri           ]         ] ) ;
    fhir:code [
    fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhirpath/System.String>         ]       ] ) ;
    fhir:fixed [
    a fhir:Uri ;
    fhir:v "code"^^xsd:anyURI ;
    fhir:l fhir:code       ] ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.extension:adherence.extension:code.value[x]" ] ;
    fhir:path [ fhir:v "MedicationStatement.extension.extension.value[x]" ] ;
    fhir:short [ fhir:v "Type of adherence" ] ;
    fhir:definition [ fhir:v "Type of the adherence for the medication." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Extension.value[x]" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "CodeableConcept"^^xsd:anyURI ;
    fhir:l fhir:CodeableConcept         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element?version=4.0.1>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
    fhir:binding [
    fhir:strength [ fhir:v "example" ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/5.0/ValueSet/R5-medication-statement-adherence-for-R4|0.0.1-snapshot-2"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/5.0/ValueSet/R5-medication-statement-adherence-for-R4?version=0.0.1-snapshot-2>         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.extension:adherence.extension:reason" ] ;
    fhir:path [ fhir:v "MedicationStatement.extension.extension" ] ;
    fhir:sliceName [ fhir:v "reason" ] ;
    fhir:short [ fhir:v "Details of the reason for the current use of the medication" ] ;
    fhir:definition [ fhir:v "Captures the reason for the current use or adherence of a medication." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Extension"^^xsd:anyURI ;
    fhir:l fhir:Extension         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element?version=4.0.1>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Extension?version=4.0.1>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ]     ] [
    fhir:id [ fhir:v "MedicationStatement.extension:adherence.extension:reason.id" ] ;
    fhir:path [ fhir:v "MedicationStatement.extension.extension.id" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "Unique id for inter-element referencing" ] ;
    fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
            ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type>           ] ;
    fhir:value [
    a fhir:Url ;
    fhir:v "string"^^xsd:anyURI ;
    fhir:l fhir:string           ]         ] ) ;
    fhir:code [
    fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhirpath/System.String>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.extension:adherence.extension:reason.extension" ] ;
    fhir:path [ fhir:v "MedicationStatement.extension.extension.extension" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "value" ] ;
    fhir:path [ fhir:v "url" ]         ] ) ;
    fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
    fhir:rules [ fhir:v "open" ]       ] ;
    fhir:short [ fhir:v "Additional content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Extension"^^xsd:anyURI ;
    fhir:l fhir:Extension         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element?version=4.0.1>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Extension?version=4.0.1>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.extension:adherence.extension:reason.url" ] ;
    fhir:path [ fhir:v "MedicationStatement.extension.extension.url" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "identifies the meaning of the extension" ] ;
    fhir:definition [ fhir:v "Source of the definition for the extension code - a logical name or a URL." ] ;
    fhir:comment [ fhir:v "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Extension.url" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
            ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type>           ] ;
    fhir:value [
    a fhir:Url ;
    fhir:v "uri"^^xsd:anyURI ;
    fhir:l fhir:uri           ]         ] ) ;
    fhir:code [
    fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhirpath/System.String>         ]       ] ) ;
    fhir:fixed [
    a fhir:Uri ;
    fhir:v "reason"^^xsd:anyURI ;
    fhir:l fhir:reason       ] ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.extension:adherence.extension:reason.value[x]" ] ;
    fhir:path [ fhir:v "MedicationStatement.extension.extension.value[x]" ] ;
    fhir:short [ fhir:v "Details of the reason for the current use of the medication" ] ;
    fhir:definition [ fhir:v "Captures the reason for the current use or adherence of a medication." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Extension.value[x]" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "CodeableConcept"^^xsd:anyURI ;
    fhir:l fhir:CodeableConcept         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element?version=4.0.1>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
    fhir:binding [
    fhir:strength [ fhir:v "example" ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/5.0/ValueSet/R5-reason-medication-status-codes-for-R4|0.0.1-snapshot-2"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/5.0/ValueSet/R5-reason-medication-status-codes-for-R4?version=0.0.1-snapshot-2>         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.extension:adherence.url" ] ;
    fhir:path [ fhir:v "MedicationStatement.extension.url" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "identifies the meaning of the extension" ] ;
    fhir:definition [ fhir:v "Source of the definition for the extension code - a logical name or a URL." ] ;
    fhir:comment [ fhir:v "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Extension.url" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
            ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type>           ] ;
    fhir:value [
    a fhir:Url ;
    fhir:v "uri"^^xsd:anyURI ;
    fhir:l fhir:uri           ]         ] ) ;
    fhir:code [
    fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhirpath/System.String>         ]       ] ) ;
    fhir:fixed [
    a fhir:Uri ;
    fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.adherence"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.adherence>       ] ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.extension:adherence.value[x]" ] ;
    fhir:path [ fhir:v "MedicationStatement.extension.value[x]" ] ;
    fhir:short [ fhir:v "Value of extension" ] ;
    fhir:definition [ fhir:v "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "0" ] ;
    fhir:base [
    fhir:path [ fhir:v "Extension.value[x]" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "base64Binary"^^xsd:anyURI ;
    fhir:l fhir:base64Binary         ]       ] [
    fhir:code [
    fhir:v "boolean"^^xsd:anyURI ;
    fhir:l fhir:boolean         ]       ] [
    fhir:code [
    fhir:v "canonical"^^xsd:anyURI ;
    fhir:l fhir:canonical         ]       ] [
    fhir:code [
    fhir:v "code"^^xsd:anyURI ;
    fhir:l fhir:code         ]       ] [
    fhir:code [
    fhir:v "date"^^xsd:anyURI ;
    fhir:l fhir:date         ]       ] [
    fhir:code [
    fhir:v "dateTime"^^xsd:anyURI ;
    fhir:l fhir:dateTime         ]       ] [
    fhir:code [
    fhir:v "decimal"^^xsd:anyURI ;
    fhir:l fhir:decimal         ]       ] [
    fhir:code [
    fhir:v "id"^^xsd:anyURI ;
    fhir:l fhir:id         ]       ] [
    fhir:code [
    fhir:v "instant"^^xsd:anyURI ;
    fhir:l fhir:instant         ]       ] [
    fhir:code [
    fhir:v "integer"^^xsd:anyURI ;
    fhir:l fhir:integer         ]       ] [
    fhir:code [
    fhir:v "markdown"^^xsd:anyURI ;
    fhir:l fhir:markdown         ]       ] [
    fhir:code [
    fhir:v "oid"^^xsd:anyURI ;
    fhir:l fhir:oid         ]       ] [
    fhir:code [
    fhir:v "positiveInt"^^xsd:anyURI ;
    fhir:l fhir:positiveInt         ]       ] [
    fhir:code [
    fhir:v "string"^^xsd:anyURI ;
    fhir:l fhir:string         ]       ] [
    fhir:code [
    fhir:v "time"^^xsd:anyURI ;
    fhir:l fhir:time         ]       ] [
    fhir:code [
    fhir:v "unsignedInt"^^xsd:anyURI ;
    fhir:l fhir:unsignedInt         ]       ] [
    fhir:code [
    fhir:v "uri"^^xsd:anyURI ;
    fhir:l fhir:uri         ]       ] [
    fhir:code [
    fhir:v "url"^^xsd:anyURI ;
    fhir:l fhir:url         ]       ] [
    fhir:code [
    fhir:v "uuid"^^xsd:anyURI ;
    fhir:l fhir:uuid         ]       ] [
    fhir:code [
    fhir:v "Address"^^xsd:anyURI ;
    fhir:l fhir:Address         ]       ] [
    fhir:code [
    fhir:v "Age"^^xsd:anyURI ;
    fhir:l fhir:Age         ]       ] [
    fhir:code [
    fhir:v "Annotation"^^xsd:anyURI ;
    fhir:l fhir:Annotation         ]       ] [
    fhir:code [
    fhir:v "Attachment"^^xsd:anyURI ;
    fhir:l fhir:Attachment         ]       ] [
    fhir:code [
    fhir:v "CodeableConcept"^^xsd:anyURI ;
    fhir:l fhir:CodeableConcept         ]       ] [
    fhir:code [
    fhir:v "Coding"^^xsd:anyURI ;
    fhir:l fhir:Coding         ]       ] [
    fhir:code [
    fhir:v "ContactPoint"^^xsd:anyURI ;
    fhir:l fhir:ContactPoint         ]       ] [
    fhir:code [
    fhir:v "Count"^^xsd:anyURI ;
    fhir:l fhir:Count         ]       ] [
    fhir:code [
    fhir:v "Distance"^^xsd:anyURI ;
    fhir:l fhir:Distance         ]       ] [
    fhir:code [
    fhir:v "Duration"^^xsd:anyURI ;
    fhir:l fhir:Duration         ]       ] [
    fhir:code [
    fhir:v "HumanName"^^xsd:anyURI ;
    fhir:l fhir:HumanName         ]       ] [
    fhir:code [
    fhir:v "Identifier"^^xsd:anyURI ;
    fhir:l fhir:Identifier         ]       ] [
    fhir:code [
    fhir:v "Money"^^xsd:anyURI ;
    fhir:l fhir:Money         ]       ] [
    fhir:code [
    fhir:v "Period"^^xsd:anyURI ;
    fhir:l fhir:Period         ]       ] [
    fhir:code [
    fhir:v "Quantity"^^xsd:anyURI ;
    fhir:l fhir:Quantity         ]       ] [
    fhir:code [
    fhir:v "Range"^^xsd:anyURI ;
    fhir:l fhir:Range         ]       ] [
    fhir:code [
    fhir:v "Ratio"^^xsd:anyURI ;
    fhir:l fhir:Ratio         ]       ] [
    fhir:code [
    fhir:v "Reference"^^xsd:anyURI ;
    fhir:l fhir:Reference         ]       ] [
    fhir:code [
    fhir:v "SampledData"^^xsd:anyURI ;
    fhir:l fhir:SampledData         ]       ] [
    fhir:code [
    fhir:v "Signature"^^xsd:anyURI ;
    fhir:l fhir:Signature         ]       ] [
    fhir:code [
    fhir:v "Timing"^^xsd:anyURI ;
    fhir:l fhir:Timing         ]       ] [
    fhir:code [
    fhir:v "ContactDetail"^^xsd:anyURI ;
    fhir:l fhir:ContactDetail         ]       ] [
    fhir:code [
    fhir:v "Contributor"^^xsd:anyURI ;
    fhir:l fhir:Contributor         ]       ] [
    fhir:code [
    fhir:v "DataRequirement"^^xsd:anyURI ;
    fhir:l fhir:DataRequirement         ]       ] [
    fhir:code [
    fhir:v "Expression"^^xsd:anyURI ;
    fhir:l fhir:Expression         ]       ] [
    fhir:code [
    fhir:v "ParameterDefinition"^^xsd:anyURI ;
    fhir:l fhir:ParameterDefinition         ]       ] [
    fhir:code [
    fhir:v "RelatedArtifact"^^xsd:anyURI ;
    fhir:l fhir:RelatedArtifact         ]       ] [
    fhir:code [
    fhir:v "TriggerDefinition"^^xsd:anyURI ;
    fhir:l fhir:TriggerDefinition         ]       ] [
    fhir:code [
    fhir:v "UsageContext"^^xsd:anyURI ;
    fhir:l fhir:UsageContext         ]       ] [
    fhir:code [
    fhir:v "Dosage"^^xsd:anyURI ;
    fhir:l fhir:Dosage         ]       ] [
    fhir:code [
    fhir:v "Meta"^^xsd:anyURI ;
    fhir:l fhir:Meta         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element?version=4.0.1>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.modifierExtension" ] ;
    fhir:path [ fhir:v "MedicationStatement.modifierExtension" ] ;
    fhir:short [ fhir:v "Extensions that cannot be ignored" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
    fhir:requirements [ fhir:v "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "DomainResource.modifierExtension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Extension"^^xsd:anyURI ;
    fhir:l fhir:Extension         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
    fhir:isModifier [ fhir:v true ] ;
    fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them" ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "N/A" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.identifier" ] ;
    fhir:path [ fhir:v "MedicationStatement.identifier" ] ;
    fhir:short [ fhir:v "Medication Statement Identifier" ] ;
    fhir:definition [ fhir:v "Identifiers associated with this Medication Statement that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server." ] ;
    fhir:comment [ fhir:v "This is a business identifier, not a resource identifier." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "MedicationStatement.identifier" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Identifier"^^xsd:anyURI ;
    fhir:l fhir:Identifier         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.identifier" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.identifier" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".id" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.basedOn" ] ;
    fhir:path [ fhir:v "MedicationStatement.basedOn" ] ;
    fhir:short [ fhir:v "Fulfils plan, proposal or order" ] ;
    fhir:definition [ fhir:v "A plan, proposal or order that is fulfilled in whole or in part by this event." ] ;
    fhir:requirements [ fhir:v "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "MedicationStatement.basedOn" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Reference"^^xsd:anyURI ;
    fhir:l fhir:Reference         ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationRequest?version=4.0.1>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/CarePlan?version=4.0.1>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/ServiceRequest?version=4.0.1>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.basedOn" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".outboundRelationship[typeCode=FLFS].target[classCode=SBADM or PROC or PCPR or OBS, moodCode=RQO orPLAN or PRP]" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.partOf" ] ;
    fhir:path [ fhir:v "MedicationStatement.partOf" ] ;
    fhir:short [ fhir:v "Part of referenced event" ] ;
    fhir:definition [ fhir:v "A larger event of which this particular event is a component or step." ] ;
    fhir:requirements [ fhir:v "This should not be used when indicating which resource a MedicationStatement has been derived from.  If that is the use case, then MedicationStatement.derivedFrom should be used." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "MedicationStatement.partOf" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Reference"^^xsd:anyURI ;
    fhir:l fhir:Reference         ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationAdministration|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationAdministration?version=4.0.1>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationDispense|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationDispense?version=4.0.1>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationStatement|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationStatement?version=4.0.1>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Procedure?version=4.0.1>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Observation?version=4.0.1>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.partOf" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".outboundRelationship[typeCode=COMP]/target[classCode=SPLY or SBADM or PROC or OBS,moodCode=EVN]" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.status" ] ;
    fhir:path [ fhir:v "MedicationStatement.status" ] ;
    fhir:short [ fhir:v "State of the medication" ] ;
    fhir:definition [ fhir:v "A code representing the patient or other source's judgment about the state of the medication used that this statement is about.  Generally, this will be active or completed." ] ;
    fhir:comment [ fhir:v "MedicationStatement is a statement at a point in time.  The status is only representative at the point when it was asserted.  The value set for MedicationStatement.status contains codes that assert the status of the use of the medication by the patient (for example, stopped or on hold) as well as codes that assert the status of the medication statement itself (for example, entered in error).\r\rThis element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "MedicationStatement.status" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "code"^^xsd:anyURI ;
    fhir:l fhir:code         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v true ] ;
    fhir:isModifierReason [ fhir:v "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid" ] ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>           ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "MedicationStatementStatus"           ]         ] ) ;
    fhir:strength [ fhir:v "required" ] ;
    fhir:description [ fhir:v "A coded concept indicating the current status of a MedicationStatement." ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/medication-statement-status|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/ValueSet/medication-statement-status?version=4.0.1>         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.status" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.status" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".statusCode" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.statusReason" ] ;
    fhir:path [ fhir:v "MedicationStatement.statusReason" ] ;
    fhir:short [ fhir:v "Reason for the 'exception' statuses of the medication" ] ;
    fhir:definition [ fhir:v "Captures the reason for the current state of the MedicationStatement." ] ;
    fhir:comment [ fhir:v "This is generally only used for \"exception\" statuses such as \"not-taken\", \"on-hold\", \"cancelled\" or \"entered-in-error\". The reason for performing the event at all is captured in reasonCode, not here." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "MedicationStatement.statusReason" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "CodeableConcept"^^xsd:anyURI ;
    fhir:l fhir:CodeableConcept         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>           ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "MedicationStatementStatusReason"           ]         ] ) ;
    fhir:strength [ fhir:v "example" ] ;
    fhir:description [ fhir:v "A coded concept indicating the reason for the status of the statement." ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/reason-medication-status-codes|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/ValueSet/reason-medication-status-codes?version=4.0.1>         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.statusReason" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN].reasonCOde" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.category" ] ;
    fhir:path [ fhir:v "MedicationStatement.category" ] ;
    fhir:short [ fhir:v "Type of intended use" ] ;
    fhir:definition [ fhir:v "Indicates where the medication is expected to be consumed or administered." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "MedicationStatement.category" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "CodeableConcept"^^xsd:anyURI ;
    fhir:l fhir:CodeableConcept         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
            ( fhir:extension [
              ( fhir:extension [
    fhir:url [
    fhir:v "purpose"^^xsd:anyURI ;
    fhir:l fhir:purpose             ] ;
    fhir:value [
    a fhir:Code ;
    fhir:v "preferred"             ]           ] [
    fhir:url [
    fhir:v "valueSet"^^xsd:anyURI ;
    fhir:l fhir:valueSet             ] ;
    fhir:value [
    a fhir:Canonical ;
    fhir:v "http://hl7.eu/fhir/base/ValueSet/medicationIntendedUse-eu"^^xsd:anyURI ;
    fhir:l <http://hl7.eu/fhir/base/ValueSet/medicationIntendedUse-eu>             ]           ] [
    fhir:url [
    fhir:v "documentation"^^xsd:anyURI ;
    fhir:l fhir:documentation             ] ;
    fhir:value [
    a fhir:Markdown ;
    fhir:v "When category is used for describing the intended use of the medication (e.g. Prophylactic use)."             ]           ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/tools/StructureDefinition/additional-binding"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/tools/StructureDefinition/additional-binding>           ]         ] ) ;
    fhir:strength [ fhir:v "preferred" ] ;
    fhir:description [ fhir:v "A coded concept identifying where the medication included in the MedicationStatement is expected to be consumed or administered." ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/medication-statement-category"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/ValueSet/medication-statement-category>         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.class" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=\"type of medication usage\"].value" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.medication[x]" ] ;
    fhir:path [ fhir:v "MedicationStatement.medication[x]" ] ;
    fhir:short [ fhir:v "What medication was taken" ] ;
    fhir:definition [ fhir:v "Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications." ] ;
    fhir:comment [ fhir:v "If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the medication resource is recommended.  For example, if you require form or lot number, then you must reference the Medication resource." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "MedicationStatement.medication[x]" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "CodeableConcept"^^xsd:anyURI ;
    fhir:l fhir:CodeableConcept         ]       ] [
    fhir:code [
    fhir:v "Reference"^^xsd:anyURI ;
    fhir:l fhir:Reference         ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.eu/fhir/base/StructureDefinition/medication-eu-core"^^xsd:anyURI ;
    fhir:l <http://hl7.eu/fhir/base/StructureDefinition/medication-eu-core>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
    fhir:binding [
    fhir:strength [ fhir:v "example" ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/uv/ips/ValueSet/medication-uv-ips"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/ips/ValueSet/medication-uv-ips>         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.code" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.what[x]" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".participation[typeCode=CSM].role[classCode=ADMM or MANU]" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.subject" ] ;
    fhir:path [ fhir:v "MedicationStatement.subject" ] ;
    fhir:short [ fhir:v "Who is/was taking  the medication" ] ;
    fhir:definition [ fhir:v "The person, animal or group who is/was taking the medication." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "MedicationStatement.subject" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Reference"^^xsd:anyURI ;
    fhir:l fhir:Reference         ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core"^^xsd:anyURI ;
    fhir:l <http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Group"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Group>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.subject" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.subject[x]" ]       ] [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "PID-3-Patient ID List" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".participation[typeCode=SBJ].role[classCode=PAT]" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.subject" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.context" ] ;
    fhir:path [ fhir:v "MedicationStatement.context" ] ;
    fhir:short [ fhir:v "Encounter / Episode associated with MedicationStatement" ] ;
    fhir:definition [ fhir:v "The encounter or episode of care that establishes the context for this MedicationStatement." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "MedicationStatement.context" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Reference"^^xsd:anyURI ;
    fhir:l fhir:Reference         ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Encounter?version=4.0.1>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/EpisodeOfCare?version=4.0.1>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.context" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code=\"type of encounter or episode\"]" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.effective[x]" ] ;
    fhir:path [ fhir:v "MedicationStatement.effective[x]" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "type" ] ;
    fhir:path [ fhir:v "$this" ]         ] ) ;
    fhir:ordered [ fhir:v false ] ;
    fhir:rules [ fhir:v "open" ]       ] ;
    fhir:short [ fhir:v "The date/time or interval when the medication is/was/will be taken" ] ;
    fhir:definition [ fhir:v "The interval of time during which it is being asserted that the patient is/was/will be taking the medication (or was not taking, when the MedicationStatement.taken element is No)." ] ;
    fhir:comment [ fhir:v "This attribute reflects the period over which the patient consumed the medication and is expected to be populated on the majority of Medication Statements. If the medication is still being taken at the time the statement is recorded, the \"end\" date will be omitted.  The date/time attribute supports a variety of dates - year, year/month and exact date.  If something more than this is required, this should be conveyed as text." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "MedicationStatement.effective[x]" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "dateTime"^^xsd:anyURI ;
    fhir:l fhir:dateTime         ]       ] [
    fhir:code [
    fhir:v "Period"^^xsd:anyURI ;
    fhir:l fhir:Period         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.occurrence[x]" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.done[x]" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".effectiveTime" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.effective[x]:effectivePeriod" ] ;
    fhir:path [ fhir:v "MedicationStatement.effective[x]" ] ;
    fhir:sliceName [ fhir:v "effectivePeriod" ] ;
    fhir:short [ fhir:v "Period when the medication is/was or should be used." ] ;
    fhir:definition [ fhir:v "The interval of time during which it is being asserted that the patient is/was/will be taking the medication (or was not taking, when the MedicationStatement.taken element is No)." ] ;
    fhir:comment [ fhir:v "This attribute reflects the period over which the patient consumed the medication and is expected to be populated on the majority of Medication Statements. If the medication is still being taken at the time the statement is recorded, the \"end\" date will be omitted.  The date/time attribute supports a variety of dates - year, year/month and exact date.  If something more than this is required, this should be conveyed as text." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "MedicationStatement.effective[x]" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Period"^^xsd:anyURI ;
    fhir:l fhir:Period         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.occurrence[x]" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.done[x]" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".effectiveTime" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.dateAsserted" ] ;
    fhir:path [ fhir:v "MedicationStatement.dateAsserted" ] ;
    fhir:short [ fhir:v "When the statement was asserted?" ] ;
    fhir:definition [ fhir:v "The date when the medication statement was asserted by the information source." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "MedicationStatement.dateAsserted" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "dateTime"^^xsd:anyURI ;
    fhir:l fhir:dateTime         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.recorded" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".participation[typeCode=AUT].time" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.informationSource" ] ;
    fhir:path [ fhir:v "MedicationStatement.informationSource" ] ;
    fhir:short [ fhir:v "Person or organization that provided the information about the taking of this medication" ] ;
    fhir:definition [ fhir:v "The person or organization that provided the information about the taking of this medication. Note: Use derivedFrom when a MedicationStatement is derived from other resources, e.g. Claim or MedicationRequest." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "MedicationStatement.informationSource" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Reference"^^xsd:anyURI ;
    fhir:l fhir:Reference         ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core"^^xsd:anyURI ;
    fhir:l <http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core>         ] [
    fhir:v "http://hl7.eu/fhir/base/StructureDefinition/practitioner-eu-core"^^xsd:anyURI ;
    fhir:l <http://hl7.eu/fhir/base/StructureDefinition/practitioner-eu-core>         ] [
    fhir:v "http://hl7.eu/fhir/base/StructureDefinition/practitionerRole-eu-core"^^xsd:anyURI ;
    fhir:l <http://hl7.eu/fhir/base/StructureDefinition/practitionerRole-eu-core>         ] [
    fhir:v "http://hl7.eu/fhir/base/StructureDefinition/organization-eu-core"^^xsd:anyURI ;
    fhir:l <http://hl7.eu/fhir/base/StructureDefinition/organization-eu-core>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/RelatedPerson"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/RelatedPerson>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.source" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".participation[typeCode=INF].role[classCode=PAT, or codes for Practioner or Related Person (if PAT is the informer, then syntax for self-reported =true)" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.derivedFrom" ] ;
    fhir:path [ fhir:v "MedicationStatement.derivedFrom" ] ;
    fhir:short [ fhir:v "The reference to the source of the statement" ] ;
    fhir:definition [ fhir:v "Allows linking the MedicationStatement to the underlying MedicationRequest, or to other information that supports or is used to derive the MedicationStatement." ] ;
    fhir:comment [ fhir:v "Likely references would be to MedicationRequest, MedicationDispense, Claim, Observation or QuestionnaireAnswers.  The most common use cases for deriving a MedicationStatement comes from creating a MedicationStatement from a MedicationRequest or from a lab observation or a claim.  it should be noted that the amount of information that is available varies from the type resource that you derive the MedicationStatement from." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "MedicationStatement.derivedFrom" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Reference"^^xsd:anyURI ;
    fhir:l fhir:Reference         ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Resource|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Resource?version=4.0.1>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".outboundRelationship[typeCode=SPRT]/target[classCode=ACT,moodCode=EVN]" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.reasonCode" ] ;
    fhir:path [ fhir:v "MedicationStatement.reasonCode" ] ;
    fhir:short [ fhir:v "Coded reason for use" ] ;
    fhir:definition [ fhir:v "A reason for why the medication is being/was taken." ] ;
    fhir:comment [ fhir:v "This could be a diagnosis code. If a full condition record exists or additional detail is needed, use reasonForUseReference." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "MedicationStatement.reasonCode" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "CodeableConcept"^^xsd:anyURI ;
    fhir:l fhir:CodeableConcept         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
    fhir:binding [
            ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>           ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "MedicationReason"           ]         ] ) ;
    fhir:strength [ fhir:v "example" ] ;
    fhir:description [ fhir:v "A coded concept identifying why the medication is being taken." ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/condition-code|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/ValueSet/condition-code?version=4.0.1>         ]       ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.reasonCode" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.why[x]" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".reasonCode" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.reasonReference" ] ;
    fhir:path [ fhir:v "MedicationStatement.reasonReference" ] ;
    fhir:short [ fhir:v "Condition or observation that supports why the medication is being/was taken" ] ;
    fhir:definition [ fhir:v "Condition or observation that supports why the medication is being/was taken." ] ;
    fhir:comment [ fhir:v "This is a reference to a condition that is the reason why the medication is being/was taken.  If only a code exists, use reasonForUseCode." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "MedicationStatement.reasonReference" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Reference"^^xsd:anyURI ;
    fhir:l fhir:Reference         ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Condition|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Condition?version=4.0.1>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Observation?version=4.0.1>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/DiagnosticReport|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/DiagnosticReport?version=4.0.1>         ] )       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.reasonReference" ]       ] [
    fhir:identity [ fhir:v "w5" ] ;
    fhir:map [ fhir:v "FiveWs.why[x]" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code=\"reason for use\"].value" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.note" ] ;
    fhir:path [ fhir:v "MedicationStatement.note" ] ;
    fhir:short [ fhir:v "Further information about the statement" ] ;
    fhir:definition [ fhir:v "Provides extra information about the medication statement that is not conveyed by the other attributes." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "MedicationStatement.note" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Annotation"^^xsd:anyURI ;
    fhir:l fhir:Annotation         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "workflow" ] ;
    fhir:map [ fhir:v "Event.note" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v ".inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code=\"annotation\"].value" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.note.id" ] ;
    fhir:path [ fhir:v "MedicationStatement.note.id" ] ;
          ( fhir:representation [ fhir:v "xmlAttr" ] ) ;
    fhir:short [ fhir:v "Unique id for inter-element referencing" ] ;
    fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.id" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
            ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type>           ] ;
    fhir:value [
    a fhir:Url ;
    fhir:v "string"^^xsd:anyURI ;
    fhir:l fhir:string           ]         ] ) ;
    fhir:code [
    fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhirpath/System.String>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.note.extension" ] ;
    fhir:path [ fhir:v "MedicationStatement.note.extension" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "value" ] ;
    fhir:path [ fhir:v "url" ]         ] ) ;
    fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
    fhir:rules [ fhir:v "open" ]       ] ;
    fhir:short [ fhir:v "Additional content defined by implementations" ] ;
    fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ;
    fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ;
          ( fhir:alias [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "Element.extension" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Extension"^^xsd:anyURI ;
    fhir:l fhir:Extension         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] [
    fhir:key [ fhir:v "ext-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
    fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
    fhir:xpath [ fhir:v "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Extension"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "n/a" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.note.author[x]" ] ;
    fhir:path [ fhir:v "MedicationStatement.note.author[x]" ] ;
    fhir:short [ fhir:v "Individual responsible for the annotation" ] ;
    fhir:definition [ fhir:v "The individual responsible for making the annotation." ] ;
    fhir:comment [ fhir:v "Organization is used when there's no need for specific attribution as to who made the comment." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Annotation.author[x]" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Reference"^^xsd:anyURI ;
    fhir:l fhir:Reference         ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Practitioner?version=4.0.1>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Patient?version=4.0.1>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/RelatedPerson?version=4.0.1>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Organization?version=4.0.1>         ] )       ] [
    fhir:code [
    fhir:v "string"^^xsd:anyURI ;
    fhir:l fhir:string         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "N/A" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "Act.participant[typeCode=AUT].role" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.note.time" ] ;
    fhir:path [ fhir:v "MedicationStatement.note.time" ] ;
    fhir:short [ fhir:v "When the annotation was made" ] ;
    fhir:definition [ fhir:v "Indicates when this particular annotation was made." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Annotation.time" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "dateTime"^^xsd:anyURI ;
    fhir:l fhir:dateTime         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "N/A" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "Act.effectiveTime" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.note.text" ] ;
    fhir:path [ fhir:v "MedicationStatement.note.text" ] ;
    fhir:short [ fhir:v "Textual note about the statement" ] ;
    fhir:definition [ fhir:v "The text of the annotation in markdown format." ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:base [
    fhir:path [ fhir:v "Annotation.text" ] ;
    fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "markdown"^^xsd:anyURI ;
    fhir:l fhir:markdown         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v true ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "v2" ] ;
    fhir:map [ fhir:v "N/A" ]       ] [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "Act.text" ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.dosage" ] ;
    fhir:path [ fhir:v "MedicationStatement.dosage" ] ;
    fhir:short [ fhir:v "Details of how medication is/was taken or should be taken." ] ;
    fhir:definition [ fhir:v "Indicates how the medication is/was or should be taken by the patient." ] ;
    fhir:comment [ fhir:v "The dates included in the dosage on a Medication Statement reflect the dates for a given dose.  For example, \"from November 1, 2016 to November 3, 2016, take one tablet daily and from November 4, 2016 to November 7, 2016, take two tablets daily.\"  It is expected that this specificity may only be populated where the patient brings in their labeled container or where the Medication Statement is derived from a MedicationRequest." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:base [
    fhir:path [ fhir:v "MedicationStatement.dosage" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "*" ]       ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Dosage"^^xsd:anyURI ;
    fhir:l fhir:Dosage         ]       ] ) ;
          ( fhir:constraint [
    fhir:key [ fhir:v "ele-1" ] ;
    fhir:severity [ fhir:v "error" ] ;
    fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
    fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
    fhir:xpath [ fhir:v "@value|f:*|h:div" ] ;
    fhir:source [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Element>         ]       ] ) ;
    fhir:isModifier [ fhir:v false ] ;
    fhir:isSummary [ fhir:v false ] ;
          ( fhir:mapping [
    fhir:identity [ fhir:v "rim" ] ;
    fhir:map [ fhir:v "refer dosageInstruction mapping" ]       ] )     ] )
      ] ; #
      fhir:differential [
        ( fhir:element [
    fhir:id [ fhir:v "MedicationStatement" ] ;
    fhir:path [ fhir:v "MedicationStatement" ]     ] [
    fhir:id [ fhir:v "MedicationStatement.language" ] ;
    fhir:path [ fhir:v "MedicationStatement.language" ] ;
    fhir:short [ fhir:v "Language of the statement" ]     ] [
    fhir:id [ fhir:v "MedicationStatement.extension" ] ;
    fhir:path [ fhir:v "MedicationStatement.extension" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "value" ] ;
    fhir:path [ fhir:v "url" ]         ] ) ;
    fhir:ordered [ fhir:v false ] ;
    fhir:rules [ fhir:v "open" ]       ]     ] [
    fhir:id [ fhir:v "MedicationStatement.extension:adherence" ] ;
    fhir:path [ fhir:v "MedicationStatement.extension" ] ;
    fhir:sliceName [ fhir:v "adherence" ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Extension"^^xsd:anyURI ;
    fhir:l fhir:Extension         ] ;
            ( fhir:profile [
    fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.adherence"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.adherence>         ] )       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.extension:adherence.extension:code" ] ;
    fhir:path [ fhir:v "MedicationStatement.extension.extension" ] ;
    fhir:sliceName [ fhir:v "code" ] ;
    fhir:short [ fhir:v "Type of adherence." ]     ] [
    fhir:id [ fhir:v "MedicationStatement.extension:adherence.value[x]" ] ;
    fhir:path [ fhir:v "MedicationStatement.extension.value[x]" ] ;
    fhir:max [ fhir:v "0" ]     ] [
    fhir:id [ fhir:v "MedicationStatement.identifier" ] ;
    fhir:path [ fhir:v "MedicationStatement.identifier" ] ;
    fhir:short [ fhir:v "Medication Statement Identifier" ]     ] [
    fhir:id [ fhir:v "MedicationStatement.status" ] ;
    fhir:path [ fhir:v "MedicationStatement.status" ] ;
    fhir:short [ fhir:v "State of the medication" ]     ] [
    fhir:id [ fhir:v "MedicationStatement.statusReason" ] ;
    fhir:path [ fhir:v "MedicationStatement.statusReason" ] ;
    fhir:short [ fhir:v "Reason for the 'exception' statuses of the medication" ]     ] [
    fhir:id [ fhir:v "MedicationStatement.category" ] ;
    fhir:path [ fhir:v "MedicationStatement.category" ] ;
    fhir:short [ fhir:v "Type of intended use" ] ;
    fhir:binding [
            ( fhir:extension [
              ( fhir:extension [
    fhir:url [
    fhir:v "purpose"^^xsd:anyURI ;
    fhir:l fhir:purpose             ] ;
    fhir:value [
    a fhir:Code ;
    fhir:v "preferred"             ]           ] [
    fhir:url [
    fhir:v "valueSet"^^xsd:anyURI ;
    fhir:l fhir:valueSet             ] ;
    fhir:value [
    a fhir:Canonical ;
    fhir:v "http://hl7.eu/fhir/base/ValueSet/medicationIntendedUse-eu"^^xsd:anyURI ;
    fhir:l <http://hl7.eu/fhir/base/ValueSet/medicationIntendedUse-eu>             ]           ] [
    fhir:url [
    fhir:v "documentation"^^xsd:anyURI ;
    fhir:l fhir:documentation             ] ;
    fhir:value [
    a fhir:Markdown ;
    fhir:v "When category is used for describing the intended use of the medication (e.g. Prophylactic use)."             ]           ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/tools/StructureDefinition/additional-binding"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/tools/StructureDefinition/additional-binding>           ]         ] ) ;
    fhir:strength [ fhir:v "preferred" ] ;
    fhir:description [ fhir:v "A coded concept identifying where the medication included in the MedicationStatement is expected to be consumed or administered." ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/ValueSet/medication-statement-category"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/ValueSet/medication-statement-category>         ]       ]     ] [
    fhir:id [ fhir:v "MedicationStatement.medication[x]" ] ;
    fhir:path [ fhir:v "MedicationStatement.medication[x]" ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "CodeableConcept"^^xsd:anyURI ;
    fhir:l fhir:CodeableConcept         ]       ] [
    fhir:code [
    fhir:v "Reference"^^xsd:anyURI ;
    fhir:l fhir:Reference         ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.eu/fhir/base/StructureDefinition/medication-eu-core"^^xsd:anyURI ;
    fhir:l <http://hl7.eu/fhir/base/StructureDefinition/medication-eu-core>         ] )       ] ) ;
    fhir:binding [
    fhir:strength [ fhir:v "example" ] ;
    fhir:valueSet [
    fhir:v "http://hl7.org/fhir/uv/ips/ValueSet/medication-uv-ips"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/ips/ValueSet/medication-uv-ips>         ]       ]     ] [
    fhir:id [ fhir:v "MedicationStatement.subject" ] ;
    fhir:path [ fhir:v "MedicationStatement.subject" ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Reference"^^xsd:anyURI ;
    fhir:l fhir:Reference         ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core"^^xsd:anyURI ;
    fhir:l <http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Group"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Group>         ] )       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.effective[x]" ] ;
    fhir:path [ fhir:v "MedicationStatement.effective[x]" ] ;
    fhir:slicing [
            ( fhir:discriminator [
    fhir:type [ fhir:v "type" ] ;
    fhir:path [ fhir:v "$this" ]         ] ) ;
    fhir:ordered [ fhir:v false ] ;
    fhir:rules [ fhir:v "open" ]       ]     ] [
    fhir:id [ fhir:v "MedicationStatement.effective[x]:effectivePeriod" ] ;
    fhir:path [ fhir:v "MedicationStatement.effective[x]" ] ;
    fhir:sliceName [ fhir:v "effectivePeriod" ] ;
    fhir:short [ fhir:v "Period when the medication is/was or should be used." ] ;
    fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
    fhir:max [ fhir:v "1" ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Period"^^xsd:anyURI ;
    fhir:l fhir:Period         ]       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.informationSource" ] ;
    fhir:path [ fhir:v "MedicationStatement.informationSource" ] ;
          ( fhir:type [
    fhir:code [
    fhir:v "Reference"^^xsd:anyURI ;
    fhir:l fhir:Reference         ] ;
            ( fhir:targetProfile [
    fhir:v "http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core"^^xsd:anyURI ;
    fhir:l <http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core>         ] [
    fhir:v "http://hl7.eu/fhir/base/StructureDefinition/practitioner-eu-core"^^xsd:anyURI ;
    fhir:l <http://hl7.eu/fhir/base/StructureDefinition/practitioner-eu-core>         ] [
    fhir:v "http://hl7.eu/fhir/base/StructureDefinition/practitionerRole-eu-core"^^xsd:anyURI ;
    fhir:l <http://hl7.eu/fhir/base/StructureDefinition/practitionerRole-eu-core>         ] [
    fhir:v "http://hl7.eu/fhir/base/StructureDefinition/organization-eu-core"^^xsd:anyURI ;
    fhir:l <http://hl7.eu/fhir/base/StructureDefinition/organization-eu-core>         ] [
    fhir:v "http://hl7.org/fhir/StructureDefinition/RelatedPerson"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/RelatedPerson>         ] )       ] )     ] [
    fhir:id [ fhir:v "MedicationStatement.derivedFrom" ] ;
    fhir:path [ fhir:v "MedicationStatement.derivedFrom" ] ;
    fhir:short [ fhir:v "The reference to the source of the statement" ]     ] [
    fhir:id [ fhir:v "MedicationStatement.reasonCode" ] ;
    fhir:path [ fhir:v "MedicationStatement.reasonCode" ] ;
    fhir:short [ fhir:v "Coded reason for use" ]     ] [
    fhir:id [ fhir:v "MedicationStatement.note.text" ] ;
    fhir:path [ fhir:v "MedicationStatement.note.text" ] ;
    fhir:short [ fhir:v "Textual note about the statement" ]     ] [
    fhir:id [ fhir:v "MedicationStatement.dosage" ] ;
    fhir:path [ fhir:v "MedicationStatement.dosage" ] ;
    fhir:short [ fhir:v "Details of how medication is/was taken or should be taken." ]     ] )
      ] . #