PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-emed-epr@1.0.0
    http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-dosage-split
{
  "description": "Definition of the split dosage element",
  "_filename": "StructureDefinition-ch-emed-epr-dosage-split.json",
  "package_name": "ch.fhir.ig.ch-emed-epr",
  "date": "2024-01-26T09:51:05+01:00",
  "derivation": "constraint",
  "publisher": "CARA",
  "fhirVersion": "4.0.1",
  "jurisdiction": [ {
    "coding": [ {
      "code": "CH",
      "system": "urn:iso:std:iso:3166",
      "display": "Switzerland"
    } ]
  } ],
  "name": "CHEMEDEPRDosageSplit",
  "mapping": [ {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/v2",
    "name": "HL7 v2 Mapping",
    "identity": "v2"
  } ],
  "abstract": false,
  "copyright": "CC0-1.0",
  "type": "Dosage",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "Dosage Split",
  "package_version": "1.0.0",
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage",
      "min": 0,
      "definition": "Indicates how the medication is/was taken or should be taken by the patient.",
      "isModifier": false,
      "short": "CH EMED Dosage Split (MedicationStatement / MedicationDispense / MedicationRequest)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": ".outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=INT]",
        "identity": "rim"
      } ],
      "max": "*",
      "id": "Dosage",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Dosage"
      }
    }, {
      "path": "Dosage.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Dosage.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Dosage.extension",
      "min": 0,
      "definition": "Implementers should not set or read this element. \nThis element is only kept as optional to allow submission of documents that would contain a value, \nsince those documents are still readable by others.\nThe meaning of this element is undefined in this profile.",
      "isModifier": false,
      "short": "✕ This element is not supported",
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Dosage.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Dosage.modifierExtension",
      "min": 0,
      "definition": "An Extension",
      "isModifier": true,
      "short": "Extension",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "0",
      "id": "Dosage.modifierExtension",
      "comment": "All modifiers SHALL be documented in the profile, in order to be usable.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ch-dosage-2",
        "human": "The sequence number must be greater than 1",
        "source": "http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-split",
        "severity": "error",
        "expression": "$this > 1"
      } ],
      "path": "Dosage.sequence",
      "requirements": "If the sequence number of multiple Dosages is the same, then it is implied that the instructions are to be treated as concurrent.  If the sequence number is different, then the Dosages are intended to be sequential.",
      "min": 1,
      "definition": "Indicates the order in which the dosage instructions should be applied or interpreted.",
      "isModifier": false,
      "short": "The order of the dosage instructions",
      "mapping": [ {
        "map": "TQ1-1",
        "identity": "v2"
      }, {
        "map": ".text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "integer"
      } ],
      "max": "1",
      "id": "Dosage.sequence",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.sequence"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.text",
      "requirements": "Free text dosage instructions can be used for cases where the instructions are too complex to code.  The content of this attribute does not include the name or description of the medication. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication. It is expected that the text instructions will always be populated.  If the dosage.timing attribute is also populated, then the dosage.text should reflect the same information as the timing.  Additional information about administration or preparation of the medication should be included as text.",
      "min": 0,
      "definition": "Implementers should not set or read this element. \nThis element is only kept as optional to allow submission of documents that would contain a value, \nsince those documents are still readable by others.\nThe meaning of this element is undefined in this profile.",
      "isModifier": false,
      "short": "✕ This element is not supported",
      "mapping": [ {
        "map": "RXO-6; RXE-21",
        "identity": "v2"
      }, {
        "map": ".text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "0",
      "id": "Dosage.text",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.text"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.additionalInstruction",
      "requirements": "Additional instruction is intended to be coded, but where no code exists, the element could include text.  For example, \"Swallow with plenty of water\" which might or might not be coded.",
      "min": 0,
      "definition": "Supplemental instructions to the patient on how to take the medication  (e.g. \"with meals\" or\"take half to one hour before food\") or warnings for the patient about the medication (e.g. \"may cause drowsiness\" or \"avoid exposure of skin to direct sunlight or sunlamps\").",
      "isModifier": false,
      "short": "Supplemental instruction or warnings to the patient - e.g. \"with meals\", \"may cause drowsiness\"",
      "mapping": [ {
        "map": "RXO-7",
        "identity": "v2"
      }, {
        "map": ".text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/additional-instruction-codes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "AdditionalInstruction"
        } ],
        "description": "A coded concept identifying additional instructions such as \"take with water\" or \"avoid operating heavy machinery\"."
      },
      "max": "0",
      "id": "Dosage.additionalInstruction",
      "comment": "Information about administration or preparation of the medication (e.g. \"infuse as rapidly as possibly via intraperitoneal port\" or \"immediately following drug x\") should be populated in dosage.text.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Dosage.additionalInstruction"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.patientInstruction",
      "min": 0,
      "definition": "Instructions in terms that are understood by the patient or consumer.",
      "isModifier": false,
      "short": "Patient or consumer oriented instructions",
      "mapping": [ {
        "map": "RXO-7",
        "identity": "v2"
      }, {
        "map": ".text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "0",
      "id": "Dosage.patientInstruction",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.patientInstruction"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.timing",
      "requirements": "The timing schedule for giving the medication to the patient. This  data type allows many different expressions. For example: \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\".  Sometimes, a rate can imply duration when expressed as total volume / duration (e.g.  500mL/2 hours implies a duration of 2 hours).  However, when rate doesn't imply duration (e.g. 250mL/hour), then the timing.repeat.duration is needed to convey the infuse over time period.",
      "min": 1,
      "definition": "When medication should be administered.",
      "isModifier": false,
      "short": "When medication should be administered",
      "mapping": [ {
        "map": ".effectiveTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Timing"
      } ],
      "max": "1",
      "id": "Dosage.timing",
      "comment": "This attribute might not always be populated while the Dosage.text is expected to be populated.  If both are populated, then the Dosage.text should reflect the content of the Dosage.timing.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.timing"
      },
      "isSummary": true
    }, {
      "path": "Dosage.timing.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Dosage.timing.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Dosage.timing.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Dosage.timing.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Dosage.timing.modifierExtension",
      "min": 0,
      "definition": "An Extension",
      "isModifier": true,
      "short": "Extension",
      "type": [ {
        "code": "Extension"
      } ],
      "max": "0",
      "id": "Dosage.timing.modifierExtension",
      "comment": "All modifiers SHALL be documented in the profile, in order to be usable.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.timing.event",
      "requirements": "In a Medication Administration Record, for instance, you need to take a general specification, and turn it into a precise specification.",
      "min": 0,
      "definition": "Implementers should not set or read this element. \nThis element is only kept as optional to allow submission of documents that would contain a value, \nsince those documents are still readable by others.\nThe meaning of this element is undefined in this profile.",
      "isModifier": false,
      "short": "✕ This element is not supported",
      "mapping": [ {
        "map": "QLIST",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "max": "*",
      "id": "Dosage.timing.event",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Timing.event"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "tim-1",
        "human": "if there's a duration, there needs to be duration units",
        "xpath": "not(exists(f:duration)) or exists(f:durationUnit)",
        "source": "http://hl7.org/fhir/StructureDefinition/Dosage",
        "severity": "error",
        "expression": "duration.empty() or durationUnit.exists()"
      }, {
        "key": "tim-2",
        "human": "if there's a period, there needs to be period units",
        "xpath": "not(exists(f:period)) or exists(f:periodUnit)",
        "source": "http://hl7.org/fhir/StructureDefinition/Dosage",
        "severity": "error",
        "expression": "period.empty() or periodUnit.exists()"
      }, {
        "key": "tim-4",
        "human": "duration SHALL be a non-negative value",
        "xpath": "f:duration/@value >= 0 or not(f:duration/@value)",
        "source": "http://hl7.org/fhir/StructureDefinition/Dosage",
        "severity": "error",
        "expression": "duration.exists() implies duration >= 0"
      }, {
        "key": "tim-5",
        "human": "period SHALL be a non-negative value",
        "xpath": "f:period/@value >= 0 or not(f:period/@value)",
        "source": "http://hl7.org/fhir/StructureDefinition/Dosage",
        "severity": "error",
        "expression": "period.exists() implies period >= 0"
      }, {
        "key": "tim-6",
        "human": "If there's a periodMax, there must be a period",
        "xpath": "not(exists(f:periodMax)) or exists(f:period)",
        "source": "http://hl7.org/fhir/StructureDefinition/Dosage",
        "severity": "error",
        "expression": "periodMax.empty() or period.exists()"
      }, {
        "key": "tim-7",
        "human": "If there's a durationMax, there must be a duration",
        "xpath": "not(exists(f:durationMax)) or exists(f:duration)",
        "source": "http://hl7.org/fhir/StructureDefinition/Dosage",
        "severity": "error",
        "expression": "durationMax.empty() or duration.exists()"
      }, {
        "key": "tim-8",
        "human": "If there's a countMax, there must be a count",
        "xpath": "not(exists(f:countMax)) or exists(f:count)",
        "source": "http://hl7.org/fhir/StructureDefinition/Dosage",
        "severity": "error",
        "expression": "countMax.empty() or count.exists()"
      }, {
        "key": "tim-9",
        "human": "If there's an offset, there must be a when (and not C, CM, CD, CV)",
        "xpath": "not(exists(f:offset)) or exists(f:when)",
        "source": "http://hl7.org/fhir/StructureDefinition/Dosage",
        "severity": "error",
        "expression": "offset.empty() or (when.exists() and ((when in ('C' | 'CM' | 'CD' | 'CV')).not()))"
      }, {
        "key": "tim-10",
        "human": "If there's a timeOfDay, there cannot be a when, or vice versa",
        "xpath": "not(exists(f:timeOfDay)) or not(exists(f:when))",
        "source": "http://hl7.org/fhir/StructureDefinition/Dosage",
        "severity": "error",
        "expression": "timeOfDay.empty() or when.empty()"
      } ],
      "path": "Dosage.timing.repeat",
      "requirements": "Many timing schedules are determined by regular repetitions.",
      "min": 1,
      "definition": "A set of rules that describe when the event is scheduled.",
      "isModifier": false,
      "short": "When the event is to occur",
      "mapping": [ {
        "map": "Implies PIVL or EIVL",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Element"
      } ],
      "max": "1",
      "id": "Dosage.timing.repeat",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Timing.repeat"
      },
      "isSummary": true
    }, {
      "path": "Dosage.timing.repeat.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Dosage.timing.repeat.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Dosage.timing.repeat.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Dosage.timing.repeat.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.timing.repeat.bounds[x]",
      "min": 0,
      "definition": "Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.",
      "isModifier": false,
      "short": "Length/Range of lengths, or (Start and/or end) limits",
      "mapping": [ {
        "map": "IVL(TS) used in a QSI",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "closed",
        "ordered": false,
        "discriminator": [ {
          "path": "$this",
          "type": "type"
        } ]
      },
      "type": [ {
        "code": "Period"
      } ],
      "max": "1",
      "id": "Dosage.timing.repeat.bounds[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Timing.repeat.bounds[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.timing.repeat.bounds[x]",
      "min": 0,
      "definition": "Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.",
      "isModifier": false,
      "short": "Length/Range of lengths, or (Start and/or end) limits",
      "mapping": [ {
        "map": "IVL(TS) used in a QSI",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "sliceName": "boundsPeriod",
      "max": "0",
      "id": "Dosage.timing.repeat.bounds[x]:boundsPeriod",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Timing.repeat.bounds[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.timing.repeat.count",
      "requirements": "Repetitions may be limited by end time or total occurrences.",
      "min": 0,
      "definition": "A total count of the desired number of repetitions across the duration of the entire timing specification. If countMax is present, this element indicates the lower bound of the allowed range of count values.",
      "isModifier": false,
      "short": "Number of times to repeat",
      "mapping": [ {
        "map": "PIVL.count",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "positiveInt"
      } ],
      "max": "1",
      "id": "Dosage.timing.repeat.count",
      "comment": "If you have both bounds and count, then this should be understood as within the bounds period, until count times happens.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Timing.repeat.count"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.timing.repeat.countMax",
      "min": 0,
      "definition": "If present, indicates that the count is a range - so to perform the action between [count] and [countMax] times.",
      "isModifier": false,
      "short": "Maximum number of times to repeat",
      "mapping": [ {
        "map": "PIVL.count",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "positiveInt"
      } ],
      "max": "1",
      "id": "Dosage.timing.repeat.countMax",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Timing.repeat.countMax"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.timing.repeat.duration",
      "requirements": "Some activities are not instantaneous and need to be maintained for a period of time.",
      "min": 0,
      "definition": "How long this thing happens for when it happens. If durationMax is present, this element indicates the lower bound of the allowed range of the duration.",
      "isModifier": false,
      "short": "How long when it happens",
      "mapping": [ {
        "map": "PIVL.phase",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "decimal"
      } ],
      "max": "1",
      "id": "Dosage.timing.repeat.duration",
      "comment": "For some events the duration is part of the definition of the event (e.g. IV infusions, where the duration is implicit in the specified quantity and rate). For others, it's part of the timing specification (e.g. exercise).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Timing.repeat.duration"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.timing.repeat.durationMax",
      "requirements": "Some activities are not instantaneous and need to be maintained for a period of time.",
      "min": 0,
      "definition": "If present, indicates that the duration is a range - so to perform the action between [duration] and [durationMax] time length.",
      "isModifier": false,
      "short": "How long when it happens (Max)",
      "mapping": [ {
        "map": "PIVL.phase",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "decimal"
      } ],
      "max": "1",
      "id": "Dosage.timing.repeat.durationMax",
      "comment": "For some events the duration is part of the definition of the event (e.g. IV infusions, where the duration is implicit in the specified quantity and rate). For others, it's part of the timing specification (e.g. exercise).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Timing.repeat.durationMax"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.timing.repeat.durationUnit",
      "min": 0,
      "definition": "The units of time for the duration, in UCUM units.",
      "isModifier": false,
      "short": "s | min | h | d | wk | mo | a - unit of time (UCUM)",
      "mapping": [ {
        "map": "PIVL.phase.unit",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/units-of-time|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "UnitsOfTime"
        } ],
        "description": "A unit of time (units from UCUM)."
      },
      "max": "1",
      "id": "Dosage.timing.repeat.durationUnit",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Timing.repeat.durationUnit"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.timing.repeat.frequency",
      "min": 0,
      "definition": "The number of times to repeat the action within the specified period. If frequencyMax is present, this element indicates the lower bound of the allowed range of the frequency.",
      "isModifier": false,
      "short": "Event occurs frequency times per period",
      "mapping": [ {
        "map": "PIVL.phase",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "positiveInt"
      } ],
      "meaningWhenMissing": "If no frequency is stated, the assumption is that the event occurs once per period, but systems SHOULD always be specific about this",
      "max": "1",
      "id": "Dosage.timing.repeat.frequency",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Timing.repeat.frequency"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.timing.repeat.frequencyMax",
      "min": 0,
      "definition": "If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range.",
      "isModifier": false,
      "short": "Event occurs up to frequencyMax times per period",
      "mapping": [ {
        "map": "PIVL.phase",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "positiveInt"
      } ],
      "max": "1",
      "id": "Dosage.timing.repeat.frequencyMax",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Timing.repeat.frequencyMax"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.timing.repeat.period",
      "min": 0,
      "definition": "Indicates the duration of time over which repetitions are to occur; e.g. to express \"3 times per day\", 3 would be the frequency and \"1 day\" would be the period. If periodMax is present, this element indicates the lower bound of the allowed range of the period length.",
      "isModifier": false,
      "short": "Event occurs frequency times per period",
      "mapping": [ {
        "map": "PIVL.phase",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "decimal"
      } ],
      "max": "1",
      "id": "Dosage.timing.repeat.period",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Timing.repeat.period"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.timing.repeat.periodMax",
      "min": 0,
      "definition": "If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as \"do this once every 3-5 days.",
      "isModifier": false,
      "short": "Upper limit of period (3-4 hours)",
      "mapping": [ {
        "map": "PIVL.phase",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "decimal"
      } ],
      "max": "1",
      "id": "Dosage.timing.repeat.periodMax",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Timing.repeat.periodMax"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.timing.repeat.periodUnit",
      "min": 0,
      "definition": "The units of time for the period in UCUM units.",
      "isModifier": false,
      "short": "s | min | h | d | wk | mo | a - unit of time (UCUM)",
      "mapping": [ {
        "map": "PIVL.phase.unit",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/units-of-time|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "UnitsOfTime"
        } ],
        "description": "A unit of time (units from UCUM)."
      },
      "max": "1",
      "id": "Dosage.timing.repeat.periodUnit",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Timing.repeat.periodUnit"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.timing.repeat.dayOfWeek",
      "min": 0,
      "definition": "If one or more days of week is provided, then the action happens only on the specified day(s).",
      "isModifier": false,
      "short": "mon | tue | wed | thu | fri | sat | sun",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/days-of-week|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "DayOfWeek"
        } ]
      },
      "max": "*",
      "id": "Dosage.timing.repeat.dayOfWeek",
      "comment": "If no days are specified, the action is assumed to happen every day as otherwise specified. The elements frequency and period cannot be used as well as dayOfWeek.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Timing.repeat.dayOfWeek"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.timing.repeat.timeOfDay",
      "min": 0,
      "definition": "Specified time of day for action to take place.",
      "isModifier": false,
      "short": "Time of day for action",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "time"
      } ],
      "max": "*",
      "id": "Dosage.timing.repeat.timeOfDay",
      "comment": "When time of day is specified, it is inferred that the action happens every day (as filtered by dayofWeek) on the specified times. The elements when, frequency and period cannot be used as well as timeOfDay.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Timing.repeat.timeOfDay"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ch-emed-event-timing",
        "human": "For the representation of the time of administration according to the 1-1-1-1 scheme, the values MORN-NOON-EVE-NIGHT are highly recommended.",
        "source": "http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-split",
        "severity": "warning",
        "expression": "$this='MORN' or $this='NOON' or $this='EVE' or $this='NIGHT'"
      }, {
        "key": "only-standard-event-timings",
        "human": "The timing event shall only be 'MORN', 'NOON', 'EVE' or 'NIGHT'.",
        "source": "http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-dosage-split",
        "severity": "error",
        "expression": "$this = 'MORN' or $this = 'NOON' or $this = 'EVE' or $this = 'NIGHT'"
      } ],
      "path": "Dosage.timing.repeat.when",
      "requirements": "Timings are frequently determined by occurrences such as waking, eating and sleep.",
      "min": 1,
      "definition": "An approximate time period during the day, potentially linked to an event of daily living that indicates when the action should occur.",
      "isModifier": false,
      "short": "... It shall only contain values from Event Timings",
      "mapping": [ {
        "map": "EIVL.event",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/event-timing|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "EventTiming"
        } ],
        "description": "Real world event relating to the schedule."
      },
      "max": "*",
      "id": "Dosage.timing.repeat.when",
      "comment": "When more than one event is listed, the event is tied to the union of the specified events.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Timing.repeat.when"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.timing.repeat.offset",
      "min": 0,
      "definition": "The number of minutes from the event. If the event code does not indicate whether the minutes is before or after the event, then the offset is assumed to be after the event.",
      "isModifier": false,
      "short": "Minutes from event (before or after)",
      "mapping": [ {
        "map": "EIVL.offset",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "unsignedInt"
      } ],
      "max": "1",
      "id": "Dosage.timing.repeat.offset",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Timing.repeat.offset"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.timing.code",
      "min": 0,
      "definition": "Implementers should not set or read this element. \nThis element is only kept as optional to allow submission of documents that would contain a value, \nsince those documents are still readable by others.\nThe meaning of this element is undefined in this profile.",
      "isModifier": false,
      "short": "✕ This element is not supported",
      "mapping": [ {
        "map": "QSC.code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/timing-abbreviation",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "TimingAbbreviation"
        } ],
        "description": "Code for a known / defined timing pattern."
      },
      "max": "1",
      "id": "Dosage.timing.code",
      "comment": "BID etc. are defined as 'at institutionally specified times'. For example, an institution may choose that BID is \"always at 7am and 6pm\".  If it is inappropriate for this choice to be made, the code BID should not be used. Instead, a distinct organization-specific code should be used in place of the HL7-defined BID code and/or a structured representation should be used (in this case, specifying the two event times).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Timing.code"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.asNeeded[x]",
      "min": 0,
      "definition": "Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).",
      "isModifier": false,
      "short": "Take \"as needed\" (for x)",
      "mapping": [ {
        "map": "TQ1-9",
        "identity": "v2"
      }, {
        "map": ".outboundRelationship[typeCode=PRCN].target[classCode=OBS, moodCode=EVN, code=\"as needed\"].value=boolean or codable concept",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "boolean"
      }, {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/medication-as-needed-reason",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationAsNeededReason"
        } ],
        "description": "A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose.  For example \"pain\", \"30 minutes prior to sexual intercourse\", \"on flare-up\" etc."
      },
      "max": "0",
      "id": "Dosage.asNeeded[x]",
      "comment": "Can express \"as needed\" without a reason by setting the Boolean = True.  In this case the CodeableConcept is not populated.  Or you can express \"as needed\" with a reason by including the CodeableConcept.  In this case the Boolean is assumed to be True.  If you set the Boolean to False, then the dose is given according to the schedule and is not \"prn\" or \"as needed\".",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.asNeeded[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.site",
      "requirements": "A coded specification of the anatomic site where the medication first enters the body.",
      "min": 0,
      "definition": "Body site to administer to.",
      "isModifier": false,
      "short": "Body site to administer to",
      "mapping": [ {
        "map": "RXR-2",
        "identity": "v2"
      }, {
        "map": ".approachSiteCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/approach-site-codes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationAdministrationSite"
        } ],
        "description": "A coded concept describing the site location the medicine enters into or onto the body."
      },
      "max": "0",
      "id": "Dosage.site",
      "comment": "If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [bodySite](http://hl7.org/fhir/R4/extension-bodysite.html).  May be a summary code, or a reference to a very precise definition of the location, or both.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.site"
      },
      "isSummary": true
    }, {
      "path": "Dosage.site.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Dosage.site.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Dosage.site.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Dosage.site.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.site.coding",
      "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
      "min": 0,
      "definition": "A reference to a code defined by a terminology system.",
      "isModifier": false,
      "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"
      } ],
      "type": [ {
        "code": "Coding"
      } ],
      "max": "*",
      "id": "Dosage.site.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
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.site.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": 1,
      "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.",
      "isModifier": false,
      "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": "Dosage.site.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
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.route",
      "requirements": "A code specifying the route or physiological path of administration of a therapeutic agent into or onto a patient's body.",
      "min": 0,
      "definition": "How drug should enter body.",
      "isModifier": false,
      "short": "How drug should enter body",
      "mapping": [ {
        "map": "RXR-1",
        "identity": "v2"
      }, {
        "map": ".routeCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/route-codes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "RouteOfAdministration"
        } ],
        "description": "A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject."
      },
      "max": "0",
      "id": "Dosage.route",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.route"
      },
      "isSummary": true
    }, {
      "path": "Dosage.route.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Dosage.route.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Dosage.route.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Dosage.route.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.route.coding",
      "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
      "min": 0,
      "definition": "A reference to a code defined by a terminology system.",
      "isModifier": false,
      "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"
      } ],
      "type": [ {
        "code": "Coding"
      } ],
      "max": "*",
      "id": "Dosage.route.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
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.route.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": 1,
      "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.",
      "isModifier": false,
      "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": "Dosage.route.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
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.method",
      "requirements": "A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections.  For examples, Slow Push; Deep IV.",
      "min": 0,
      "definition": "Technique for administering medication.",
      "isModifier": false,
      "short": "Technique for administering medication",
      "mapping": [ {
        "map": "RXR-4",
        "identity": "v2"
      }, {
        "map": ".doseQuantity",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/administration-method-codes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "MedicationAdministrationMethod"
        } ],
        "description": "A coded concept describing the technique by which the medicine is administered."
      },
      "max": "0",
      "id": "Dosage.method",
      "comment": "Terminologies used often pre-coordinate this term with the route and or form of administration.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.method"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.doseAndRate",
      "min": 1,
      "definition": "The amount of medication administered.",
      "isModifier": false,
      "short": "Amount of medication administered",
      "mapping": [ {
        "map": "TQ1-2",
        "identity": "v2"
      } ],
      "type": [ {
        "code": "Element"
      } ],
      "max": "1",
      "id": "Dosage.doseAndRate",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Dosage.doseAndRate"
      },
      "isSummary": true
    }, {
      "path": "Dosage.doseAndRate.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Dosage.doseAndRate.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Dosage.doseAndRate.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Dosage.doseAndRate.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.doseAndRate.type",
      "requirements": "If the type is not populated, assume to be \"ordered\".",
      "min": 0,
      "definition": "Implementers should not set or read this element. \nThis element is only kept as optional to allow submission of documents that would contain a value, \nsince those documents are still readable by others.\nThe meaning of this element is undefined in this profile.",
      "isModifier": false,
      "short": "✕ This element is not supported",
      "mapping": [ {
        "map": "RXO-21; RXE-23",
        "identity": "v2"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/dose-rate-type",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "DoseAndRateType"
        } ],
        "description": "The kind of dose or rate specified."
      },
      "max": "1",
      "id": "Dosage.doseAndRate.type",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.doseAndRate.type"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.doseAndRate.dose[x]",
      "requirements": "The amount of therapeutic or other substance given at one administration event.",
      "min": 1,
      "definition": "Amount of medication per dose.",
      "isModifier": false,
      "short": "Amount of medication per dose",
      "mapping": [ {
        "map": "RXO-2, RXE-3",
        "identity": "v2"
      }, {
        "map": ".doseQuantity",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "closed",
        "ordered": false,
        "discriminator": [ {
          "path": "$this",
          "type": "type"
        } ]
      },
      "type": [ {
        "code": "Range",
        "profile": [ "http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-range" ]
      }, {
        "code": "Quantity",
        "profile": [ "http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-quantity" ]
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Dosage.doseAndRate.dose[x]",
      "comment": "Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug XYZ. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.doseAndRate.dose[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "qty-3",
        "human": "If a code for the unit is present, the system SHALL also be present",
        "xpath": "not(exists(f:code)) or exists(f:system)",
        "source": "http://hl7.org/fhir/StructureDefinition/Quantity",
        "severity": "error",
        "expression": "code.empty() or system.exists()"
      }, {
        "key": "sqty-1",
        "human": "The comparator is not used on a SimpleQuantity",
        "xpath": "not(exists(f:comparator))",
        "source": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity",
        "severity": "error",
        "expression": "comparator.empty()"
      } ],
      "path": "Dosage.doseAndRate.dose[x]",
      "requirements": "The amount of therapeutic or other substance given at one administration event.",
      "min": 0,
      "definition": "The comparator is not used on a SimpleQuantity",
      "isModifier": false,
      "short": "A fixed quantity (no comparator)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "SN (see also Range) or CQ",
        "identity": "v2"
      }, {
        "map": "PQ, IVL, MO, CO, depending on the values",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-amount-quantity" ]
      } ],
      "mustSupport": true,
      "sliceName": "doseQuantity",
      "max": "1",
      "id": "Dosage.doseAndRate.dose[x]:doseQuantity",
      "condition": [ "ele-1" ],
      "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.doseAndRate.dose[x]"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "rng-2",
        "human": "If present, low SHALL have a lower value than high",
        "xpath": "not(exists(f:low/f:value/@value)) or not(exists(f:high/f:value/@value)) or (number(f:low/f:value/@value) <= number(f:high/f:value/@value))",
        "source": "http://hl7.org/fhir/StructureDefinition/Range",
        "severity": "error",
        "expression": "low.empty() or high.empty() or (low <= high)"
      } ],
      "path": "Dosage.doseAndRate.dose[x]",
      "requirements": "The amount of therapeutic or other substance given at one administration event.",
      "min": 0,
      "definition": "A set of ordered Quantities defined by a low and high limit.",
      "isModifier": false,
      "short": "Set of values bounded by low and high",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "NR and also possibly SN (but see also quantity)",
        "identity": "v2"
      }, {
        "map": "IVL [lowClosed=\"true\" and highClosed=\"true\"]or URG",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Range",
        "profile": [ "http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-amount-range" ]
      } ],
      "mustSupport": true,
      "sliceName": "doseRange",
      "max": "1",
      "id": "Dosage.doseAndRate.dose[x]:doseRange",
      "condition": [ "ele-1" ],
      "comment": "The stated low and high value are assumed to have arbitrarily high precision when it comes to determining which values are in the range. I.e. 1.99 is not in the range 2 -> 3.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.doseAndRate.dose[x]"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "rat-1",
        "human": "Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present",
        "xpath": "(count(f:numerator) = count(f:denominator)) and ((count(f:numerator) > 0) or (count(f:extension) > 0))",
        "source": "http://hl7.org/fhir/StructureDefinition/Ratio",
        "severity": "error",
        "expression": "(numerator.empty() xor denominator.exists()) and (numerator.exists() or extension.exists())"
      } ],
      "path": "Dosage.doseAndRate.rate[x]",
      "requirements": "Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr.  May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours.   Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.  Sometimes, a rate can imply duration when expressed as total volume / duration (e.g.  500mL/2 hours implies a duration of 2 hours).  However, when rate doesn't imply duration (e.g. 250mL/hour), then the timing.repeat.duration is needed to convey the infuse over time period.",
      "min": 0,
      "definition": "A relationship of two Quantity values - expressed as a numerator and a denominator.",
      "isModifier": false,
      "short": "A ratio of two Quantity values - a numerator and a denominator",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "RTO",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Ratio",
        "profile": [ "http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-ratio-amount-per-time" ]
      } ],
      "max": "1",
      "id": "Dosage.doseAndRate.rate[x]",
      "condition": [ "ele-1" ],
      "comment": "The Ratio datatype should only be used to express a relationship of two numbers if the relationship cannot be suitably expressed using a Quantity and a common unit.  Where the denominator value is known to be fixed to \"1\", Quantity should be used instead of Ratio.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.doseAndRate.rate[x]"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.maxDosePerPeriod",
      "requirements": "The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time.  For example, 1000mg in 24 hours.",
      "min": 0,
      "definition": "Upper limit on medication per unit of time.",
      "isModifier": false,
      "short": "Upper limit on medication per unit of time",
      "mapping": [ {
        "map": "RXO-23, RXE-19",
        "identity": "v2"
      }, {
        "map": ".maxDoseQuantity",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Ratio"
      } ],
      "max": "0",
      "id": "Dosage.maxDosePerPeriod",
      "comment": "This is intended for use as an adjunct to the dosage when there is an upper cap.  For example \"2 tablets every 4 hours to a maximum of 8/day\".",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.maxDosePerPeriod"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.maxDosePerAdministration",
      "requirements": "The maximum total quantity of a therapeutic substance that may be administered to a subject per administration.",
      "min": 0,
      "definition": "Upper limit on medication per administration.",
      "isModifier": false,
      "short": "Upper limit on medication per administration",
      "mapping": [ {
        "map": "not supported",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ]
      } ],
      "max": "0",
      "id": "Dosage.maxDosePerAdministration",
      "comment": "This is intended for use as an adjunct to the dosage when there is an upper cap.  For example, a body surface area related dose with a maximum amount, such as 1.5 mg/m2 (maximum 2 mg) IV over 5 – 10 minutes would have doseQuantity of 1.5 mg/m2 and maxDosePerAdministration of 2 mg.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.maxDosePerAdministration"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Dosage.maxDosePerLifetime",
      "requirements": "The maximum total quantity of a therapeutic substance that may be administered per lifetime of the subject.",
      "min": 0,
      "definition": "Upper limit on medication per lifetime of the patient.",
      "isModifier": false,
      "short": "Upper limit on medication per lifetime of the patient",
      "mapping": [ {
        "map": "not supported",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ]
      } ],
      "max": "0",
      "id": "Dosage.maxDosePerLifetime",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Dosage.maxDosePerLifetime"
      },
      "isSummary": true
    } ]
  },
  "status": "draft",
  "id": "ade1d3fd-3d7b-474a-8d06-6ebe17a6d0b1",
  "kind": "complex-type",
  "url": "http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-dosage-split",
  "version": "1.0.0",
  "differential": {
    "element": [ {
      "id": "Dosage.extension",
      "path": "Dosage.extension",
      "short": "✕ This element is not supported",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode": "draft"
      } ],
      "definition": "Implementers should not set or read this element. \nThis element is only kept as optional to allow submission of documents that would contain a value, \nsince those documents are still readable by others.\nThe meaning of this element is undefined in this profile."
    }, {
      "id": "Dosage.modifierExtension",
      "max": "0",
      "path": "Dosage.modifierExtension",
      "comment": "...All modifiers SHALL be documented in the profile, in order to be usable."
    }, {
      "id": "Dosage.text",
      "path": "Dosage.text",
      "short": "✕ This element is not supported",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode": "draft"
      } ],
      "definition": "Implementers should not set or read this element. \nThis element is only kept as optional to allow submission of documents that would contain a value, \nsince those documents are still readable by others.\nThe meaning of this element is undefined in this profile."
    }, {
      "id": "Dosage.timing.modifierExtension",
      "max": "0",
      "path": "Dosage.timing.modifierExtension",
      "comment": "...All modifiers SHALL be documented in the profile, in order to be usable."
    }, {
      "id": "Dosage.timing.event",
      "path": "Dosage.timing.event",
      "short": "✕ This element is not supported",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode": "draft"
      } ],
      "definition": "Implementers should not set or read this element. \nThis element is only kept as optional to allow submission of documents that would contain a value, \nsince those documents are still readable by others.\nThe meaning of this element is undefined in this profile."
    }, {
      "id": "Dosage.timing.repeat.bounds[x]",
      "path": "Dosage.timing.repeat.bounds[x]",
      "type": [ {
        "code": "Period"
      } ]
    }, {
      "id": "Dosage.timing.repeat.when",
      "path": "Dosage.timing.repeat.when",
      "short": "... It shall only contain values from Event Timings",
      "constraint": [ {
        "key": "only-standard-event-timings",
        "human": "The timing event shall only be 'MORN', 'NOON', 'EVE' or 'NIGHT'.",
        "source": "http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-dosage-split",
        "severity": "error",
        "expression": "$this = 'MORN' or $this = 'NOON' or $this = 'EVE' or $this = 'NIGHT'"
      } ]
    }, {
      "id": "Dosage.timing.code",
      "path": "Dosage.timing.code",
      "short": "✕ This element is not supported",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode": "draft"
      } ],
      "definition": "Implementers should not set or read this element. \nThis element is only kept as optional to allow submission of documents that would contain a value, \nsince those documents are still readable by others.\nThe meaning of this element is undefined in this profile."
    }, {
      "id": "Dosage.site.text",
      "min": 1,
      "path": "Dosage.site.text"
    }, {
      "id": "Dosage.route.text",
      "min": 1,
      "path": "Dosage.route.text"
    }, {
      "id": "Dosage.doseAndRate.type",
      "path": "Dosage.doseAndRate.type",
      "short": "✕ This element is not supported",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode": "draft"
      } ],
      "definition": "Implementers should not set or read this element. \nThis element is only kept as optional to allow submission of documents that would contain a value, \nsince those documents are still readable by others.\nThe meaning of this element is undefined in this profile."
    }, {
      "id": "Dosage.doseAndRate.dose[x]",
      "path": "Dosage.doseAndRate.dose[x]",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "$this",
          "type": "type"
        } ]
      }
    }, {
      "id": "Dosage.doseAndRate.dose[x]:doseQuantity",
      "max": "1",
      "min": 0,
      "path": "Dosage.doseAndRate.dose[x]",
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-amount-quantity" ]
      } ],
      "sliceName": "doseQuantity"
    }, {
      "id": "Dosage.doseAndRate.dose[x]:doseRange",
      "max": "1",
      "min": 0,
      "path": "Dosage.doseAndRate.dose[x]",
      "type": [ {
        "code": "Range",
        "profile": [ "http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-amount-range" ]
      } ],
      "sliceName": "doseRange"
    }, {
      "id": "Dosage.doseAndRate.rate[x]",
      "path": "Dosage.doseAndRate.rate[x]",
      "type": [ {
        "code": "Ratio",
        "profile": [ "http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-ratio-amount-per-time" ]
      } ]
    } ]
  },
  "contact": [ {
    "name": "CARA",
    "telecom": [ {
      "value": "https://www.cara.ch",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-dosage-split"
}