PackagesCanonicalsLogsProblems
    Packages
    novari.digidot@0.3.0
    https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationStatement-no
{
  "description": "Readiness: [In review](https://simplifier.net/guide/Visual-overview/Home/Review-status-and-releases.page.md?version=current#readiness-medicationstatement).\\n\\nDraft DigiDOT profile for recording medication use reported by a person or health professional with knowledge of the patient's medication use. When structured medication information is available, the medication is represented directly by a versioned SNOMED CT Medicinal Product, Medicinal Product Form or Clinical Drug concept, optionally accompanied by a FEST coding and reported product name. When structured medication information is not available, the medication is recorded as reported text. This narrow profile is not used to store medication information retrieved or imported from SFM or PLL.",
  "_filename": "StructureDefinition-digidot-MedicationStatement-no.json",
  "package_name": "novari.digidot",
  "date": "2026-10-08",
  "derivation": "constraint",
  "publisher": "Novari AS - DigiDOT",
  "fhirVersion": "4.0.1",
  "purpose": "Use this profile to record, in DigiDOT, medication use reported by the patient\nor another person or healthcare professional with knowledge of the patient's\nmedication use during dental care. It represents a report of current or\nhistorical medication use and is not a medication order or an administration\nevent. When structured medication information is available, use the most\nspecific supported SNOMED CT concept justified by the reported information. An\nadditional FEST coding and text may preserve a specific Norwegian medicinal\nproduct or brand name. When structured medication information is not\navailable, record the medication as reported text. Medication information\nretrieved or imported from SFM or PLL is outside the scope of this profile.",
  "name": "DigidotMedicationStatementNo",
  "mapping": [ {
    "uri": "http://hl7.org/fhir/workflow",
    "name": "Workflow Pattern",
    "identity": "workflow"
  }, {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/fhir/fivews",
    "name": "FiveWs Pattern Mapping",
    "identity": "w5"
  }, {
    "uri": "http://hl7.org/v2",
    "name": "HL7 v2 Mapping",
    "identity": "v2"
  } ],
  "abstract": false,
  "type": "MedicationStatement",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "DigiDot MedicationStatement (NO)",
  "package_version": "0.3.0",
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "dom-2",
        "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
        "xpath": "not(parent::f:contained and f:contained)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.contained.empty()"
      }, {
        "key": "dom-3",
        "human": "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",
        "xpath": "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='#'])]))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "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()"
      }, {
        "key": "dom-4",
        "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
        "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
      }, {
        "key": "dom-5",
        "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
        "xpath": "not(exists(f:contained/*/f:meta/f:security))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.security.empty()"
      }, {
        "key": "dom-6",
        "human": "A resource should have narrative for robust management",
        "xpath": "exists(f:text/h:div)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "warning",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
          "valueBoolean": true
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
          "valueMarkdown": "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."
        } ],
        "expression": "text.`div`.exists()"
      } ],
      "path": "MedicationStatement",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "Reported medication use",
      "mapping": [ {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      }, {
        "map": "Event",
        "identity": "workflow"
      }, {
        "map": "SubstanceAdministration",
        "identity": "rim"
      } ],
      "max": "*",
      "id": "MedicationStatement",
      "comment": "Interpret the resource as a report of medication use, not as evidence of a\nprescription, dispense or administration. Use status together with the reported\nmedication, information source, asserted date and any dosage information.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationStatement"
      },
      "isSummary": false
    }, {
      "path": "MedicationStatement.id",
      "min": 0,
      "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
      "isModifier": false,
      "short": "Logical id of this artifact",
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "max": "1",
      "id": "MedicationStatement.id",
      "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.id"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.meta",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "Metadata about the resource",
      "type": [ {
        "code": "Meta"
      } ],
      "max": "1",
      "id": "MedicationStatement.meta",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.meta"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.implicitRules",
      "min": 0,
      "definition": "A DigiDot MedicationStatement must be interpretable from the published FHIR R4\nprofile, terminology versions and agreed exchange documentation. Do not use\nimplicitRules to introduce undocumented processing rules.",
      "isModifier": true,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "type": [ {
        "code": "uri"
      } ],
      "max": "0",
      "id": "MedicationStatement.implicitRules",
      "comment": "implicitRules is prohibited in this profile.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.implicitRules"
      },
      "isModifierReason": "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",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.language",
      "min": 0,
      "definition": "The base language in which the resource is written.",
      "isModifier": false,
      "short": "Language of the resource content",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/languages",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Language"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean": true
        } ],
        "description": "A human language."
      },
      "max": "1",
      "id": "MedicationStatement.language",
      "comment": "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).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.language"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.text",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "Text summary of the resource, for human interpretation",
      "mapping": [ {
        "map": "Act.text?",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "alias": [ "narrative", "html", "xhtml", "display" ],
      "max": "1",
      "id": "MedicationStatement.text",
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "DomainResource.text"
      },
      "isSummary": false
    }, {
      "path": "MedicationStatement.contained",
      "min": 0,
      "definition": "Resources relevant to the DigiDot information model must be stored as\nindependently identifiable FHIR resources and linked by reference. Contained\nresources are not used in this profile.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Resource"
      } ],
      "alias": [ "inline resources", "anonymous resources", "contained resources" ],
      "max": "0",
      "id": "MedicationStatement.contained",
      "comment": "Contained resources are prohibited in this profile.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.contained"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "MedicationStatement.extension",
      "min": 0,
      "definition": "No extension is defined for the current DigiDot MedicationStatement scope. This\nalso prevents SFM-specific extension content from being stored through this\nprofile.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "0",
      "id": "MedicationStatement.extension",
      "comment": "Extensions are prohibited in this profile.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "MedicationStatement.modifierExtension",
      "requirements": "The current DigiDot MedicationStatement must be interpretable without modifier extensions.",
      "min": 0,
      "definition": "Modifier extensions can change the meaning of a MedicationStatement and require\nevery consumer to understand them. No modifier extension is defined for the\ncurrent DigiDot scope.",
      "isModifier": true,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "0",
      "id": "MedicationStatement.modifierExtension",
      "comment": "Modifier extensions are prohibited in this profile.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.identifier",
      "min": 0,
      "definition": "The current DigiDot profile does not carry a treatment identifier, prescription\nidentifier or other MedicationStatement business identifier.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "Event.identifier",
        "identity": "workflow"
      }, {
        "map": "FiveWs.identifier",
        "identity": "w5"
      }, {
        "map": ".id",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "0",
      "id": "MedicationStatement.identifier",
      "comment": "MedicationStatement business identifiers are prohibited in this profile.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationStatement.identifier"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.basedOn",
      "requirements": "The reported medication use is intentionally independent of an authorization or medication order.",
      "min": 0,
      "definition": "The reported medication use is not represented as fulfillment of a plan,\nproposal or medication order.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "Event.basedOn",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=FLFS].target[classCode=SBADM or PROC or PCPR or OBS, moodCode=RQO orPLAN or PRP]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/MedicationRequest", "http://hl7.org/fhir/StructureDefinition/CarePlan", "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ]
      } ],
      "max": "0",
      "id": "MedicationStatement.basedOn",
      "comment": "basedOn is prohibited in this profile.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationStatement.basedOn"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.partOf",
      "requirements": "The narrow reporting model does not represent this statement as part of another medication event.",
      "min": 0,
      "definition": "The reported medication use is not represented as a component of another\nmedication event or statement.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "Event.partOf",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=COMP]/target[classCode=SPLY or SBADM or PROC or OBS,moodCode=EVN]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/MedicationAdministration", "http://hl7.org/fhir/StructureDefinition/MedicationDispense", "http://hl7.org/fhir/StructureDefinition/MedicationStatement", "http://hl7.org/fhir/StructureDefinition/Procedure", "http://hl7.org/fhir/StructureDefinition/Observation" ]
      } ],
      "max": "0",
      "id": "MedicationStatement.partOf",
      "comment": "partOf is prohibited in this profile.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationStatement.partOf"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.status",
      "min": 1,
      "definition": "Use status to indicate whether the patient is currently using the medication,\nused it previously, has stopped using it, or whether the reported status is\nunknown or was entered in error. Use a standard FHIR R4 MedicationStatement\nstatus.",
      "isModifier": true,
      "short": "Lifecycle status of the reported medication use",
      "mapping": [ {
        "map": "Event.status",
        "identity": "workflow"
      }, {
        "map": "FiveWs.status",
        "identity": "w5"
      }, {
        "map": ".statusCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/medication-statement-status|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationStatementStatus"
        } ],
        "description": "A coded concept indicating the current status of a MedicationStatement."
      },
      "max": "1",
      "id": "MedicationStatement.status",
      "comment": "Status represents the medication use as known when the statement was asserted.\nIt does not represent the lifecycle of a prescription, dispense or\nadministration event.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "MedicationStatement.status"
      },
      "isModifierReason": "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",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.statusReason",
      "min": 0,
      "definition": "The current DigiDot profile does not record a separate reason for the MedicationStatement status.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "Event.statusReason",
        "identity": "workflow"
      }, {
        "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN].reasonCOde",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/reason-medication-status-codes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationStatementStatusReason"
        } ],
        "description": "A coded concept indicating the reason for the status of the statement."
      },
      "max": "0",
      "id": "MedicationStatement.statusReason",
      "comment": "statusReason is prohibited in this profile.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationStatement.statusReason"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.category",
      "min": 0,
      "definition": "The current DigiDot profile does not classify reported medication use by category.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "FiveWs.class",
        "identity": "w5"
      }, {
        "map": ".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=\"type of medication usage\"].value",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/medication-statement-category",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationStatementCategory"
        } ],
        "description": "A coded concept identifying where the medication included in the MedicationStatement is expected to be consumed or administered."
      },
      "max": "0",
      "id": "MedicationStatement.category",
      "comment": "category is prohibited in this profile.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationStatement.category"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "dd-ms-1",
        "human": "Provide either a structured medication coding or a textual medication description.",
        "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationStatement-no",
        "severity": "error",
        "expression": "coding.exists() or text.exists()"
      }, {
        "key": "dd-ms-2",
        "human": "When structured medication coding is provided, it SHALL include a SNOMED CT code.",
        "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationStatement-no",
        "severity": "error",
        "expression": "coding.exists() implies coding.where(system = 'http://snomed.info/sct' and code.exists()).exists()"
      } ],
      "path": "MedicationStatement.medication[x]",
      "requirements": "DigiDOT uses a structured and versioned SNOMED CT representation when structured medication information is available, while permitting reported text when it is not.",
      "min": 1,
      "definition": "When structured medication information is available, record the medication\ndirectly with one versioned SNOMED CT concept from DigidotReportedMedicationNo.\nUse a Medicinal Product, Medicinal Product Form or Clinical Drug concept\naccording to the level of detail supported by the reported information. An\noptional second coding may preserve the specific reported product with its FEST\nidentifier. When structured medication information is not available, record the\nmedication name or description in CodeableConcept.text.",
      "isModifier": false,
      "short": "Medication reported as used",
      "mapping": [ {
        "map": "Event.code",
        "identity": "workflow"
      }, {
        "map": "FiveWs.what[x]",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=CSM].role[classCode=ADMM or MANU]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationCode"
        } ],
        "description": "A coded concept identifying the substance or product being taken."
      },
      "max": "1",
      "id": "MedicationStatement.medication[x]",
      "comment": "When a SNOMED CT coding is present, Coding.version SHALL identify the SNOMED CT\nedition and release using a version URI of the form\nhttp://snomed.info/sct/{edition}/version/{yyyymmdd}. If any structured coding is\nprovided, one SNOMED CT coding is required. A reference to a separate Medication\nresource SHALL NOT be used in this profile. Do not infer a more specific\nmedication concept than the information source supports.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "MedicationStatement.medication[x]"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.medication[x].id",
      "min": 0,
      "definition": "The medicinal product CodeableConcept does not use an element id in the current\nDigiDot profile.",
      "isModifier": false,
      "short": "Not used on the medicinal product concept",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "0",
      "id": "MedicationStatement.medication[x].id",
      "comment": "An element id on the medicinal product concept is prohibited.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "MedicationStatement.medication[x].extension",
      "min": 0,
      "definition": "The medication identity is represented by standard Coding elements when\nstructured information is available, or by CodeableConcept.text otherwise.\nExtensions on the CodeableConcept are not used.",
      "isModifier": false,
      "short": "No extensions on the medicinal product concept",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "0",
      "id": "MedicationStatement.medication[x].extension",
      "comment": "Extensions on the medicinal product concept are prohibited.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.medication[x].coding",
      "requirements": "Structured medication information requires one versioned SNOMED CT concept for\ninteroperability and decision support. An additional FEST coding can preserve a\nmore specific reported product identity. When structured medication information\nis not available, coding is omitted and CodeableConcept.text is required.",
      "min": 0,
      "definition": "When structured medication information is provided, record one SNOMED CT coding\nand optionally one additional coding for the specific Norwegian medicinal\nproduct or brand identified by the information source. The additional coding\nSHALL use the FEST code system. Every coding must include its code system and\ncode. Do not provide a FEST coding without the SNOMED CT coding.",
      "isModifier": false,
      "short": "Structured SNOMED CT coding and optional FEST coding",
      "mapping": [ {
        "map": "C*E.1-8, C*E.10-22",
        "identity": "v2"
      }, {
        "map": "union(., ./translation)",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding",
        "identity": "orim"
      } ],
      "slicing": {
        "rules": "closed",
        "discriminator": [ {
          "path": "system",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Coding"
      } ],
      "mustSupport": true,
      "max": "2",
      "id": "MedicationStatement.medication[x].coding",
      "comment": "If coding is used, the required SNOMED CT coding uses system\nhttp://snomed.info/sct. The optional product coding uses system\nhttp://ehelse.no/fhir/CodeSystem/FEST and may only accompany the SNOMED CT\ncoding. No other code systems are permitted. Multiple codings do not permit two\ndifferent medications to be recorded in one MedicationStatement.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.medication[x].coding.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationStatement.medication[x].coding.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "MedicationStatement.medication[x].coding.extension",
      "min": 0,
      "definition": "The code system, version, code and display are represented by the standard\nCoding elements. Extensions on a medication coding are not used.",
      "isModifier": false,
      "short": "No extensions on the medicinal product coding",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "0",
      "id": "MedicationStatement.medication[x].coding.extension",
      "comment": "Extensions on the medicinal product coding are prohibited.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.medication[x].coding.system",
      "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
      "min": 1,
      "definition": "Identify the code system used by each medication coding. Only the SNOMED CT and FEST systems represented by the defined slices are permitted.",
      "isModifier": false,
      "short": "Code system for the medication coding",
      "mapping": [ {
        "map": "C*E.3",
        "identity": "v2"
      }, {
        "map": "./codeSystem",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "MedicationStatement.medication[x].coding.system",
      "comment": "The closed slicing rules prohibit medication codings from other code systems.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.system"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.medication[x].coding.version",
      "min": 0,
      "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
      "isModifier": false,
      "short": "Version of the system - if relevant",
      "mapping": [ {
        "map": "C*E.7",
        "identity": "v2"
      }, {
        "map": "./codeSystemVersion",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "MedicationStatement.medication[x].coding.version",
      "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.version"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.medication[x].coding.code",
      "requirements": "Need to refer to a particular code in the system.",
      "min": 1,
      "definition": "Record the concept identifier from the code system stated in Coding.system.",
      "isModifier": false,
      "short": "Medication code in the stated code system",
      "mapping": [ {
        "map": "C*E.1",
        "identity": "v2"
      }, {
        "map": "./code",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "max": "1",
      "id": "MedicationStatement.medication[x].coding.code",
      "comment": "The code and system together identify the structured medication concept or product.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.code"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.medication[x].coding.display",
      "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
      "min": 0,
      "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
      "isModifier": false,
      "short": "Representation defined by the system",
      "mapping": [ {
        "map": "C*E.2 - but note this is not well followed",
        "identity": "v2"
      }, {
        "map": "CV.displayName",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "MedicationStatement.medication[x].coding.display",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.display"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.medication[x].coding.userSelected",
      "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
      "min": 0,
      "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
      "isModifier": false,
      "short": "If this coding was chosen directly by the user",
      "mapping": [ {
        "map": "Sometimes implied by being first",
        "identity": "v2"
      }, {
        "map": "CD.codingRationale",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "max": "1",
      "id": "MedicationStatement.medication[x].coding.userSelected",
      "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.userSelected"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.medication[x].coding",
      "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
      "min": 0,
      "definition": "When structured medication information is available, record exactly one\nprecoordinated SNOMED CT Medicinal Product, Medicinal Product Form or Clinical\nDrug concept from DigidotReportedMedicationNo. The coding conforms to\nDigiDotCodingSctPreNo, which requires the SNOMED CT system, numeric concept\nidentifier and versioned edition URI.",
      "isModifier": false,
      "short": "Versioned SNOMED CT medication concept",
      "mapping": [ {
        "map": "C*E.1-8, C*E.10-22",
        "identity": "v2"
      }, {
        "map": "union(., ./translation)",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "Coding",
        "profile": [ "https://novari.no/fhir/digidot/StructureDefinition/digidot-Coding-SCTpre-no" ]
      } ],
      "mustSupport": true,
      "sliceName": "snomed",
      "binding": {
        "strength": "required",
        "valueSet": "https://novari.no/fhir/digidot/ValueSet/digidot-reported-medication-no"
      },
      "max": "1",
      "id": "MedicationStatement.medication[x].coding:snomed",
      "comment": "Use the most specific SNOMED CT concept supported by the reported information.\nCoding.display may carry the corresponding SNOMED CT term. Omit the coding only\nwhen structured medication information is not available and represent the\nreported medication in CodeableConcept.text.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.medication[x].coding.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationStatement.medication[x].coding:snomed.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "MedicationStatement.medication[x].coding.extension",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationStatement.medication[x].coding:snomed.extension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.medication[x].coding.system",
      "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
      "min": 1,
      "definition": "The SNOMED CT medication coding uses the canonical SNOMED CT code system URI.",
      "isModifier": false,
      "short": "SNOMED CT code system",
      "fixedUri": "http://snomed.info/sct",
      "mapping": [ {
        "map": "C*E.3",
        "identity": "v2"
      }, {
        "map": "./codeSystem",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "MedicationStatement.medication[x].coding:snomed.system",
      "comment": "The value is fixed to http://snomed.info/sct.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.system"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.medication[x].coding.version",
      "min": 0,
      "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
      "isModifier": false,
      "short": "Version of the system - if relevant",
      "mapping": [ {
        "map": "C*E.7",
        "identity": "v2"
      }, {
        "map": "./codeSystemVersion",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "MedicationStatement.medication[x].coding:snomed.version",
      "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.version"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.medication[x].coding.code",
      "requirements": "Need to refer to a particular code in the system.",
      "min": 0,
      "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
      "isModifier": false,
      "short": "Symbol in syntax defined by the system",
      "mapping": [ {
        "map": "C*E.1",
        "identity": "v2"
      }, {
        "map": "./code",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "max": "1",
      "id": "MedicationStatement.medication[x].coding:snomed.code",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.code"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.medication[x].coding.display",
      "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
      "min": 0,
      "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
      "isModifier": false,
      "short": "Representation defined by the system",
      "mapping": [ {
        "map": "C*E.2 - but note this is not well followed",
        "identity": "v2"
      }, {
        "map": "CV.displayName",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "MedicationStatement.medication[x].coding:snomed.display",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.display"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.medication[x].coding.userSelected",
      "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
      "min": 0,
      "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
      "isModifier": false,
      "short": "If this coding was chosen directly by the user",
      "mapping": [ {
        "map": "Sometimes implied by being first",
        "identity": "v2"
      }, {
        "map": "CD.codingRationale",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "max": "1",
      "id": "MedicationStatement.medication[x].coding:snomed.userSelected",
      "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.userSelected"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.medication[x].coding",
      "requirements": "The optional FEST coding preserves the Norwegian product identity selected or\nreported by the information source while the accompanying SNOMED CT coding\nprovides the standardized clinical representation.",
      "min": 0,
      "definition": "Record the FEST identifier when the reported medication was identified as a\nspecific medicinal product or brand in FEST and a corresponding SNOMED CT\ncoding is provided. The FEST and SNOMED CT codings SHALL represent the same\nmedication.",
      "isModifier": false,
      "short": "Optional FEST identifier for the reported medicinal product",
      "mapping": [ {
        "map": "C*E.1-8, C*E.10-22",
        "identity": "v2"
      }, {
        "map": "union(., ./translation)",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "Coding"
      } ],
      "mustSupport": true,
      "sliceName": "fest",
      "max": "1",
      "id": "MedicationStatement.medication[x].coding:fest",
      "comment": "Use system http://ehelse.no/fhir/CodeSystem/FEST and the corresponding FEST\nidentifier. Coding.display may carry the FEST product or brand name. Do not use\nFEST as the only structured coding.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.medication[x].coding.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationStatement.medication[x].coding:fest.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "MedicationStatement.medication[x].coding.extension",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "0",
      "id": "MedicationStatement.medication[x].coding:fest.extension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.medication[x].coding.system",
      "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
      "min": 1,
      "definition": "The optional Norwegian medicinal product coding uses the FEST code system URI.",
      "isModifier": false,
      "short": "FEST code system",
      "fixedUri": "http://ehelse.no/fhir/CodeSystem/FEST",
      "mapping": [ {
        "map": "C*E.3",
        "identity": "v2"
      }, {
        "map": "./codeSystem",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "MedicationStatement.medication[x].coding:fest.system",
      "comment": "The value is fixed to http://ehelse.no/fhir/CodeSystem/FEST.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.system"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.medication[x].coding.version",
      "min": 0,
      "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
      "isModifier": false,
      "short": "Version of the system - if relevant",
      "mapping": [ {
        "map": "C*E.7",
        "identity": "v2"
      }, {
        "map": "./codeSystemVersion",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "MedicationStatement.medication[x].coding:fest.version",
      "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.version"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.medication[x].coding.code",
      "requirements": "Need to refer to a particular code in the system.",
      "min": 1,
      "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
      "isModifier": false,
      "short": "Symbol in syntax defined by the system",
      "mapping": [ {
        "map": "C*E.1",
        "identity": "v2"
      }, {
        "map": "./code",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "max": "1",
      "id": "MedicationStatement.medication[x].coding:fest.code",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.code"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.medication[x].coding.display",
      "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
      "min": 0,
      "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
      "isModifier": false,
      "short": "Representation defined by the system",
      "mapping": [ {
        "map": "C*E.2 - but note this is not well followed",
        "identity": "v2"
      }, {
        "map": "CV.displayName",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "MedicationStatement.medication[x].coding:fest.display",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.display"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.medication[x].coding.userSelected",
      "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
      "min": 0,
      "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
      "isModifier": false,
      "short": "If this coding was chosen directly by the user",
      "mapping": [ {
        "map": "Sometimes implied by being first",
        "identity": "v2"
      }, {
        "map": "CD.codingRationale",
        "identity": "rim"
      }, {
        "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [     fhir:source \"true\";     fhir:target dt:CDCoding.codingRationale\\#O   ]",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "max": "1",
      "id": "MedicationStatement.medication[x].coding:fest.userSelected",
      "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.userSelected"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.medication[x].text",
      "requirements": "Reported text provides a fallback when structured medication information is unavailable and can preserve clinically relevant product wording alongside coding.",
      "min": 0,
      "definition": "When structured medication information is not available, record the medication\nname or description as stated by the information source. Text may also preserve\nuseful reported wording alongside structured coding, for example \"Paralgin\nforte\". Do not use text as the sole representation when a structured SNOMED CT\nmedication concept is available to the recording system.",
      "isModifier": false,
      "short": "Medication name as reported",
      "mapping": [ {
        "map": "C*E.9. But note many systems use C*E.2 for this",
        "identity": "v2"
      }, {
        "map": "./originalText[mediaType/code=\"text/plain\"]/data",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "MedicationStatement.medication[x].text",
      "comment": "Text is required when coding is absent. When text and codings are both present, they must describe the same reported medication.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CodeableConcept.text"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.subject",
      "requirements": "The reported medication use must be associated with one identifiable patient.",
      "min": 1,
      "definition": "Reference the patient whose medication use is reported through no-basis-Patient.",
      "isModifier": false,
      "short": "Patient whose medication use is reported",
      "mapping": [ {
        "map": "Event.subject",
        "identity": "workflow"
      }, {
        "map": "FiveWs.subject[x]",
        "identity": "w5"
      }, {
        "map": "PID-3-Patient ID List",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=SBJ].role[classCode=PAT]",
        "identity": "rim"
      }, {
        "map": "FiveWs.subject",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.no/fhir/StructureDefinition/no-basis-Patient" ]
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "MedicationStatement.subject",
      "comment": "Use a direct reference to a no-basis-Patient resource.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "MedicationStatement.subject"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.context",
      "requirements": "The encounter provides the dental-care context when the medication use was reported during an encounter.",
      "min": 0,
      "definition": "Reference the DigiDot Encounter during which the medication use was reported\nwhen that clinical context is known.",
      "isModifier": false,
      "short": "DigiDot encounter in which the medication use was reported",
      "mapping": [ {
        "map": "Event.context",
        "identity": "workflow"
      }, {
        "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code=\"type of encounter or episode\"]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no" ]
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "MedicationStatement.context",
      "comment": "context is optional but must reference a DigiDot Encounter when present.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationStatement.context"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.effective[x]",
      "requirements": "The effective time distinguishes the period of medication use from the date on which the information was reported.",
      "min": 0,
      "definition": "Record the date, date and time, or period during which the patient is reported\nas using or having used the medication when this information is known.",
      "isModifier": false,
      "short": "When the medication is reported as being used",
      "mapping": [ {
        "map": "Event.occurrence[x]",
        "identity": "workflow"
      }, {
        "map": "FiveWs.done[x]",
        "identity": "w5"
      }, {
        "map": ".effectiveTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      }, {
        "code": "Period"
      } ],
      "max": "1",
      "id": "MedicationStatement.effective[x]",
      "comment": "Use dateAsserted for when the statement was reported; use effective[x] for when the medication use applies.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationStatement.effective[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dateAsserted",
      "requirements": "DigiDOT requires the assertion date to distinguish when the medication-use information was reported from when the medication was taken.",
      "min": 1,
      "definition": "Record when the information source asserted the medication-use information.",
      "isModifier": false,
      "short": "Date when the medication use was reported",
      "mapping": [ {
        "map": "FiveWs.recorded",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=AUT].time",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "MedicationStatement.dateAsserted",
      "comment": "dateAsserted is the date the information was reported, not the medication administration time.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationStatement.dateAsserted"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.informationSource",
      "requirements": "The information source supports assessment of the provenance of the reported medication use when the source is known.",
      "min": 0,
      "definition": "The patient, a related person or a healthcare practitioner who reported the\npatient's medication use. Reference no-basis-Patient, no-basis-Practitioner or\nno-basis-RelatedPerson according to the type of information source. Omit\ninformationSource when the source is unknown. This element identifies the\nreporting person, not SFM, PLL or a technical integration system.",
      "isModifier": false,
      "short": "Patient, related person or practitioner who reported the medication use",
      "mapping": [ {
        "map": "FiveWs.source",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=INF].role[classCode=PAT, or codes for Practioner or Related Person (if PAT is the informer, then syntax for self-reported =true)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.no/fhir/StructureDefinition/no-basis-Patient", "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner", "http://hl7.no/fhir/StructureDefinition/no-basis-RelatedPerson" ]
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "MedicationStatement.informationSource",
      "comment": "Use standard FHIR R4 Reference. Prefer a reference to a reusable resource when\navailable. Identifier-only references may be used when supported by the\nreceiving system; the exchange agreement must specify accepted identifiers and\nhow they are handled. The referenced Patient, Practitioner or RelatedPerson\nresource must conform to the corresponding no-basis profile. No DigiDOT\nReference helper is required.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationStatement.informationSource"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.derivedFrom",
      "min": 0,
      "definition": "This profile records information reported by the information source. Do not use\nit for a statement derived from SFM, PLL, a medication order, dispense record,\nclaim or other source resource.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=SPRT]/target[classCode=ACT,moodCode=EVN]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "max": "0",
      "id": "MedicationStatement.derivedFrom",
      "comment": "derivedFrom is prohibited so this profile is not used for medication information derived from SFM, PLL or another source resource.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationStatement.derivedFrom"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.reasonCode",
      "min": 0,
      "definition": "The current DigiDot profile does not record an inline coded reason for the\nreported medication use.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "Event.reasonCode",
        "identity": "workflow"
      }, {
        "map": "FiveWs.why[x]",
        "identity": "w5"
      }, {
        "map": ".reasonCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/condition-code",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationReason"
        } ],
        "description": "A coded concept identifying why the medication is being taken."
      },
      "max": "0",
      "id": "MedicationStatement.reasonCode",
      "comment": "reasonCode is prohibited in this profile.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationStatement.reasonCode"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.reasonReference",
      "min": 0,
      "definition": "The current DigiDot profile does not link the reported medication use to a\nCondition, Observation or other reason resource.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "Event.reasonReference",
        "identity": "workflow"
      }, {
        "map": "FiveWs.why[x]",
        "identity": "w5"
      }, {
        "map": ".outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code=\"reason for use\"].value",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Condition", "http://hl7.org/fhir/StructureDefinition/Observation", "http://hl7.org/fhir/StructureDefinition/DiagnosticReport" ]
      } ],
      "max": "0",
      "id": "MedicationStatement.reasonReference",
      "comment": "reasonReference is prohibited in this profile.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationStatement.reasonReference"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.note",
      "requirements": "A note permits limited supplementary context without replacing the retained medication representation or dosage elements.",
      "min": 0,
      "definition": "Record supplementary information about the reported medication use that cannot\nbe represented in another retained element of this profile.",
      "isModifier": false,
      "short": "Additional note about the reported medication use",
      "mapping": [ {
        "map": "Event.note",
        "identity": "workflow"
      }, {
        "map": ".inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code=\"annotation\"].value",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Annotation"
      } ],
      "max": "*",
      "id": "MedicationStatement.note",
      "comment": "Do not use note as an alternative representation of the medicinal product or dosage.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationStatement.note"
      },
      "isSummary": false
    }, {
      "path": "MedicationStatement.note.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationStatement.note.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "MedicationStatement.note.extension",
      "min": 0,
      "definition": "Medication statement notes use the standard Annotation elements retained by\nthis profile. Extensions on Annotation are not used in the current DigiDot\nscope.",
      "isModifier": false,
      "short": "No extensions on medication statement notes",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "0",
      "id": "MedicationStatement.note.extension",
      "comment": "Extensions on MedicationStatement.note are prohibited in this profile.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.note.author[x]",
      "requirements": "The author identifies the practitioner responsible for supplementary note content when an author is provided.",
      "min": 0,
      "definition": "Reference the healthcare practitioner responsible for authoring the annotation. The referenced resource must conform to no-basis-Practitioner.",
      "isModifier": false,
      "short": "Practitioner who authored the note",
      "mapping": [ {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Act.participant[typeCode=AUT].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner" ]
      } ],
      "max": "1",
      "id": "MedicationStatement.note.author[x]",
      "comment": "Only the Reference variant is permitted, and its target is restricted to\nno-basis-Practitioner. Patient, RelatedPerson, Organization and free-text\nauthors are not permitted in this profile.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Annotation.author[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.note.time",
      "min": 0,
      "definition": "Indicates when this particular annotation was made.",
      "isModifier": false,
      "short": "When the annotation was made",
      "mapping": [ {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Act.effectiveTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "max": "1",
      "id": "MedicationStatement.note.time",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Annotation.time"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.note.text",
      "min": 1,
      "definition": "The text of the annotation in markdown format.",
      "isModifier": false,
      "short": "The annotation  - text content (as markdown)",
      "mapping": [ {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "Act.text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "markdown"
      } ],
      "max": "1",
      "id": "MedicationStatement.note.text",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Annotation.text"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dosage",
      "requirements": "Dosage preserves the medication-use regimen as reported without turning the statement into a prescription.",
      "min": 0,
      "definition": "Record textual or structured dosage information only as reported by the\ninformation source. Dosage.text may carry the reported regimen, timing may\nrepresent how often it is taken, and doseAndRate.dose[x] may represent the\namount taken at one time. Do not infer information that the source did not\nprovide.",
      "isModifier": false,
      "short": "Dosage reported by the information source",
      "mapping": [ {
        "map": "refer dosageInstruction mapping",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Dosage"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "MedicationStatement.dosage",
      "comment": "Record only information supplied by the information source. This profile is not\nused for dosage copied or derived from a MedicationRequest, SFM or PLL.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationStatement.dosage"
      },
      "isSummary": false
    }, {
      "path": "MedicationStatement.dosage.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationStatement.dosage.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "MedicationStatement.dosage.extension",
      "min": 0,
      "definition": "Extensions on Dosage are not used in this profile.",
      "isModifier": false,
      "short": "No extensions on the reported dosage",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "0",
      "id": "MedicationStatement.dosage.extension",
      "comment": "Extensions on Dosage are prohibited in this profile.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "MedicationStatement.dosage.modifierExtension",
      "requirements": "The reported dosage must be interpretable without modifier extensions.",
      "min": 0,
      "definition": "Modifier extensions on Dosage are not used in this profile.",
      "isModifier": true,
      "short": "No modifier extensions on the reported dosage",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "0",
      "id": "MedicationStatement.dosage.modifierExtension",
      "comment": "Modifier extensions on Dosage are prohibited in this profile.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dosage.sequence",
      "requirements": "Only one Dosage element is permitted, so an ordering sequence is not required.",
      "min": 0,
      "definition": "The current DigiDot profile does not record an ordering sequence between dosage instructions.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "TQ1-1",
        "identity": "v2"
      }, {
        "map": ".text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "integer"
      } ],
      "max": "0",
      "id": "MedicationStatement.dosage.sequence",
      "comment": "sequence is prohibited in this profile.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.sequence"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dosage.text",
      "requirements": "Human-readable text preserves reported dosage information that is not fully represented by the retained structured elements.",
      "min": 0,
      "definition": "Record the dosage wording provided by the information source when a human-readable regimen is available.",
      "isModifier": false,
      "short": "Reported human-readable dosage information",
      "mapping": [ {
        "map": "RXO-6; RXE-21",
        "identity": "v2"
      }, {
        "map": ".text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "MedicationStatement.dosage.text",
      "comment": "When text and structured dosage elements are both present, they must describe the same reported regimen.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.text"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dosage.additionalInstruction",
      "requirements": "The narrow DigiDot model retains the reported regimen in dosage.text and the selected structured dosage elements.",
      "min": 0,
      "definition": "The current DigiDot profile does not record additional coded or textual dosage instructions.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "RXO-7",
        "identity": "v2"
      }, {
        "map": ".text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/additional-instruction-codes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "AdditionalInstruction"
        } ],
        "description": "A coded concept identifying additional instructions such as \"take with water\" or \"avoid operating heavy machinery\"."
      },
      "max": "0",
      "id": "MedicationStatement.dosage.additionalInstruction",
      "comment": "additionalInstruction is prohibited in this profile.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Dosage.additionalInstruction"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dosage.patientInstruction",
      "min": 0,
      "definition": "The current DigiDot profile does not record separate patient-oriented dosage instructions.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "RXO-7",
        "identity": "v2"
      }, {
        "map": ".text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "0",
      "id": "MedicationStatement.dosage.patientInstruction",
      "comment": "patientInstruction is prohibited in this profile.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.patientInstruction"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dosage.timing",
      "requirements": "Structured timing supports consistent representation of when or how often the medication is reported as taken.",
      "min": 0,
      "definition": "Record when or how often the medication is reported as being taken when structured timing information is available.",
      "isModifier": false,
      "short": "Reported timing of medication use",
      "mapping": [ {
        "map": ".effectiveTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Timing"
      } ],
      "max": "1",
      "id": "MedicationStatement.dosage.timing",
      "comment": "Use timing for the reported schedule. Do not use it to infer or reconstruct an administration rate.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.timing"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dosage.asNeeded[x]",
      "min": 0,
      "definition": "Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).",
      "isModifier": false,
      "short": "Take \"as needed\" (for x)",
      "mapping": [ {
        "map": "TQ1-9",
        "identity": "v2"
      }, {
        "map": ".outboundRelationship[typeCode=PRCN].target[classCode=OBS, moodCode=EVN, code=\"as needed\"].value=boolean or codable concept",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "$this",
          "type": "type"
        } ]
      },
      "type": [ {
        "code": "boolean"
      }, {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/medication-as-needed-reason",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationAsNeededReason"
        } ],
        "description": "A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose.  For example \"pain\", \"30 minutes prior to sexual intercourse\", \"on flare-up\" etc."
      },
      "max": "1",
      "id": "MedicationStatement.dosage.asNeeded[x]",
      "comment": "Only the Boolean variant is permitted in this profile.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.asNeeded[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dosage.asNeeded[x]",
      "min": 0,
      "definition": "The current DigiDot profile does not use a CodeableConcept to specify the\ncondition under which the medication is taken as needed. The inherited Boolean\nvariant remains available.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "TQ1-9",
        "identity": "v2"
      }, {
        "map": ".outboundRelationship[typeCode=PRCN].target[classCode=OBS, moodCode=EVN, code=\"as needed\"].value=boolean or codable concept",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "sliceName": "asNeededCodeableConcept",
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/medication-as-needed-reason",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationAsNeededReason"
        } ],
        "description": "A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose.  For example \"pain\", \"30 minutes prior to sexual intercourse\", \"on flare-up\" etc."
      },
      "max": "0",
      "id": "MedicationStatement.dosage.asNeeded[x]:asNeededCodeableConcept",
      "comment": "The coded variant of asNeeded[x] is prohibited.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.asNeeded[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dosage.asNeeded[x]",
      "min": 0,
      "definition": "Use the Boolean variant only when the information source reports whether the medication is taken as needed.",
      "isModifier": false,
      "short": "Whether the medication is reported as taken as needed",
      "mapping": [ {
        "map": "TQ1-9",
        "identity": "v2"
      }, {
        "map": ".outboundRelationship[typeCode=PRCN].target[classCode=OBS, moodCode=EVN, code=\"as needed\"].value=boolean or codable concept",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "sliceName": "asNeededBoolean",
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/medication-as-needed-reason",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationAsNeededReason"
        } ],
        "description": "A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose.  For example \"pain\", \"30 minutes prior to sexual intercourse\", \"on flare-up\" etc."
      },
      "max": "1",
      "id": "MedicationStatement.dosage.asNeeded[x]:asNeededBoolean",
      "comment": "true means taken as needed; false means not taken as needed; omit the element when this information is unknown.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.asNeeded[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dosage.site",
      "requirements": "A separate anatomical administration site is outside the current DigiDot MedicationStatement scope.",
      "min": 0,
      "definition": "The reported dosage does not include a separate anatomical site.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "RXR-2",
        "identity": "v2"
      }, {
        "map": ".approachSiteCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/approach-site-codes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationAdministrationSite"
        } ],
        "description": "A coded concept describing the site location the medicine enters into or onto the body."
      },
      "max": "0",
      "id": "MedicationStatement.dosage.site",
      "comment": "site is prohibited in this profile.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.site"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dosage.route",
      "requirements": "A separate route of administration is outside the current DigiDot MedicationStatement scope.",
      "min": 0,
      "definition": "The reported dosage does not include a separate route of administration.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "RXR-1",
        "identity": "v2"
      }, {
        "map": ".routeCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/route-codes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "RouteOfAdministration"
        } ],
        "description": "A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject."
      },
      "max": "0",
      "id": "MedicationStatement.dosage.route",
      "comment": "route is prohibited in this profile.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.route"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dosage.method",
      "requirements": "A separate administration method is outside the current DigiDot MedicationStatement scope.",
      "min": 0,
      "definition": "The reported dosage does not include a separate administration method.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "RXR-4",
        "identity": "v2"
      }, {
        "map": ".doseQuantity",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/administration-method-codes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationAdministrationMethod"
        } ],
        "description": "A coded concept describing the technique by which the medicine is administered."
      },
      "max": "0",
      "id": "MedicationStatement.dosage.method",
      "comment": "method is prohibited in this profile.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.method"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dosage.doseAndRate",
      "requirements": "A structured dose allows the reported amount taken at one time to be represented separately from timing.",
      "min": 0,
      "definition": "Use dose[x] to record the amount reported for one administration, for example\ntwo tablets. A quantity or reported dose range may be used. A structured\nadministration rate is outside the scope of this profile.",
      "isModifier": false,
      "short": "Reported amount of medication per administration",
      "mapping": [ {
        "map": "TQ1-2",
        "identity": "v2"
      } ],
      "type": [ {
        "code": "Element"
      } ],
      "max": "*",
      "id": "MedicationStatement.dosage.doseAndRate",
      "comment": "Only the dose is used; dose type and administration rate are prohibited.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Dosage.doseAndRate"
      },
      "isSummary": true
    }, {
      "path": "MedicationStatement.dosage.doseAndRate.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationStatement.dosage.doseAndRate.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "MedicationStatement.dosage.doseAndRate.extension",
      "min": 0,
      "definition": "Extensions on doseAndRate are not used in this profile.",
      "isModifier": false,
      "short": "No extensions on dose and rate",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "0",
      "id": "MedicationStatement.dosage.doseAndRate.extension",
      "comment": "Extensions on doseAndRate are prohibited in this profile.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dosage.doseAndRate.type",
      "requirements": "The narrow DigiDot model records the reported dose without a separate dose classification.",
      "min": 0,
      "definition": "The current DigiDot profile does not classify the reported dose with a separate dose type.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "RXO-21; RXE-23",
        "identity": "v2"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/dose-rate-type",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "DoseAndRateType"
        } ],
        "description": "The kind of dose or rate specified."
      },
      "max": "0",
      "id": "MedicationStatement.dosage.doseAndRate.type",
      "comment": "doseAndRate.type is prohibited in this profile.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.doseAndRate.type"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dosage.doseAndRate.dose[x]",
      "requirements": "The dose represents the amount of the medication identified in medication[x] and reported as taken at one time.",
      "min": 0,
      "definition": "Record the exact quantity or dose range reported as being taken at one time. Use doseQuantity when one amount is reported and doseRange only when the information source reports a range.",
      "isModifier": false,
      "short": "Reported amount per administration",
      "mapping": [ {
        "map": "RXO-2, RXE-3",
        "identity": "v2"
      }, {
        "map": ".doseQuantity",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "$this",
          "type": "type"
        } ]
      },
      "type": [ {
        "code": "Range"
      }, {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ]
      } ],
      "max": "1",
      "id": "MedicationStatement.dosage.doseAndRate.dose[x]",
      "comment": "Record the amount of the medication identified in medication[x]; do not describe ingredients or a separate Medication resource here.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.doseAndRate.dose[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dosage.doseAndRate.dose[x]",
      "requirements": "An exact quantity supports structured representation when the information source reports one amount per administration.",
      "min": 0,
      "definition": "Record one exact amount reported as being taken at each administration, for example one tablet. The quantity represents the amount of the medication identified in medication[x], not the medicinal-product strength.",
      "isModifier": false,
      "short": "Reported exact amount per administration",
      "mapping": [ {
        "map": "RXO-2, RXE-3",
        "identity": "v2"
      }, {
        "map": ".doseQuantity",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ]
      } ],
      "sliceName": "doseQuantity",
      "max": "1",
      "id": "MedicationStatement.dosage.doseAndRate.dose[x]:doseQuantity",
      "comment": "Use a unit appropriate to the reported amount. Do not repeat a strength such as 10 mg here when medication[x] already identifies a 10 mg tablet and the reported dose is one tablet.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.doseAndRate.dose[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dosage.doseAndRate.dose[x]",
      "requirements": "A range preserves uncertainty or permitted variation explicitly reported by the information source.",
      "min": 0,
      "definition": "Record the lower and upper amount reported as being taken at each administration when the information source provides a dose range rather than one exact amount.",
      "isModifier": false,
      "short": "Reported amount range per administration",
      "mapping": [ {
        "map": "RXO-2, RXE-3",
        "identity": "v2"
      }, {
        "map": ".doseQuantity",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Range"
      } ],
      "sliceName": "doseRange",
      "max": "1",
      "id": "MedicationStatement.dosage.doseAndRate.dose[x]:doseRange",
      "comment": "Use doseRange only for a reported range. Use compatible units for the lower and upper limits, and do not infer a range from incomplete information.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.doseAndRate.dose[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dosage.doseAndRate.rate[x]",
      "requirements": "Administration rate is outside the current DigiDot MedicationStatement scope.",
      "min": 0,
      "definition": "The current DigiDot profile does not record a structured administration rate.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "RXE22, RXE23, RXE-24",
        "identity": "v2"
      }, {
        "map": ".rateQuantity",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Ratio"
      }, {
        "code": "Range"
      }, {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ]
      } ],
      "max": "0",
      "id": "MedicationStatement.dosage.doseAndRate.rate[x]",
      "comment": "All rate variants are prohibited in this profile.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.doseAndRate.rate[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dosage.maxDosePerPeriod",
      "requirements": "Maximum dose limits are outside the current DigiDot MedicationStatement scope.",
      "min": 0,
      "definition": "The current DigiDot profile does not record a maximum dose per time period.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "RXO-23, RXE-19",
        "identity": "v2"
      }, {
        "map": ".maxDoseQuantity",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Ratio"
      } ],
      "max": "0",
      "id": "MedicationStatement.dosage.maxDosePerPeriod",
      "comment": "maxDosePerPeriod is prohibited in this profile.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.maxDosePerPeriod"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dosage.maxDosePerAdministration",
      "requirements": "Maximum dose limits are outside the current DigiDot MedicationStatement scope.",
      "min": 0,
      "definition": "The current DigiDot profile does not record a maximum dose per administration.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "not supported",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ]
      } ],
      "max": "0",
      "id": "MedicationStatement.dosage.maxDosePerAdministration",
      "comment": "maxDosePerAdministration is prohibited in this profile.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.maxDosePerAdministration"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "MedicationStatement.dosage.maxDosePerLifetime",
      "requirements": "Maximum dose limits are outside the current DigiDot MedicationStatement scope.",
      "min": 0,
      "definition": "The current DigiDot profile does not record a maximum cumulative lifetime dose.",
      "isModifier": false,
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "mapping": [ {
        "map": "not supported",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ]
      } ],
      "max": "0",
      "id": "MedicationStatement.dosage.maxDosePerLifetime",
      "comment": "maxDosePerLifetime is prohibited in this profile.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.maxDosePerLifetime"
      },
      "isSummary": true
    } ]
  },
  "status": "draft",
  "id": "9f534e20-e351-4492-916a-0c180700c7d3",
  "kind": "resource",
  "url": "https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationStatement-no",
  "version": "0.6.7",
  "differential": {
    "element": [ {
      "id": "MedicationStatement",
      "path": "MedicationStatement",
      "short": "Reported medication use",
      "comment": "Interpret the resource as a report of medication use, not as evidence of a\nprescription, dispense or administration. Use status together with the reported\nmedication, information source, asserted date and any dosage information."
    }, {
      "id": "MedicationStatement.implicitRules",
      "max": "0",
      "path": "MedicationStatement.implicitRules",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "implicitRules is prohibited in this profile.",
      "definition": "A DigiDot MedicationStatement must be interpretable from the published FHIR R4\nprofile, terminology versions and agreed exchange documentation. Do not use\nimplicitRules to introduce undocumented processing rules."
    }, {
      "id": "MedicationStatement.contained",
      "max": "0",
      "path": "MedicationStatement.contained",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "Contained resources are prohibited in this profile.",
      "definition": "Resources relevant to the DigiDot information model must be stored as\nindependently identifiable FHIR resources and linked by reference. Contained\nresources are not used in this profile."
    }, {
      "id": "MedicationStatement.extension",
      "max": "0",
      "path": "MedicationStatement.extension",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "Extensions are prohibited in this profile.",
      "definition": "No extension is defined for the current DigiDot MedicationStatement scope. This\nalso prevents SFM-specific extension content from being stored through this\nprofile."
    }, {
      "id": "MedicationStatement.modifierExtension",
      "max": "0",
      "path": "MedicationStatement.modifierExtension",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "Modifier extensions are prohibited in this profile.",
      "definition": "Modifier extensions can change the meaning of a MedicationStatement and require\nevery consumer to understand them. No modifier extension is defined for the\ncurrent DigiDot scope.",
      "requirements": "The current DigiDot MedicationStatement must be interpretable without modifier extensions."
    }, {
      "id": "MedicationStatement.identifier",
      "max": "0",
      "path": "MedicationStatement.identifier",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "MedicationStatement business identifiers are prohibited in this profile.",
      "definition": "The current DigiDot profile does not carry a treatment identifier, prescription\nidentifier or other MedicationStatement business identifier."
    }, {
      "id": "MedicationStatement.basedOn",
      "max": "0",
      "path": "MedicationStatement.basedOn",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "basedOn is prohibited in this profile.",
      "definition": "The reported medication use is not represented as fulfillment of a plan,\nproposal or medication order.",
      "requirements": "The reported medication use is intentionally independent of an authorization or medication order."
    }, {
      "id": "MedicationStatement.partOf",
      "max": "0",
      "path": "MedicationStatement.partOf",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "partOf is prohibited in this profile.",
      "definition": "The reported medication use is not represented as a component of another\nmedication event or statement.",
      "requirements": "The narrow reporting model does not represent this statement as part of another medication event."
    }, {
      "id": "MedicationStatement.status",
      "path": "MedicationStatement.status",
      "short": "Lifecycle status of the reported medication use",
      "comment": "Status represents the medication use as known when the statement was asserted.\nIt does not represent the lifecycle of a prescription, dispense or\nadministration event.",
      "definition": "Use status to indicate whether the patient is currently using the medication,\nused it previously, has stopped using it, or whether the reported status is\nunknown or was entered in error. Use a standard FHIR R4 MedicationStatement\nstatus.",
      "mustSupport": true
    }, {
      "id": "MedicationStatement.statusReason",
      "max": "0",
      "path": "MedicationStatement.statusReason",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "statusReason is prohibited in this profile.",
      "definition": "The current DigiDot profile does not record a separate reason for the MedicationStatement status."
    }, {
      "id": "MedicationStatement.category",
      "max": "0",
      "path": "MedicationStatement.category",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "category is prohibited in this profile.",
      "definition": "The current DigiDot profile does not classify reported medication use by category."
    }, {
      "constraint": [ {
        "key": "dd-ms-1",
        "human": "Provide either a structured medication coding or a textual medication description.",
        "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationStatement-no",
        "severity": "error",
        "expression": "coding.exists() or text.exists()"
      }, {
        "key": "dd-ms-2",
        "human": "When structured medication coding is provided, it SHALL include a SNOMED CT code.",
        "source": "https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationStatement-no",
        "severity": "error",
        "expression": "coding.exists() implies coding.where(system = 'http://snomed.info/sct' and code.exists()).exists()"
      } ],
      "path": "MedicationStatement.medication[x]",
      "requirements": "DigiDOT uses a structured and versioned SNOMED CT representation when structured medication information is available, while permitting reported text when it is not.",
      "definition": "When structured medication information is available, record the medication\ndirectly with one versioned SNOMED CT concept from DigidotReportedMedicationNo.\nUse a Medicinal Product, Medicinal Product Form or Clinical Drug concept\naccording to the level of detail supported by the reported information. An\noptional second coding may preserve the specific reported product with its FEST\nidentifier. When structured medication information is not available, record the\nmedication name or description in CodeableConcept.text.",
      "short": "Medication reported as used",
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": true,
      "id": "MedicationStatement.medication[x]",
      "comment": "When a SNOMED CT coding is present, Coding.version SHALL identify the SNOMED CT\nedition and release using a version URI of the form\nhttp://snomed.info/sct/{edition}/version/{yyyymmdd}. If any structured coding is\nprovided, one SNOMED CT coding is required. A reference to a separate Medication\nresource SHALL NOT be used in this profile. Do not infer a more specific\nmedication concept than the information source supports."
    }, {
      "id": "MedicationStatement.medication[x].id",
      "max": "0",
      "path": "MedicationStatement.medication[x].id",
      "short": "Not used on the medicinal product concept",
      "comment": "An element id on the medicinal product concept is prohibited.",
      "definition": "The medicinal product CodeableConcept does not use an element id in the current\nDigiDot profile."
    }, {
      "id": "MedicationStatement.medication[x].extension",
      "max": "0",
      "path": "MedicationStatement.medication[x].extension",
      "short": "No extensions on the medicinal product concept",
      "comment": "Extensions on the medicinal product concept are prohibited.",
      "definition": "The medication identity is represented by standard Coding elements when\nstructured information is available, or by CodeableConcept.text otherwise.\nExtensions on the CodeableConcept are not used."
    }, {
      "path": "MedicationStatement.medication[x].coding",
      "requirements": "Structured medication information requires one versioned SNOMED CT concept for\ninteroperability and decision support. An additional FEST coding can preserve a\nmore specific reported product identity. When structured medication information\nis not available, coding is omitted and CodeableConcept.text is required.",
      "definition": "When structured medication information is provided, record one SNOMED CT coding\nand optionally one additional coding for the specific Norwegian medicinal\nproduct or brand identified by the information source. The additional coding\nSHALL use the FEST code system. Every coding must include its code system and\ncode. Do not provide a FEST coding without the SNOMED CT coding.",
      "short": "Structured SNOMED CT coding and optional FEST coding",
      "slicing": {
        "rules": "closed",
        "discriminator": [ {
          "path": "system",
          "type": "value"
        } ]
      },
      "mustSupport": true,
      "max": "2",
      "id": "MedicationStatement.medication[x].coding",
      "comment": "If coding is used, the required SNOMED CT coding uses system\nhttp://snomed.info/sct. The optional product coding uses system\nhttp://ehelse.no/fhir/CodeSystem/FEST and may only accompany the SNOMED CT\ncoding. No other code systems are permitted. Multiple codings do not permit two\ndifferent medications to be recorded in one MedicationStatement."
    }, {
      "id": "MedicationStatement.medication[x].coding.extension",
      "max": "0",
      "path": "MedicationStatement.medication[x].coding.extension",
      "short": "No extensions on the medicinal product coding",
      "comment": "Extensions on the medicinal product coding are prohibited.",
      "definition": "The code system, version, code and display are represented by the standard\nCoding elements. Extensions on a medication coding are not used."
    }, {
      "id": "MedicationStatement.medication[x].coding.system",
      "min": 1,
      "path": "MedicationStatement.medication[x].coding.system",
      "short": "Code system for the medication coding",
      "comment": "The closed slicing rules prohibit medication codings from other code systems.",
      "definition": "Identify the code system used by each medication coding. Only the SNOMED CT and FEST systems represented by the defined slices are permitted."
    }, {
      "id": "MedicationStatement.medication[x].coding.code",
      "min": 1,
      "path": "MedicationStatement.medication[x].coding.code",
      "short": "Medication code in the stated code system",
      "comment": "The code and system together identify the structured medication concept or product.",
      "definition": "Record the concept identifier from the code system stated in Coding.system."
    }, {
      "path": "MedicationStatement.medication[x].coding",
      "min": 0,
      "definition": "When structured medication information is available, record exactly one\nprecoordinated SNOMED CT Medicinal Product, Medicinal Product Form or Clinical\nDrug concept from DigidotReportedMedicationNo. The coding conforms to\nDigiDotCodingSctPreNo, which requires the SNOMED CT system, numeric concept\nidentifier and versioned edition URI.",
      "short": "Versioned SNOMED CT medication concept",
      "type": [ {
        "code": "Coding",
        "profile": [ "https://novari.no/fhir/digidot/StructureDefinition/digidot-Coding-SCTpre-no" ]
      } ],
      "mustSupport": true,
      "sliceName": "snomed",
      "binding": {
        "strength": "required",
        "valueSet": "https://novari.no/fhir/digidot/ValueSet/digidot-reported-medication-no"
      },
      "max": "1",
      "id": "MedicationStatement.medication[x].coding:snomed",
      "comment": "Use the most specific SNOMED CT concept supported by the reported information.\nCoding.display may carry the corresponding SNOMED CT term. Omit the coding only\nwhen structured medication information is not available and represent the\nreported medication in CodeableConcept.text."
    }, {
      "id": "MedicationStatement.medication[x].coding:snomed.system",
      "min": 1,
      "path": "MedicationStatement.medication[x].coding.system",
      "short": "SNOMED CT code system",
      "comment": "The value is fixed to http://snomed.info/sct.",
      "fixedUri": "http://snomed.info/sct",
      "definition": "The SNOMED CT medication coding uses the canonical SNOMED CT code system URI."
    }, {
      "path": "MedicationStatement.medication[x].coding",
      "requirements": "The optional FEST coding preserves the Norwegian product identity selected or\nreported by the information source while the accompanying SNOMED CT coding\nprovides the standardized clinical representation.",
      "min": 0,
      "definition": "Record the FEST identifier when the reported medication was identified as a\nspecific medicinal product or brand in FEST and a corresponding SNOMED CT\ncoding is provided. The FEST and SNOMED CT codings SHALL represent the same\nmedication.",
      "short": "Optional FEST identifier for the reported medicinal product",
      "mustSupport": true,
      "sliceName": "fest",
      "max": "1",
      "id": "MedicationStatement.medication[x].coding:fest",
      "comment": "Use system http://ehelse.no/fhir/CodeSystem/FEST and the corresponding FEST\nidentifier. Coding.display may carry the FEST product or brand name. Do not use\nFEST as the only structured coding."
    }, {
      "id": "MedicationStatement.medication[x].coding:fest.system",
      "path": "MedicationStatement.medication[x].coding.system",
      "short": "FEST code system",
      "comment": "The value is fixed to http://ehelse.no/fhir/CodeSystem/FEST.",
      "fixedUri": "http://ehelse.no/fhir/CodeSystem/FEST",
      "definition": "The optional Norwegian medicinal product coding uses the FEST code system URI."
    }, {
      "id": "MedicationStatement.medication[x].text",
      "path": "MedicationStatement.medication[x].text",
      "short": "Medication name as reported",
      "comment": "Text is required when coding is absent. When text and codings are both present, they must describe the same reported medication.",
      "definition": "When structured medication information is not available, record the medication\nname or description as stated by the information source. Text may also preserve\nuseful reported wording alongside structured coding, for example \"Paralgin\nforte\". Do not use text as the sole representation when a structured SNOMED CT\nmedication concept is available to the recording system.",
      "mustSupport": true,
      "requirements": "Reported text provides a fallback when structured medication information is unavailable and can preserve clinically relevant product wording alongside coding."
    }, {
      "id": "MedicationStatement.subject",
      "path": "MedicationStatement.subject",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.no/fhir/StructureDefinition/no-basis-Patient" ]
      } ],
      "short": "Patient whose medication use is reported",
      "comment": "Use a direct reference to a no-basis-Patient resource.",
      "definition": "Reference the patient whose medication use is reported through no-basis-Patient.",
      "mustSupport": true,
      "requirements": "The reported medication use must be associated with one identifiable patient."
    }, {
      "id": "MedicationStatement.context",
      "path": "MedicationStatement.context",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no" ]
      } ],
      "short": "DigiDot encounter in which the medication use was reported",
      "comment": "context is optional but must reference a DigiDot Encounter when present.",
      "definition": "Reference the DigiDot Encounter during which the medication use was reported\nwhen that clinical context is known.",
      "mustSupport": true,
      "requirements": "The encounter provides the dental-care context when the medication use was reported during an encounter."
    }, {
      "id": "MedicationStatement.effective[x]",
      "path": "MedicationStatement.effective[x]",
      "short": "When the medication is reported as being used",
      "comment": "Use dateAsserted for when the statement was reported; use effective[x] for when the medication use applies.",
      "definition": "Record the date, date and time, or period during which the patient is reported\nas using or having used the medication when this information is known.",
      "requirements": "The effective time distinguishes the period of medication use from the date on which the information was reported."
    }, {
      "id": "MedicationStatement.dateAsserted",
      "min": 1,
      "path": "MedicationStatement.dateAsserted",
      "short": "Date when the medication use was reported",
      "comment": "dateAsserted is the date the information was reported, not the medication administration time.",
      "definition": "Record when the information source asserted the medication-use information.",
      "mustSupport": true,
      "requirements": "DigiDOT requires the assertion date to distinguish when the medication-use information was reported from when the medication was taken."
    }, {
      "id": "MedicationStatement.informationSource",
      "path": "MedicationStatement.informationSource",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.no/fhir/StructureDefinition/no-basis-Patient", "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner", "http://hl7.no/fhir/StructureDefinition/no-basis-RelatedPerson" ]
      } ],
      "short": "Patient, related person or practitioner who reported the medication use",
      "comment": "Use standard FHIR R4 Reference. Prefer a reference to a reusable resource when\navailable. Identifier-only references may be used when supported by the\nreceiving system; the exchange agreement must specify accepted identifiers and\nhow they are handled. The referenced Patient, Practitioner or RelatedPerson\nresource must conform to the corresponding no-basis profile. No DigiDOT\nReference helper is required.",
      "definition": "The patient, a related person or a healthcare practitioner who reported the\npatient's medication use. Reference no-basis-Patient, no-basis-Practitioner or\nno-basis-RelatedPerson according to the type of information source. Omit\ninformationSource when the source is unknown. This element identifies the\nreporting person, not SFM, PLL or a technical integration system.",
      "mustSupport": true,
      "requirements": "The information source supports assessment of the provenance of the reported medication use when the source is known."
    }, {
      "id": "MedicationStatement.derivedFrom",
      "max": "0",
      "path": "MedicationStatement.derivedFrom",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "derivedFrom is prohibited so this profile is not used for medication information derived from SFM, PLL or another source resource.",
      "definition": "This profile records information reported by the information source. Do not use\nit for a statement derived from SFM, PLL, a medication order, dispense record,\nclaim or other source resource."
    }, {
      "id": "MedicationStatement.reasonCode",
      "max": "0",
      "path": "MedicationStatement.reasonCode",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "reasonCode is prohibited in this profile.",
      "definition": "The current DigiDot profile does not record an inline coded reason for the\nreported medication use."
    }, {
      "id": "MedicationStatement.reasonReference",
      "max": "0",
      "path": "MedicationStatement.reasonReference",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "reasonReference is prohibited in this profile.",
      "definition": "The current DigiDot profile does not link the reported medication use to a\nCondition, Observation or other reason resource."
    }, {
      "id": "MedicationStatement.note",
      "path": "MedicationStatement.note",
      "short": "Additional note about the reported medication use",
      "comment": "Do not use note as an alternative representation of the medicinal product or dosage.",
      "definition": "Record supplementary information about the reported medication use that cannot\nbe represented in another retained element of this profile.",
      "requirements": "A note permits limited supplementary context without replacing the retained medication representation or dosage elements."
    }, {
      "id": "MedicationStatement.note.extension",
      "max": "0",
      "path": "MedicationStatement.note.extension",
      "short": "No extensions on medication statement notes",
      "comment": "Extensions on MedicationStatement.note are prohibited in this profile.",
      "definition": "Medication statement notes use the standard Annotation elements retained by\nthis profile. Extensions on Annotation are not used in the current DigiDot\nscope."
    }, {
      "id": "MedicationStatement.note.author[x]",
      "path": "MedicationStatement.note.author[x]",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner" ]
      } ],
      "short": "Practitioner who authored the note",
      "comment": "Only the Reference variant is permitted, and its target is restricted to\nno-basis-Practitioner. Patient, RelatedPerson, Organization and free-text\nauthors are not permitted in this profile.",
      "definition": "Reference the healthcare practitioner responsible for authoring the annotation. The referenced resource must conform to no-basis-Practitioner.",
      "requirements": "The author identifies the practitioner responsible for supplementary note content when an author is provided."
    }, {
      "id": "MedicationStatement.dosage",
      "max": "1",
      "path": "MedicationStatement.dosage",
      "short": "Dosage reported by the information source",
      "comment": "Record only information supplied by the information source. This profile is not\nused for dosage copied or derived from a MedicationRequest, SFM or PLL.",
      "definition": "Record textual or structured dosage information only as reported by the\ninformation source. Dosage.text may carry the reported regimen, timing may\nrepresent how often it is taken, and doseAndRate.dose[x] may represent the\namount taken at one time. Do not infer information that the source did not\nprovide.",
      "mustSupport": true,
      "requirements": "Dosage preserves the medication-use regimen as reported without turning the statement into a prescription."
    }, {
      "id": "MedicationStatement.dosage.extension",
      "max": "0",
      "path": "MedicationStatement.dosage.extension",
      "short": "No extensions on the reported dosage",
      "comment": "Extensions on Dosage are prohibited in this profile.",
      "definition": "Extensions on Dosage are not used in this profile."
    }, {
      "id": "MedicationStatement.dosage.modifierExtension",
      "max": "0",
      "path": "MedicationStatement.dosage.modifierExtension",
      "short": "No modifier extensions on the reported dosage",
      "comment": "Modifier extensions on Dosage are prohibited in this profile.",
      "definition": "Modifier extensions on Dosage are not used in this profile.",
      "requirements": "The reported dosage must be interpretable without modifier extensions."
    }, {
      "id": "MedicationStatement.dosage.sequence",
      "max": "0",
      "path": "MedicationStatement.dosage.sequence",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "sequence is prohibited in this profile.",
      "definition": "The current DigiDot profile does not record an ordering sequence between dosage instructions.",
      "requirements": "Only one Dosage element is permitted, so an ordering sequence is not required."
    }, {
      "id": "MedicationStatement.dosage.text",
      "path": "MedicationStatement.dosage.text",
      "short": "Reported human-readable dosage information",
      "comment": "When text and structured dosage elements are both present, they must describe the same reported regimen.",
      "definition": "Record the dosage wording provided by the information source when a human-readable regimen is available.",
      "requirements": "Human-readable text preserves reported dosage information that is not fully represented by the retained structured elements."
    }, {
      "id": "MedicationStatement.dosage.additionalInstruction",
      "max": "0",
      "path": "MedicationStatement.dosage.additionalInstruction",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "additionalInstruction is prohibited in this profile.",
      "definition": "The current DigiDot profile does not record additional coded or textual dosage instructions.",
      "requirements": "The narrow DigiDot model retains the reported regimen in dosage.text and the selected structured dosage elements."
    }, {
      "id": "MedicationStatement.dosage.patientInstruction",
      "max": "0",
      "path": "MedicationStatement.dosage.patientInstruction",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "patientInstruction is prohibited in this profile.",
      "definition": "The current DigiDot profile does not record separate patient-oriented dosage instructions."
    }, {
      "id": "MedicationStatement.dosage.timing",
      "path": "MedicationStatement.dosage.timing",
      "short": "Reported timing of medication use",
      "comment": "Use timing for the reported schedule. Do not use it to infer or reconstruct an administration rate.",
      "definition": "Record when or how often the medication is reported as being taken when structured timing information is available.",
      "requirements": "Structured timing supports consistent representation of when or how often the medication is reported as taken."
    }, {
      "id": "MedicationStatement.dosage.asNeeded[x]",
      "path": "MedicationStatement.dosage.asNeeded[x]",
      "comment": "Only the Boolean variant is permitted in this profile.",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "$this",
          "type": "type"
        } ]
      }
    }, {
      "path": "MedicationStatement.dosage.asNeeded[x]",
      "min": 0,
      "definition": "The current DigiDot profile does not use a CodeableConcept to specify the\ncondition under which the medication is taken as needed. The inherited Boolean\nvariant remains available.",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "sliceName": "asNeededCodeableConcept",
      "max": "0",
      "id": "MedicationStatement.dosage.asNeeded[x]:asNeededCodeableConcept",
      "comment": "The coded variant of asNeeded[x] is prohibited."
    }, {
      "path": "MedicationStatement.dosage.asNeeded[x]",
      "min": 0,
      "definition": "Use the Boolean variant only when the information source reports whether the medication is taken as needed.",
      "short": "Whether the medication is reported as taken as needed",
      "type": [ {
        "code": "boolean"
      } ],
      "sliceName": "asNeededBoolean",
      "max": "1",
      "id": "MedicationStatement.dosage.asNeeded[x]:asNeededBoolean",
      "comment": "true means taken as needed; false means not taken as needed; omit the element when this information is unknown."
    }, {
      "id": "MedicationStatement.dosage.site",
      "max": "0",
      "path": "MedicationStatement.dosage.site",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "site is prohibited in this profile.",
      "definition": "The reported dosage does not include a separate anatomical site.",
      "requirements": "A separate anatomical administration site is outside the current DigiDot MedicationStatement scope."
    }, {
      "id": "MedicationStatement.dosage.route",
      "max": "0",
      "path": "MedicationStatement.dosage.route",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "route is prohibited in this profile.",
      "definition": "The reported dosage does not include a separate route of administration.",
      "requirements": "A separate route of administration is outside the current DigiDot MedicationStatement scope."
    }, {
      "id": "MedicationStatement.dosage.method",
      "max": "0",
      "path": "MedicationStatement.dosage.method",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "method is prohibited in this profile.",
      "definition": "The reported dosage does not include a separate administration method.",
      "requirements": "A separate administration method is outside the current DigiDot MedicationStatement scope."
    }, {
      "id": "MedicationStatement.dosage.doseAndRate",
      "path": "MedicationStatement.dosage.doseAndRate",
      "short": "Reported amount of medication per administration",
      "comment": "Only the dose is used; dose type and administration rate are prohibited.",
      "definition": "Use dose[x] to record the amount reported for one administration, for example\ntwo tablets. A quantity or reported dose range may be used. A structured\nadministration rate is outside the scope of this profile.",
      "requirements": "A structured dose allows the reported amount taken at one time to be represented separately from timing."
    }, {
      "id": "MedicationStatement.dosage.doseAndRate.extension",
      "max": "0",
      "path": "MedicationStatement.dosage.doseAndRate.extension",
      "short": "No extensions on dose and rate",
      "comment": "Extensions on doseAndRate are prohibited in this profile.",
      "definition": "Extensions on doseAndRate are not used in this profile."
    }, {
      "id": "MedicationStatement.dosage.doseAndRate.type",
      "max": "0",
      "path": "MedicationStatement.dosage.doseAndRate.type",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "doseAndRate.type is prohibited in this profile.",
      "definition": "The current DigiDot profile does not classify the reported dose with a separate dose type.",
      "requirements": "The narrow DigiDot model records the reported dose without a separate dose classification."
    }, {
      "id": "MedicationStatement.dosage.doseAndRate.dose[x]",
      "path": "MedicationStatement.dosage.doseAndRate.dose[x]",
      "short": "Reported amount per administration",
      "comment": "Record the amount of the medication identified in medication[x]; do not describe ingredients or a separate Medication resource here.",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "$this",
          "type": "type"
        } ]
      },
      "definition": "Record the exact quantity or dose range reported as being taken at one time. Use doseQuantity when one amount is reported and doseRange only when the information source reports a range.",
      "requirements": "The dose represents the amount of the medication identified in medication[x] and reported as taken at one time."
    }, {
      "path": "MedicationStatement.dosage.doseAndRate.dose[x]",
      "requirements": "An exact quantity supports structured representation when the information source reports one amount per administration.",
      "min": 0,
      "definition": "Record one exact amount reported as being taken at each administration, for example one tablet. The quantity represents the amount of the medication identified in medication[x], not the medicinal-product strength.",
      "short": "Reported exact amount per administration",
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ]
      } ],
      "sliceName": "doseQuantity",
      "max": "1",
      "id": "MedicationStatement.dosage.doseAndRate.dose[x]:doseQuantity",
      "comment": "Use a unit appropriate to the reported amount. Do not repeat a strength such as 10 mg here when medication[x] already identifies a 10 mg tablet and the reported dose is one tablet."
    }, {
      "path": "MedicationStatement.dosage.doseAndRate.dose[x]",
      "requirements": "A range preserves uncertainty or permitted variation explicitly reported by the information source.",
      "min": 0,
      "definition": "Record the lower and upper amount reported as being taken at each administration when the information source provides a dose range rather than one exact amount.",
      "short": "Reported amount range per administration",
      "type": [ {
        "code": "Range"
      } ],
      "sliceName": "doseRange",
      "max": "1",
      "id": "MedicationStatement.dosage.doseAndRate.dose[x]:doseRange",
      "comment": "Use doseRange only for a reported range. Use compatible units for the lower and upper limits, and do not infer a range from incomplete information."
    }, {
      "id": "MedicationStatement.dosage.doseAndRate.rate[x]",
      "max": "0",
      "path": "MedicationStatement.dosage.doseAndRate.rate[x]",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "All rate variants are prohibited in this profile.",
      "definition": "The current DigiDot profile does not record a structured administration rate.",
      "requirements": "Administration rate is outside the current DigiDot MedicationStatement scope."
    }, {
      "id": "MedicationStatement.dosage.maxDosePerPeriod",
      "max": "0",
      "path": "MedicationStatement.dosage.maxDosePerPeriod",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "maxDosePerPeriod is prohibited in this profile.",
      "definition": "The current DigiDot profile does not record a maximum dose per time period.",
      "requirements": "Maximum dose limits are outside the current DigiDot MedicationStatement scope."
    }, {
      "id": "MedicationStatement.dosage.maxDosePerAdministration",
      "max": "0",
      "path": "MedicationStatement.dosage.maxDosePerAdministration",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "maxDosePerAdministration is prohibited in this profile.",
      "definition": "The current DigiDot profile does not record a maximum dose per administration.",
      "requirements": "Maximum dose limits are outside the current DigiDot MedicationStatement scope."
    }, {
      "id": "MedicationStatement.dosage.maxDosePerLifetime",
      "max": "0",
      "path": "MedicationStatement.dosage.maxDosePerLifetime",
      "short": "Not used in the current DigiDot MedicationStatement profile",
      "comment": "maxDosePerLifetime is prohibited in this profile.",
      "definition": "The current DigiDot profile does not record a maximum cumulative lifetime dose.",
      "requirements": "Maximum dose limits are outside the current DigiDot MedicationStatement scope."
    } ]
  },
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationStatement"
}