PackagesCanonicalsLogsProblems
    Packages
    nictiz.fhir.nl.stu3.zib2017@2.3.1
    http://nictiz.nl/fhir/StructureDefinition/zib-AdministrationAgreement
{
  "description": "This profile is based on the Dutch Health and Care Information (HCIM) models (Dutch: Zorginformatiebouwsteen or ZIB) Toedieningsafspraak version 1.0, year 2017.",
  "_filename": "zib-AdministrationAgreement.json",
  "package_name": "nictiz.fhir.nl.stu3.zib2017",
  "date": null,
  "derivation": "constraint",
  "publisher": "Nictiz",
  "fhirVersion": "3.0.2",
  "purpose": "The goal of the administration agreement is to provide insight into the concrete instructions for administration/use of medication.",
  "name": "Zib AdministrationAgreement",
  "mapping": [ {
    "uri": "https://zibs.nl/wiki/AdministrationAgreement-v1.0.1(2017EN)",
    "name": "HCIM AdministrationAgreement-v1.0.1(2017EN)",
    "identity": "hcim-administrationagreement-v1.0.1-2017EN"
  }, {
    "uri": "https://zibs.nl/wiki/InstructionsForUse-v1.1(2017EN)",
    "name": "HCIM InstructionsForUse-v1.1(2017EN)",
    "identity": "hcim-instructionsforuse-v1.1-2017EN"
  }, {
    "uri": "https://zibs.nl/wiki/BasicElements-v1.0(2017EN)",
    "name": "HCIM BasicElements-v1.0(2017EN)",
    "identity": "hcim-basicelements-v1.0-2017EN"
  }, {
    "uri": "https://decor.nictiz.nl/medicatieproces/mp-html-20181220T121121/ds-2.16.840.1.113883.2.4.3.11.60.20.77.1.3-2016-06-01T000000.html",
    "name": "Medication Process v09",
    "comment": "Language of Medication Process is Dutch.",
    "identity": "Medication-Process-v09"
  } ],
  "abstract": false,
  "copyright": "CC0",
  "type": "MedicationDispense",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "HCIM AdministrationAgreement",
  "package_version": "2.3.1",
  "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": "DomainResource",
        "severity": "error",
        "expression": "contained.contained.empty()"
      }, {
        "key": "dom-1",
        "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative",
        "xpath": "not(parent::f:contained and f:text)",
        "source": "DomainResource",
        "severity": "error",
        "expression": "contained.text.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": "DomainResource",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
      }, {
        "key": "dom-3",
        "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource",
        "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))",
        "source": "DomainResource",
        "severity": "error",
        "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()"
      }, {
        "key": "mdd-1",
        "human": "whenHandedOver cannot be before whenPrepared",
        "xpath": "not(exists(f:whenHandedOver/@value)) or not(exists(f:whenPrepared/@value)) or ( f:whenHandedOver/@value >= f:whenPrepared/@value)",
        "severity": "error",
        "expression": "whenHandedOver.empty() or whenPrepared.empty() or whenHandedOver >= whenPrepared"
      } ],
      "path": "MedicationDispense",
      "min": 0,
      "definition": "An administration agreement is the use (or administering) instructions from the pharmacist to the patient (or their representative or administrator), whereby a medication agreement is structured at a concrete level.",
      "short": "AdministrationAgreement",
      "mapping": [ {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      }, {
        "map": "..Event",
        "identity": "workflow"
      }, {
        "map": "Supply[moodCode=EVN]",
        "identity": "rim"
      }, {
        "map": "clinical.medication",
        "identity": "w5"
      }, {
        "map": "NL-CM:9.8.20132",
        "comment": "AdministrationAgreement",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "alias": [ "Toedieningsafspraak" ],
      "max": "*",
      "id": "MedicationDispense",
      "comment": "The WG will be updating the MedicationDispense resource  to adjust each affected resource to align with the workflow pattern (see workflow.html).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Resource"
      }
    }, {
      "path": "MedicationDispense.id",
      "min": 0,
      "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
      "short": "Logical id of this artifact",
      "type": [ {
        "code": "id"
      } ],
      "max": "1",
      "id": "MedicationDispense.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
    }, {
      "path": "MedicationDispense.meta",
      "min": 0,
      "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.",
      "short": "Metadata about the resource",
      "type": [ {
        "code": "Meta"
      } ],
      "max": "1",
      "id": "MedicationDispense.meta",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.meta"
      },
      "isSummary": true
    }, {
      "path": "MedicationDispense.implicitRules",
      "min": 0,
      "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.",
      "isModifier": true,
      "short": "A set of rules under which this content was created",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "MedicationDispense.implicitRules",
      "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. \n\nThis element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.implicitRules"
      },
      "isSummary": true
    }, {
      "path": "MedicationDispense.language",
      "min": 0,
      "definition": "The base language in which the resource is written.",
      "short": "Language of the resource content",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "extensible",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueReference": {
            "reference": "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.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/languages"
        }
      },
      "max": "1",
      "id": "MedicationDispense.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"
      }
    }, {
      "path": "MedicationDispense.text",
      "min": 0,
      "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
      "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": "MedicationDispense.text",
      "condition": [ "dom-1" ],
      "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 in formation is added later.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "DomainResource.text"
      }
    }, {
      "path": "MedicationDispense.contained",
      "min": 0,
      "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
      "short": "Contained, inline Resources",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Resource"
      } ],
      "alias": [ "inline resources", "anonymous resources", "contained resources" ],
      "max": "*",
      "id": "MedicationDispense.contained",
      "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.contained"
      }
    }, {
      "path": "MedicationDispense.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationDispense.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": "DomainResource.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "Element",
        "severity": "error",
        "expression": "hasValue() | (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://nictiz.nl/fhir/StructureDefinition/zib-AdministrationAgreement-AuthoredOn",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "MedicationDispense.extension",
      "min": 0,
      "definition": "The time at which the agreement was made.",
      "short": "AdministrationAgreementDateTime",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "NL-CM:9.8.20133",
        "comment": "AdministrationAgreementDateTime",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-AdministrationAgreement-AuthoredOn"
      } ],
      "sliceName": "authoredOn",
      "alias": [ "extensions", "user content", "ToedieningsafspraakDatumTijd" ],
      "max": "1",
      "id": "MedicationDispense.extension:authoredOn",
      "condition": [ "ele-1" ],
      "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": "DomainResource.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "Element",
        "severity": "error",
        "expression": "hasValue() | (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://nictiz.nl/fhir/StructureDefinition/zib-AdministrationAgreement-AgreementReason",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "MedicationDispense.extension",
      "min": 0,
      "definition": "Reason for this agreement. This will often be the same reason as the one for the medication agreement.  This field has the option to - if applicable - enter a specific reason for the administration agreement. Examples include: substitution, transfer to GDS, patient request for different product, etc",
      "short": "AgreementReason",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "NL-CM:9.8.22499",
        "comment": "AgreementReason",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-AdministrationAgreement-AgreementReason"
      } ],
      "sliceName": "agreementReason",
      "alias": [ "extensions", "user content", "RedenAfspraak" ],
      "max": "1",
      "id": "MedicationDispense.extension:agreementReason",
      "condition": [ "ele-1" ],
      "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": "DomainResource.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "Element",
        "severity": "error",
        "expression": "hasValue() | (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://nictiz.nl/fhir/StructureDefinition/zib-Medication-PeriodOfUse",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "MedicationDispense.extension",
      "min": 0,
      "definition": "Start date: This is the time at which the agreement was to take effect (or took effect or will take effect). This is the time at which the instructions for use in this agreement start. In the case of an agreement to discontinue use, this is the start date of the original administration agreement. The end date indicates from when the medication is to be discontinued.\r\n\r\nEnd date: The time at which the period of use ends (or ended or will end). In the case of an agreement to discontinue use, this is the time at which the medication is to be discontinued. To avoid confusion between 'to' and 'up to', the submission of time is always mandatory for the end date.\r\n\r\nWith medication for an indefinite period only a start date is indicated.",
      "short": "PeriodOfUse",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "NL-CM:9.8.22660",
        "comment": "Maps to the \"start date\" and \"end date\" portion of the \"PeriodOfUse\" element",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-Medication-PeriodOfUse"
      } ],
      "sliceName": "periodOfUse",
      "alias": [ "extensions", "user content", "Gebruiksperiode" ],
      "max": "*",
      "id": "MedicationDispense.extension:periodOfUse",
      "condition": [ "ele-1" ],
      "comment": "According to the HCIM TimeInterval, a time interval is defined by either a start and end time, a start time and duration, or a duration and end time. As this HCIM is expressed by the periodOfUse and usageDuration extensions in this profile, this means that precisely two elements out of `.valuePeriod.start`, `.valuePeriod.end` (both in the periodOfUse extension) and `.valueDuration` (in the usageDuration extension) should be present in order to correctly represent the time interval in which the agreement is used (and in particular not all three elements).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "Element",
        "severity": "error",
        "expression": "hasValue() | (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://nictiz.nl/fhir/StructureDefinition/zib-MedicationUse-Duration",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "MedicationDispense.extension",
      "min": 0,
      "definition": "The intended duration of use. E.g. 5 days or 8 weeks. It is not allowed to indicate the duration in months, because different months have a variable duration in days.",
      "short": "Duration",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "NL-CM:9.8.22660",
        "comment": "Maps to the \"duration\" portion of the \"PeriodOfUse\" element",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-MedicationUse-Duration"
      } ],
      "sliceName": "usageDuration",
      "alias": [ "extensions", "user content", "Gebruiksduur" ],
      "max": "1",
      "id": "MedicationDispense.extension:usageDuration",
      "condition": [ "ele-1" ],
      "comment": "According to the HCIM TimeInterval, a time interval is defined by either a start and end time, a start time and duration, or a duration and end time. As this HCIM is expressed by the periodOfUse and usageDuration extensions in this profile, this means that precisely two elements out of `.valuePeriod.start`, `.valuePeriod.end` (both in the periodOfUse extension) and `.valueDuration` (in the usageDuration extension) should be present in order to correctly represent the time interval in which the agreement is used (and in particular not all three elements).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "Element",
        "severity": "error",
        "expression": "hasValue() | (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://nictiz.nl/fhir/StructureDefinition/zib-Medication-AdditionalInformation",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "MedicationDispense.extension",
      "min": 0,
      "definition": "Additional information includes details on the structure of the agreement made. \r\n\r\nThis element mainly contains information that until now has been structured with ZZ rules. The medication-related topics that are now supported by the ZZ rules are best supported with a system functionality. A process has been started for this by Z-index/KNMP. For now, the following list will be used. This list will be replaced by a thesaurus in the G standard at a later stage.",
      "short": "AdministrationAgreementAdditionalInformation",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "NL-CM:9.8.23284",
        "comment": "AdministrationAgreementAdditionalInformation",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-Medication-AdditionalInformation"
      } ],
      "sliceName": "additionalInformation",
      "alias": [ "extensions", "user content", "ToedieningsafspraakAanvullendeInformatie" ],
      "max": "1",
      "id": "MedicationDispense.extension:additionalInformation",
      "condition": [ "ele-1" ],
      "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": "DomainResource.extension"
      }
    }, {
      "path": "MedicationDispense.extension.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.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationDispense.extension:additionalInformation.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "MedicationDispense.extension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "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": "MedicationDispense.extension:additionalInformation.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"
      }
    }, {
      "path": "MedicationDispense.extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "http://nictiz.nl/fhir/StructureDefinition/zib-Medication-AdditionalInformation",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationDispense.extension:additionalInformation.url",
      "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "MedicationDispense.extension.value[x]",
      "min": 0,
      "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "sliceName": "valueCodeableConcept",
      "binding": {
        "strength": "extensible",
        "description": "AdministrationAgreementAdditionalInformation",
        "valueSetReference": {
          "display": "ToedieningsafspraakAanvullendeInformatieCodelijst",
          "reference": "http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.9.8.2--20171231000000"
        }
      },
      "max": "1",
      "id": "MedicationDispense.extension:additionalInformation.valueCodeableConcept:valueCodeableConcept",
      "example": [ {
        "label": "Example of AdditionalInformation",
        "valueCodeableConcept": {
          "coding": [ {
            "code": "4",
            "system": "urn:oid:2.16.840.1.113883.2.4.3.11.60.20.77.5.2.3.999",
            "display": "Medicatieafspraak gewijzigd: dosering"
          } ]
        }
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "Element",
        "severity": "error",
        "expression": "hasValue() | (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://nictiz.nl/fhir/StructureDefinition/zib-Medication-MedicationTreatment",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "MedicationDispense.extension",
      "min": 0,
      "definition": "This extension is to describe which overarching medication treatment this information is part of. This is done by the use of an identifier of that medication treatment.",
      "short": "Medication Treatment",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "mp-dataelement900-22092",
        "comment": "Medicamenteuze behandeling",
        "identity": "Medication-Process-v09"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-Medication-MedicationTreatment"
      } ],
      "sliceName": "medicationTreatment",
      "alias": [ "extensions", "user content", "Medicamenteuze behandeling" ],
      "max": "1",
      "id": "MedicationDispense.extension:medicationTreatment",
      "condition": [ "ele-1" ],
      "comment": "No HCIM concept is available for this element. Therefore a mapping to the relevant element Medication Process data element is provided.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      }
    }, {
      "path": "MedicationDispense.modifierExtension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationDispense.modifierExtension",
      "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": "DomainResource.modifierExtension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "Element",
        "severity": "error",
        "expression": "hasValue() | (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://nictiz.nl/fhir/StructureDefinition/zib-Medication-StopType",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "MedicationDispense.modifierExtension",
      "min": 0,
      "definition": "The manner in which (and indicator that) this medication is discontinued (temporarily or permanently).",
      "isModifier": true,
      "short": "AdministrationAgreementStopType",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "NL-CM:9.8.22498",
        "comment": "AdministrationAgreementStopType",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-Medication-StopType"
      } ],
      "sliceName": "stopType",
      "alias": [ "extensions", "user content" ],
      "max": "1",
      "id": "MedicationDispense.modifierExtension:stopType",
      "condition": [ "ele-1" ],
      "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": "DomainResource.modifierExtension"
      }
    }, {
      "path": "MedicationDispense.modifierExtension.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.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationDispense.modifierExtension:stopType.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "MedicationDispense.modifierExtension.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "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": "MedicationDispense.modifierExtension:stopType.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"
      }
    }, {
      "path": "MedicationDispense.modifierExtension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "short": "identifies the meaning of the extension",
      "fixedUri": "http://nictiz.nl/fhir/StructureDefinition/zib-Medication-StopType",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationDispense.modifierExtension:stopType.url",
      "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      }
    }, {
      "path": "MedicationDispense.modifierExtension.value[x]",
      "min": 0,
      "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "sliceName": "valueCodeableConcept",
      "binding": {
        "strength": "required",
        "description": "StopType",
        "valueSetReference": {
          "display": "MedicatieafspraakStopTypeCodelijst",
          "reference": "http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.20.77.11.19--20160617101300"
        }
      },
      "max": "1",
      "id": "MedicationDispense.modifierExtension:stopType.valueCodeableConcept:valueCodeableConcept",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "Element",
        "severity": "error",
        "expression": "hasValue() | (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://nictiz.nl/fhir/StructureDefinition/zib-Medication-RepeatPeriodCyclicalSchedule",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "MedicationDispense.modifierExtension",
      "min": 0,
      "definition": "The repeated period in a cyclical schedule (of one or more dosing instructions). A cyclic schedule is noted in days, the corresponding dosing duration is also in days.\r\n\r\nExamples of a cyclical schedule: contraceptive pill (21 days, 1 pill 1x a day, then skip for 7 days, repeat), repeat period here is 28 days.\r\nRepeatPeriodCyclicalSchedule",
      "isModifier": true,
      "short": "RepeatPeriodCyclicalSchedule",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "NL-CM:9.12.22505",
        "comment": "RepeatPeriodCyclicalSchedule",
        "identity": "hcim-instructionsforuse-v1.1-2017EN"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-Medication-RepeatPeriodCyclicalSchedule"
      } ],
      "sliceName": "repeatPeriodCyclicalSchedule",
      "alias": [ "extensions", "user content" ],
      "max": "1",
      "label": "HerhaalperiodeCyclischSchema",
      "id": "MedicationDispense.modifierExtension:repeatPeriodCyclicalSchedule",
      "condition": [ "ele-1" ],
      "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": "DomainResource.modifierExtension"
      }
    }, {
      "path": "MedicationDispense.identifier",
      "min": 0,
      "definition": "Identifier assigned by the dispensing facility - this is an identifier assigned outside FHIR.",
      "short": "External identifier",
      "mapping": [ {
        "map": "…identifier",
        "identity": "workflow"
      }, {
        "map": ".id",
        "identity": "rim"
      }, {
        "map": "id",
        "identity": "w5"
      }, {
        "map": "NL-CM:0.0.6",
        "comment": "IdentificationNumber",
        "identity": "hcim-basicelements-v1.0-2017EN"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "*",
      "id": "MedicationDispense.identifier",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationDispense.identifier"
      }
    }, {
      "path": "MedicationDispense.partOf",
      "min": 0,
      "definition": "The procedure that the dispense is done because of.",
      "short": "Event that dispense is part of",
      "mapping": [ {
        "map": "…part of",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=COMP]/target[classCode=PROC,moodCode=EVN]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Procedure"
      } ],
      "max": "*",
      "id": "MedicationDispense.partOf",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationDispense.partOf"
      }
    }, {
      "path": "MedicationDispense.status",
      "min": 0,
      "definition": "In the event of an error correction, the value of this element shall be 'entered-in-error'.",
      "isModifier": true,
      "short": "CanceledIndicator",
      "mapping": [ {
        "map": "…status",
        "identity": "workflow"
      }, {
        "map": ".statusCode",
        "identity": "rim"
      }, {
        "map": "status",
        "identity": "w5"
      }, {
        "map": "NL-CM:9.8.23034",
        "comment": "CanceledIndicator. Use status code entered-in-error when CanceledIndicator = true.",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationDispenseStatus"
        } ],
        "description": "A coded concept specifying the state of the dispense event.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/medication-dispense-status"
        }
      },
      "alias": [ "GeannuleerdIndicator" ],
      "max": "1",
      "id": "MedicationDispense.status",
      "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationDispense.status"
      },
      "isSummary": true
    }, {
      "path": "MedicationDispense.category",
      "min": 1,
      "definition": "Indicates type of medication dispense and where the medication is expected to be consumed or administered.",
      "short": "Type of medication dispense",
      "mapping": [ {
        "map": ".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=\"type of medication dispense\"].value",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "preferred",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationDispenseCategory"
        } ],
        "description": "A code describing where the dispensed medication is expected to be consumed or administered",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/medication-dispense-category"
        }
      },
      "max": "1",
      "id": "MedicationDispense.category",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationDispense.category"
      }
    }, {
      "path": "MedicationDispense.category.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.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationDispense.category.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "MedicationDispense.category.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "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": "MedicationDispense.category.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"
      }
    }, {
      "path": "MedicationDispense.category.coding",
      "requirements": "Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings.",
      "min": 0,
      "definition": "A reference to a code defined by a terminology system.",
      "short": "Code defined by a terminology system",
      "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": "open",
        "discriminator": [ {
          "path": "code",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Coding"
      } ],
      "max": "*",
      "id": "MedicationDispense.category.coding",
      "comment": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      },
      "isSummary": true
    }, {
      "path": "MedicationDispense.category.coding",
      "requirements": "Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings.",
      "min": 0,
      "definition": "Category SNOMED code used for indexing/retrieval of the HCIM AdministrationAgreement. The SNOMED code 422037009 for this resource is stated in the Medication Process v09.",
      "short": "AdministrationAgreementCode",
      "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"
      } ],
      "sliceName": "administrationAgreementCode",
      "max": "1",
      "id": "MedicationDispense.category.coding:administrationAgreementCode",
      "comment": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      },
      "isSummary": true
    }, {
      "path": "MedicationDispense.category.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.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationDispense.category.coding:administrationAgreementCode.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "MedicationDispense.category.coding.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "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": "MedicationDispense.category.coding:administrationAgreementCode.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"
      }
    }, {
      "path": "MedicationDispense.category.coding.system",
      "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
      "min": 0,
      "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
      "short": "Identity of the terminology 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": "MedicationDispense.category.coding:administrationAgreementCode.system",
      "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should de-reference to some definition that establish the system clearly and unambiguously.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.system"
      },
      "isSummary": true
    }, {
      "path": "MedicationDispense.category.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.",
      "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": "MedicationDispense.category.coding:administrationAgreementCode.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
    }, {
      "path": "MedicationDispense.category.coding.code",
      "fixedCode": "422037009",
      "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).",
      "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": "MedicationDispense.category.coding:administrationAgreementCode.code",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.code"
      },
      "isSummary": true
    }, {
      "path": "MedicationDispense.category.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.",
      "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": "MedicationDispense.category.coding:administrationAgreementCode.display",
      "defaultValueString": "Provider medication administration instructions (procedure)",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Coding.display"
      },
      "isSummary": true
    }, {
      "path": "MedicationDispense.category.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 - i.e. off a pick list of available items (codes or displays).",
      "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": "MedicationDispense.category.coding:administrationAgreementCode.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
    }, {
      "path": "MedicationDispense.category.text",
      "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
      "min": 0,
      "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
      "short": "Plain text representation of the concept",
      "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"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "MedicationDispense.category.text",
      "comment": "Very often the text is the same as a displayName of one of the codings.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CodeableConcept.text"
      },
      "isSummary": true
    }, {
      "path": "MedicationDispense.medicationReference",
      "min": 1,
      "definition": "Medicine in the AdministrationAgreement.",
      "short": "MedicineForAdministrationAgreement",
      "mapping": [ {
        "map": "…code",
        "identity": "workflow"
      }, {
        "map": "RXD-2-Dispense/Give Code",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=PRD].role",
        "identity": "rim"
      }, {
        "map": "what",
        "identity": "w5"
      }, {
        "map": "NL-CM:9.8.20237",
        "comment": "MedicineForAdministrationAgreement",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-Product"
      } ],
      "sliceName": "medicationReference",
      "alias": [ "GeneesmiddelBijToedieningsAfspraak", "Product" ],
      "max": "1",
      "id": "MedicationDispense.medication[x]:medicationReference",
      "comment": "-",
      "base": {
        "max": "1",
        "min": 1,
        "path": "MedicationDispense.medication[x]"
      },
      "isSummary": true
    }, {
      "path": "MedicationDispense.subject",
      "min": 0,
      "definition": "A link to a resource representing the person or the group to whom the medication will be given.",
      "short": "Who the dispense is for",
      "mapping": [ {
        "map": "…subject",
        "identity": "workflow"
      }, {
        "map": "PID-3-Patient ID List",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=SBJ].role[classCode=PAT]",
        "identity": "rim"
      }, {
        "map": "who.focus",
        "identity": "w5"
      }, {
        "map": "NL-CM:0.0.11",
        "comment": "Subject",
        "identity": "hcim-basicelements-v1.0-2017EN"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
      } ],
      "max": "1",
      "id": "MedicationDispense.subject",
      "comment": "SubstanceAdministration->subject->Patient.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationDispense.subject"
      },
      "isSummary": true
    }, {
      "path": "MedicationDispense.context",
      "min": 0,
      "definition": "The encounter or episode of care that establishes the context for this event.",
      "short": "Encounter / Episode associated with event",
      "mapping": [ {
        "map": "…context",
        "identity": "workflow"
      }, {
        "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code=\"type of encounter or episode\"]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-Encounter"
      }, {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-episodeofcare"
      } ],
      "max": "1",
      "id": "MedicationDispense.context",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationDispense.context"
      }
    }, {
      "path": "MedicationDispense.supportingInformation",
      "min": 0,
      "definition": "Additional information that supports the medication being dispensed.",
      "short": "Information that supports the dispensing of the medication",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=PERT].target[A_SupportingClinicalStatement CMET minimal with many different choices of classCodes(ORG, ENC, PROC, SPLY, SBADM, OBS) and each of the act class codes draws from one or more of the following moodCodes (EVN, DEF, INT PRMS, RQO, PRP, APT, ARQ, GOL)]",
        "identity": "rim"
      }, {
        "map": "context",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource"
      } ],
      "max": "*",
      "id": "MedicationDispense.supportingInformation",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationDispense.supportingInformation"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      } ],
      "path": "MedicationDispense.performer",
      "min": 0,
      "definition": "The supplier (pharmacist) that entered the administration agreement.",
      "short": "Supplier",
      "mapping": [ {
        "map": "…performer",
        "identity": "workflow"
      }, {
        "map": ".participation[typeCode=PRF]",
        "identity": "rim"
      }, {
        "map": "NL-CM:9.8.22097",
        "comment": "Supplier",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      }, {
        "map": "NL-CM:0.0.7",
        "comment": "Author",
        "identity": "hcim-basicelements-v1.0-2017EN"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "alias": [ "Verstrekker" ],
      "max": "*",
      "id": "MedicationDispense.performer",
      "comment": "The performer will be reviewed as part of STU4.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationDispense.performer"
      }
    }, {
      "path": "MedicationDispense.performer.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.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationDispense.performer.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "MedicationDispense.performer.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationDispense.performer.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"
      }
    }, {
      "path": "MedicationDispense.performer.modifierExtension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "MedicationDispense.performer.modifierExtension",
      "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": "BackboneElement.modifierExtension"
      },
      "isSummary": true
    }, {
      "path": "MedicationDispense.performer.actor",
      "min": 1,
      "definition": "The device, practitioner, etc. who performed the action.  It should be assumed that the actor is the dispenser of the medication.",
      "short": "Individual who was performing",
      "mapping": [ {
        "map": "….actor",
        "identity": "workflow"
      }, {
        "map": ".role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner"
      }, {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
      }, {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
      }, {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson"
      } ],
      "max": "1",
      "id": "MedicationDispense.performer.actor",
      "comment": "The health professional's speciality, role, and organization are captured and communicated through the PractitionerRole Resource based on the nl-core-practitionerrole profile.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "MedicationDispense.performer.actor"
      }
    }, {
      "path": "MedicationDispense.performer.actor.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.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationDispense.performer.actor.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "MedicationDispense.performer.actor.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "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": "MedicationDispense.performer.actor.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"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "Element",
        "severity": "error",
        "expression": "hasValue() | (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://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "MedicationDispense.performer.actor.extension",
      "min": 0,
      "definition": "Optional Extension Element - found in all resources.",
      "short": "Optional Extensions Element",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"
      } ],
      "sliceName": "practitionerRole",
      "alias": [ "extensions", "user content" ],
      "max": "1",
      "id": "MedicationDispense.performer.actor.extension:practitionerRole",
      "condition": [ "ele-1" ],
      "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"
      }
    }, {
      "path": "MedicationDispense.performer.actor.reference",
      "min": 0,
      "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
      "short": "Literal reference, Relative, internal or absolute URL",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "MedicationDispense.performer.actor.reference",
      "condition": [ "ref-1" ],
      "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.reference"
      },
      "isSummary": true
    }, {
      "path": "MedicationDispense.performer.actor.identifier",
      "min": 0,
      "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
      "short": "Logical reference, when literal reference is not known",
      "mapping": [ {
        "map": ".identifier",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "1",
      "id": "MedicationDispense.performer.actor.identifier",
      "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.identifier"
      },
      "isSummary": true
    }, {
      "path": "MedicationDispense.performer.actor.display",
      "min": 0,
      "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
      "short": "Text alternative for the resource",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "MedicationDispense.performer.actor.display",
      "comment": "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.display"
      },
      "isSummary": true
    }, {
      "path": "MedicationDispense.performer.onBehalfOf",
      "min": 0,
      "definition": "The organization the device or practitioner was acting on behalf of.",
      "short": "Organization organization was acting for",
      "mapping": [ {
        "map": "….onBehalfOf",
        "identity": "workflow"
      }, {
        "map": ".role.scopingOrganization",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
      } ],
      "max": "1",
      "id": "MedicationDispense.performer.onBehalfOf",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationDispense.performer.onBehalfOf"
      }
    }, {
      "path": "MedicationDispense.authorizingPrescription",
      "min": 0,
      "definition": "Relationship to the medication agreement on which the administration agreement is based.",
      "short": "MedicationAgreement",
      "mapping": [ {
        "map": "…basedOn",
        "identity": "workflow"
      }, {
        "map": "ORC-2 Placer Order Number",
        "identity": "v2"
      }, {
        "map": ".outboundRelationship[typeCode=FLFS].target[moodCode=RQO]",
        "identity": "rim"
      }, {
        "map": "NL-CM:9.8.22394",
        "comment": "MedicationAgreement",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-MedicationAgreement"
      } ],
      "alias": [ "Medicatieafspraak" ],
      "max": "*",
      "id": "MedicationDispense.authorizingPrescription",
      "comment": "Maps to basedOn in Event logical model.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationDispense.authorizingPrescription"
      }
    }, {
      "path": "MedicationDispense.type",
      "min": 0,
      "definition": "Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.",
      "short": "Trial fill, partial fill, emergency fill, etc.",
      "mapping": [ {
        "map": "RXD-33-Dispense Type",
        "identity": "v2"
      }, {
        "map": ".code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationDispenseType"
        } ],
        "description": "Indicates the type of dispensing event that is performed. For example, Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/v3-ActPharmacySupplyType"
        }
      },
      "max": "1",
      "id": "MedicationDispense.type",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationDispense.type"
      }
    }, {
      "path": "MedicationDispense.quantity",
      "min": 0,
      "definition": "The amount of medication that has been dispensed. Includes unit of measure.",
      "short": "Amount dispensed",
      "mapping": [ {
        "map": "RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system",
        "identity": "v2"
      }, {
        "map": ".quantity",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
      } ],
      "max": "1",
      "id": "MedicationDispense.quantity",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationDispense.quantity"
      }
    }, {
      "path": "MedicationDispense.daysSupply",
      "min": 0,
      "definition": "The amount of medication expressed as a timing amount.",
      "short": "Amount of medication expressed as a timing amount",
      "mapping": [ {
        "map": "TQ1.6 Timing/Quantity Segment Service Duration.\rPrior to v2.5, ORC.7.3 Common Order Segment / Quantity/Timing / Duration component.  This is a formatted string, first character for the time unit (e.g., D=days), followed by the value.  For example, “D14” represents “14 days supply”\rFrom v2.5 on, TQ1.6 Timing/Quantity Segment / Service Duration.  This is a CQ data type ( ^ ), thus for days supply, assuming the unit of measure is “days”, the numeric value is TQ1.6.1 (…|14^\rFor backwards compatibility, ORC.7 was permitted through v2.6.  Both forms (field and segment) may be present in v2.5, v2.5.1, and v2.6",
        "identity": "v2"
      }, {
        "map": "effectiveUseTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
      } ],
      "max": "1",
      "id": "MedicationDispense.daysSupply",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationDispense.daysSupply"
      }
    }, {
      "path": "MedicationDispense.whenPrepared",
      "min": 0,
      "definition": "The time when the dispensed product was packaged and reviewed.",
      "short": "When product was packaged and reviewed",
      "mapping": [ {
        "map": "RXD-3-Date/Time Dispensed",
        "identity": "v2"
      }, {
        "map": ".effectiveTime[xmi:type=IVL_TS].low",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "max": "1",
      "id": "MedicationDispense.whenPrepared",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationDispense.whenPrepared"
      },
      "isSummary": true
    }, {
      "path": "MedicationDispense.whenHandedOver",
      "min": 0,
      "definition": "The time the dispensed product was provided to the patient or their representative.",
      "short": "When product was given out",
      "mapping": [ {
        "map": "…occurrenceDateTime",
        "identity": "workflow"
      }, {
        "map": "RXD-3-Date/Time Dispensed",
        "identity": "v2"
      }, {
        "map": ".effectiveTime[xmi:type=IVL_TS].high",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "max": "1",
      "id": "MedicationDispense.whenHandedOver",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationDispense.whenHandedOver"
      }
    }, {
      "path": "MedicationDispense.destination",
      "min": 0,
      "definition": "Identification of the facility/location where the medication was shipped to, as part of the dispense event.",
      "short": "Where the medication was sent",
      "mapping": [ {
        "map": "RXD-13 Dispense-to Location; RXD-30 Dispense to Pharmacy; RXD-31 Dispense to Pharmacy Address",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=DST].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location"
      } ],
      "max": "1",
      "id": "MedicationDispense.destination",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationDispense.destination"
      }
    }, {
      "path": "MedicationDispense.receiver",
      "min": 0,
      "definition": "Identifies the person who picked up the medication.  This will usually be a patient or their caregiver, but some cases exist where it can be a healthcare professional.",
      "short": "Who collected the medication",
      "mapping": [ {
        "map": ".participation[typeCode=RCV].role",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
      } ],
      "max": "*",
      "id": "MedicationDispense.receiver",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationDispense.receiver"
      }
    }, {
      "path": "MedicationDispense.note",
      "min": 0,
      "definition": "Comments on the administration agreement.",
      "short": "Comment",
      "mapping": [ {
        "map": "…note",
        "identity": "workflow"
      }, {
        "map": "RXD-9 Dispense Notes",
        "identity": "v2"
      }, {
        "map": ".inboundRelationship[typeCode=SUBJ]/source[classCode=ACT,moodCode=EVN]",
        "identity": "rim"
      }, {
        "map": "NL-CM:9.8.22275",
        "comment": "Comment",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "type": [ {
        "code": "Annotation"
      } ],
      "alias": [ "Toelichting" ],
      "max": "*",
      "id": "MedicationDispense.note",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationDispense.note"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      } ],
      "path": "MedicationDispense.dosageInstruction",
      "min": 0,
      "definition": "Instructions for the use of the medication, e.g. dose and route of administration. In the event of medication use, this is the pattern of use established by the patient or which the patient followed",
      "short": "InstructionsForUse",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=INT]",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "NL-CM:9.12.22504",
        "comment": "InstructionsForUse",
        "identity": "hcim-instructionsforuse-v1.1-2017EN"
      }, {
        "map": "NL-CM:9.8.22098",
        "comment": "InstructionsForUse",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      }, {
        "map": "NL-CM:0.0.14",
        "comment": "DateTime",
        "identity": "hcim-basicelements-v1.0-2017EN"
      } ],
      "type": [ {
        "code": "Dosage",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-InstructionsForUse"
      } ],
      "alias": [ "Gebruiksinstructie" ],
      "max": "*",
      "id": "MedicationDispense.dosageInstruction",
      "condition": [ "ele-1" ],
      "comment": "The wiki page https://informatiestandaarden.nictiz.nl/wiki/mp:V9.0_Voorbeelden_doseringen provides dosage instruction examples. These examples consists of functional data and their representation in FHIR and CDA.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationDispense.dosageInstruction"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      } ],
      "path": "MedicationDispense.substitution",
      "min": 0,
      "definition": "Indicates whether or not substitution was made as part of the dispense.  In some cases substitution will be expected but does not happen, in other cases substitution is not expected but does happen.  This block explains what substitution did or did not happen and why.  If nothing is specified, substitution was not done.",
      "short": "Whether a substitution was performed on the dispense",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP].target[classCode=SUBST, moodCode=EVN]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "1",
      "id": "MedicationDispense.substitution",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationDispense.substitution"
      }
    }, {
      "path": "MedicationDispense.substitution.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.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "MedicationDispense.substitution.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "MedicationDispense.substitution.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "MedicationDispense.substitution.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"
      }
    }, {
      "path": "MedicationDispense.substitution.modifierExtension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "MedicationDispense.substitution.modifierExtension",
      "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": "BackboneElement.modifierExtension"
      },
      "isSummary": true
    }, {
      "path": "MedicationDispense.substitution.wasSubstituted",
      "min": 1,
      "definition": "True if the dispenser dispensed a different drug or product from what was prescribed.",
      "short": "Whether a substitution was or was not performed on the dispense",
      "mapping": [ {
        "map": ".actionNegationInd",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "max": "1",
      "id": "MedicationDispense.substitution.wasSubstituted",
      "base": {
        "max": "1",
        "min": 1,
        "path": "MedicationDispense.substitution.wasSubstituted"
      }
    }, {
      "path": "MedicationDispense.substitution.type",
      "min": 0,
      "definition": "A code signifying whether a different drug was dispensed from what was prescribed.",
      "short": "Code signifying whether a different drug was dispensed from what was prescribed",
      "mapping": [ {
        "map": "RXO-9-Allow Substitutions / RXE-9-Substitution Status",
        "identity": "v2"
      }, {
        "map": ".code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationIntendedSubstitutionType"
        } ],
        "description": "A coded concept describing whether a different medicinal product may be dispensed other than the product as specified exactly in the prescription",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/v3-ActSubstanceAdminSubstitutionCode"
        }
      },
      "max": "1",
      "id": "MedicationDispense.substitution.type",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationDispense.substitution.type"
      }
    }, {
      "path": "MedicationDispense.substitution.reason",
      "min": 0,
      "definition": "Indicates the reason for the substitution of (or lack of substitution) from what was prescribed.",
      "short": "Why was substitution made",
      "mapping": [ {
        "map": ".reasonCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationIntendedSubstitutionReason"
        } ],
        "description": "A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/v3-SubstanceAdminSubstitutionReason"
        }
      },
      "max": "*",
      "id": "MedicationDispense.substitution.reason",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationDispense.substitution.reason"
      }
    }, {
      "path": "MedicationDispense.substitution.responsibleParty",
      "min": 0,
      "definition": "The person or organization that has primary responsibility for the substitution.",
      "short": "Who is responsible for the substitution",
      "mapping": [ {
        "map": ".participation[typeCode=PFM].role[classCode=ASSIGN]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
      } ],
      "max": "*",
      "id": "MedicationDispense.substitution.responsibleParty",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationDispense.substitution.responsibleParty"
      }
    }, {
      "path": "MedicationDispense.detectedIssue",
      "min": 0,
      "definition": "Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, duplicate therapy, dosage alert etc.",
      "short": "Clinical issue with action",
      "mapping": [ {
        "map": ".inboundRelationship[typeCode=SUBJ]/source[classCode=ALRT,moodCode=EVN].value",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/DetectedIssue"
      } ],
      "alias": [ "Contraindication", "Drug Utilization Review (DUR)", "Alert" ],
      "max": "*",
      "id": "MedicationDispense.detectedIssue",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationDispense.detectedIssue"
      }
    }, {
      "path": "MedicationDispense.notDone",
      "min": 0,
      "definition": "True if the dispense was not performed for some reason.",
      "short": "Whether the dispense was or was not performed",
      "mapping": [ {
        "map": "…notDone",
        "identity": "workflow"
      }, {
        "map": ".actionNegationInd",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "max": "1",
      "id": "MedicationDispense.notDone",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationDispense.notDone"
      }
    }, {
      "path": "MedicationDispense.notDoneReason[x]",
      "min": 0,
      "definition": "Indicates the reason why a dispense was not performed.",
      "short": "Why a dispense was not performed",
      "mapping": [ {
        "map": "…notDoneReason",
        "identity": "workflow"
      }, {
        "map": ".outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code=\"not done reason\"].value",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/DetectedIssue"
      } ],
      "max": "1",
      "id": "MedicationDispense.notDoneReason[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "MedicationDispense.notDoneReason[x]"
      }
    }, {
      "path": "MedicationDispense.eventHistory",
      "min": 0,
      "definition": "A summary of the events of interest that have occurred, such as when the dispense was verified.",
      "short": "A list of releveant lifecycle events",
      "mapping": [ {
        "map": ".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Provenance"
      } ],
      "max": "*",
      "id": "MedicationDispense.eventHistory",
      "comment": "This may not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the Provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the Provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "MedicationDispense.eventHistory"
      }
    } ]
  },
  "status": "active",
  "id": "3445e622-9e4e-4976-b124-cfc09d84639f",
  "kind": "resource",
  "url": "http://nictiz.nl/fhir/StructureDefinition/zib-AdministrationAgreement",
  "version": "2.2.8",
  "differential": {
    "element": [ {
      "id": "MedicationDispense",
      "path": "MedicationDispense",
      "alias": [ "Toedieningsafspraak" ],
      "short": "AdministrationAgreement",
      "mapping": [ {
        "map": "NL-CM:9.8.20132",
        "comment": "AdministrationAgreement",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "definition": "An administration agreement is the use (or administering) instructions from the pharmacist to the patient (or their representative or administrator), whereby a medication agreement is structured at a concrete level."
    }, {
      "id": "MedicationDispense.extension",
      "path": "MedicationDispense.extension",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      }
    }, {
      "path": "MedicationDispense.extension",
      "definition": "The time at which the agreement was made.",
      "short": "AdministrationAgreementDateTime",
      "mapping": [ {
        "map": "NL-CM:9.8.20133",
        "comment": "AdministrationAgreementDateTime",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-AdministrationAgreement-AuthoredOn"
      } ],
      "sliceName": "authoredOn",
      "alias": [ "ToedieningsafspraakDatumTijd" ],
      "max": "1",
      "id": "MedicationDispense.extension:authoredOn"
    }, {
      "path": "MedicationDispense.extension",
      "definition": "Reason for this agreement. This will often be the same reason as the one for the medication agreement.  This field has the option to - if applicable - enter a specific reason for the administration agreement. Examples include: substitution, transfer to GDS, patient request for different product, etc",
      "short": "AgreementReason",
      "mapping": [ {
        "map": "NL-CM:9.8.22499",
        "comment": "AgreementReason",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-AdministrationAgreement-AgreementReason"
      } ],
      "sliceName": "agreementReason",
      "alias": [ "RedenAfspraak" ],
      "max": "1",
      "id": "MedicationDispense.extension:agreementReason"
    }, {
      "id": "MedicationDispense.extension:periodOfUse",
      "path": "MedicationDispense.extension",
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-Medication-PeriodOfUse"
      } ],
      "short": "PeriodOfUse",
      "comment": "According to the HCIM TimeInterval, a time interval is defined by either a start and end time, a start time and duration, or a duration and end time. As this HCIM is expressed by the periodOfUse and usageDuration extensions in this profile, this means that precisely two elements out of `.valuePeriod.start`, `.valuePeriod.end` (both in the periodOfUse extension) and `.valueDuration` (in the usageDuration extension) should be present in order to correctly represent the time interval in which the agreement is used (and in particular not all three elements).",
      "mapping": [ {
        "map": "NL-CM:9.8.22660",
        "comment": "Maps to the \"start date\" and \"end date\" portion of the \"PeriodOfUse\" element",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "sliceName": "periodOfUse",
      "definition": "Start date: This is the time at which the agreement was to take effect (or took effect or will take effect). This is the time at which the instructions for use in this agreement start. In the case of an agreement to discontinue use, this is the start date of the original administration agreement. The end date indicates from when the medication is to be discontinued.\r\n\r\nEnd date: The time at which the period of use ends (or ended or will end). In the case of an agreement to discontinue use, this is the time at which the medication is to be discontinued. To avoid confusion between 'to' and 'up to', the submission of time is always mandatory for the end date.\r\n\r\nWith medication for an indefinite period only a start date is indicated."
    }, {
      "path": "MedicationDispense.extension",
      "definition": "The intended duration of use. E.g. 5 days or 8 weeks. It is not allowed to indicate the duration in months, because different months have a variable duration in days.",
      "short": "Duration",
      "mapping": [ {
        "map": "NL-CM:9.8.22660",
        "comment": "Maps to the \"duration\" portion of the \"PeriodOfUse\" element",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-MedicationUse-Duration"
      } ],
      "sliceName": "usageDuration",
      "alias": [ "Gebruiksduur" ],
      "max": "1",
      "id": "MedicationDispense.extension:usageDuration",
      "comment": "According to the HCIM TimeInterval, a time interval is defined by either a start and end time, a start time and duration, or a duration and end time. As this HCIM is expressed by the periodOfUse and usageDuration extensions in this profile, this means that precisely two elements out of `.valuePeriod.start`, `.valuePeriod.end` (both in the periodOfUse extension) and `.valueDuration` (in the usageDuration extension) should be present in order to correctly represent the time interval in which the agreement is used (and in particular not all three elements)."
    }, {
      "path": "MedicationDispense.extension",
      "definition": "Additional information includes details on the structure of the agreement made. \r\n\r\nThis element mainly contains information that until now has been structured with ZZ rules. The medication-related topics that are now supported by the ZZ rules are best supported with a system functionality. A process has been started for this by Z-index/KNMP. For now, the following list will be used. This list will be replaced by a thesaurus in the G standard at a later stage.",
      "short": "AdministrationAgreementAdditionalInformation",
      "mapping": [ {
        "map": "NL-CM:9.8.23284",
        "comment": "AdministrationAgreementAdditionalInformation",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-Medication-AdditionalInformation"
      } ],
      "sliceName": "additionalInformation",
      "alias": [ "ToedieningsafspraakAanvullendeInformatie" ],
      "max": "1",
      "id": "MedicationDispense.extension:additionalInformation"
    }, {
      "id": "MedicationDispense.extension:additionalInformation.valueCodeableConcept:valueCodeableConcept",
      "path": "MedicationDispense.extension.valueCodeableConcept",
      "binding": {
        "strength": "extensible",
        "description": "AdministrationAgreementAdditionalInformation",
        "valueSetReference": {
          "display": "ToedieningsafspraakAanvullendeInformatieCodelijst",
          "reference": "http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.9.8.2--20171231000000"
        }
      },
      "example": [ {
        "label": "Example of AdditionalInformation",
        "valueCodeableConcept": {
          "coding": [ {
            "code": "4",
            "system": "urn:oid:2.16.840.1.113883.2.4.3.11.60.20.77.5.2.3.999",
            "display": "Medicatieafspraak gewijzigd: dosering"
          } ]
        }
      } ],
      "sliceName": "valueCodeableConcept"
    }, {
      "path": "MedicationDispense.extension",
      "definition": "This extension is to describe which overarching medication treatment this information is part of. This is done by the use of an identifier of that medication treatment.",
      "short": "Medication Treatment",
      "mapping": [ {
        "map": "mp-dataelement900-22092",
        "comment": "Medicamenteuze behandeling",
        "identity": "Medication-Process-v09"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-Medication-MedicationTreatment"
      } ],
      "sliceName": "medicationTreatment",
      "alias": [ "Medicamenteuze behandeling" ],
      "max": "1",
      "id": "MedicationDispense.extension:medicationTreatment",
      "comment": "No HCIM concept is available for this element. Therefore a mapping to the relevant element Medication Process data element is provided."
    }, {
      "id": "MedicationDispense.modifierExtension",
      "path": "MedicationDispense.modifierExtension",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      }
    }, {
      "id": "MedicationDispense.modifierExtension:stopType",
      "max": "1",
      "path": "MedicationDispense.modifierExtension",
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-Medication-StopType"
      } ],
      "short": "AdministrationAgreementStopType",
      "mapping": [ {
        "map": "NL-CM:9.8.22498",
        "comment": "AdministrationAgreementStopType",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "sliceName": "stopType"
    }, {
      "id": "MedicationDispense.modifierExtension:stopType.valueCodeableConcept:valueCodeableConcept",
      "path": "MedicationDispense.modifierExtension.valueCodeableConcept",
      "binding": {
        "strength": "required"
      },
      "sliceName": "valueCodeableConcept"
    }, {
      "path": "MedicationDispense.modifierExtension",
      "definition": "The repeated period in a cyclical schedule (of one or more dosing instructions). A cyclic schedule is noted in days, the corresponding dosing duration is also in days.\r\n\r\nExamples of a cyclical schedule: contraceptive pill (21 days, 1 pill 1x a day, then skip for 7 days, repeat), repeat period here is 28 days.\r\nRepeatPeriodCyclicalSchedule",
      "short": "RepeatPeriodCyclicalSchedule",
      "mapping": [ {
        "map": "NL-CM:9.12.22505",
        "comment": "RepeatPeriodCyclicalSchedule",
        "identity": "hcim-instructionsforuse-v1.1-2017EN"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-Medication-RepeatPeriodCyclicalSchedule"
      } ],
      "sliceName": "repeatPeriodCyclicalSchedule",
      "max": "1",
      "label": "HerhaalperiodeCyclischSchema",
      "id": "MedicationDispense.modifierExtension:repeatPeriodCyclicalSchedule"
    }, {
      "id": "MedicationDispense.identifier",
      "path": "MedicationDispense.identifier",
      "mapping": [ {
        "map": "NL-CM:0.0.6",
        "comment": "IdentificationNumber",
        "identity": "hcim-basicelements-v1.0-2017EN"
      } ]
    }, {
      "id": "MedicationDispense.status",
      "path": "MedicationDispense.status",
      "alias": [ "GeannuleerdIndicator" ],
      "short": "CanceledIndicator",
      "mapping": [ {
        "map": "NL-CM:9.8.23034",
        "comment": "CanceledIndicator. Use status code entered-in-error when CanceledIndicator = true.",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "definition": "In the event of an error correction, the value of this element shall be 'entered-in-error'."
    }, {
      "id": "MedicationDispense.category",
      "min": 1,
      "path": "MedicationDispense.category"
    }, {
      "id": "MedicationDispense.category.coding",
      "path": "MedicationDispense.category.coding",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "code",
          "type": "value"
        } ]
      }
    }, {
      "id": "MedicationDispense.category.coding:administrationAgreementCode",
      "max": "1",
      "path": "MedicationDispense.category.coding",
      "short": "AdministrationAgreementCode",
      "sliceName": "administrationAgreementCode",
      "definition": "Category SNOMED code used for indexing/retrieval of the HCIM AdministrationAgreement. The SNOMED code 422037009 for this resource is stated in the Medication Process v09."
    }, {
      "id": "MedicationDispense.category.coding:administrationAgreementCode.system",
      "path": "MedicationDispense.category.coding.system",
      "fixedUri": "http://snomed.info/sct"
    }, {
      "id": "MedicationDispense.category.coding:administrationAgreementCode.code",
      "path": "MedicationDispense.category.coding.code",
      "fixedCode": "422037009"
    }, {
      "id": "MedicationDispense.category.coding:administrationAgreementCode.display",
      "path": "MedicationDispense.category.coding.display",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "defaultValueString": "Provider medication administration instructions (procedure)"
    }, {
      "path": "MedicationDispense.medicationReference",
      "definition": "Medicine in the AdministrationAgreement.",
      "short": "MedicineForAdministrationAgreement",
      "mapping": [ {
        "map": "NL-CM:9.8.20237",
        "comment": "MedicineForAdministrationAgreement",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-Product"
      } ],
      "sliceName": "medicationReference",
      "alias": [ "GeneesmiddelBijToedieningsAfspraak", "Product" ],
      "id": "MedicationDispense.medication[x]:medicationReference",
      "comment": "-"
    }, {
      "id": "MedicationDispense.subject",
      "path": "MedicationDispense.subject",
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
      } ],
      "mapping": [ {
        "map": "NL-CM:0.0.11",
        "comment": "Subject",
        "identity": "hcim-basicelements-v1.0-2017EN"
      } ]
    }, {
      "id": "MedicationDispense.context",
      "path": "MedicationDispense.context",
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-Encounter"
      }, {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-episodeofcare"
      } ]
    }, {
      "id": "MedicationDispense.performer",
      "path": "MedicationDispense.performer",
      "alias": [ "Verstrekker" ],
      "short": "Supplier",
      "mapping": [ {
        "map": "NL-CM:9.8.22097",
        "comment": "Supplier",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      }, {
        "map": "NL-CM:0.0.7",
        "comment": "Author",
        "identity": "hcim-basicelements-v1.0-2017EN"
      } ],
      "definition": "The supplier (pharmacist) that entered the administration agreement."
    }, {
      "id": "MedicationDispense.performer.actor",
      "path": "MedicationDispense.performer.actor",
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner"
      }, {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
      }, {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
      }, {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson"
      } ],
      "comment": "The health professional's speciality, role, and organization are captured and communicated through the PractitionerRole Resource based on the nl-core-practitionerrole profile."
    }, {
      "id": "MedicationDispense.performer.actor.extension",
      "path": "MedicationDispense.performer.actor.extension",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      }
    }, {
      "id": "MedicationDispense.performer.actor.extension:practitionerRole",
      "max": "1",
      "path": "MedicationDispense.performer.actor.extension",
      "type": [ {
        "code": "Extension",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"
      } ],
      "sliceName": "practitionerRole"
    }, {
      "id": "MedicationDispense.performer.onBehalfOf",
      "path": "MedicationDispense.performer.onBehalfOf",
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
      } ]
    }, {
      "id": "MedicationDispense.authorizingPrescription",
      "path": "MedicationDispense.authorizingPrescription",
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-MedicationAgreement"
      } ],
      "alias": [ "Medicatieafspraak" ],
      "short": "MedicationAgreement",
      "mapping": [ {
        "map": "NL-CM:9.8.22394",
        "comment": "MedicationAgreement",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "definition": "Relationship to the medication agreement on which the administration agreement is based."
    }, {
      "id": "MedicationDispense.note",
      "path": "MedicationDispense.note",
      "alias": [ "Toelichting" ],
      "short": "Comment",
      "mapping": [ {
        "map": "NL-CM:9.8.22275",
        "comment": "Comment",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      } ],
      "definition": "Comments on the administration agreement."
    }, {
      "id": "MedicationDispense.dosageInstruction",
      "path": "MedicationDispense.dosageInstruction",
      "type": [ {
        "code": "Dosage",
        "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-InstructionsForUse"
      } ],
      "mapping": [ {
        "map": "NL-CM:9.8.22098",
        "comment": "InstructionsForUse",
        "identity": "hcim-administrationagreement-v1.0.1-2017EN"
      }, {
        "map": "NL-CM:0.0.14",
        "comment": "DateTime",
        "identity": "hcim-basicelements-v1.0-2017EN"
      } ]
    } ]
  },
  "contact": [ {
    "name": "Nictiz",
    "telecom": [ {
      "use": "work",
      "value": "https://www.nictiz.nl",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationDispense"
}