PackagesCanonicalsLogsProblems
    Packages
    rs/ca.on.dhdr.r4.v4@0.0.9-beta
    http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-MedicationAdministration-submission
description: null
package_name: rs/ca.on.dhdr.r4.v4
derivation: constraint
name: MedicationAdministration
type: MedicationAdministration
elements:
  category:
    binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/dhdr-dispense-category'}
    mustSupport: true
    index: 9
    elements:
      coding:
        mustSupport: true
        index: 10
        elements:
          system:
            pattern: {type: uri, value: 'http://ehealthontario.ca/fhir/CodeSystem/dispense-category'}
            mustSupport: true
            type: uri
            index: 11
          code:
            pattern: {type: code, value: drug}
            mustSupport: true
            type: code
            index: 12
          display: {mustSupport: true, index: 13}
        required: [code, display, system]
    required: [coding]
  request:
    type: Reference
    mustSupport: true
    refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-MedicationRequest-submission']
    index: 30
    elements:
      reference: {mustSupport: true, index: 31}
    required: [reference]
  meta:
    mustSupport: true
    index: 1
    elements:
      source: {mustSupport: true, index: 2}
      profile: {mustSupport: true, index: 3}
    required: [profile, source]
  dosage:
    mustSupport: true
    index: 34
    elements:
      text: {mustSupport: true, index: 35}
      route:
        mustSupport: true
        index: 36
        elements:
          coding:
            binding: {strength: required, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/routeofadministration'}
            mustSupport: true
            index: 37
            elements:
              system:
                pattern: {type: uri, value: 'http://snomed.info/sct'}
                mustSupport: true
                type: uri
                index: 38
              code: {mustSupport: true, index: 39}
              display: {mustSupport: true, index: 40}
            required: [code, display, system]
      method:
        mustSupport: true
        index: 41
        elements:
          coding:
            mustSupport: true
            index: 42
            elements:
              system: {mustSupport: true, index: 43}
              code: {mustSupport: true, index: 44}
              display: {mustSupport: true, index: 45}
            required: [code, display, system]
          text: {mustSupport: true, index: 46}
      dose:
        binding: {strength: extensible, valueSet: 'https://tgateway.infoway-inforoute.ca/vs/prescriptiondosequantityunit'}
        mustSupport: true
        index: 47
        elements:
          value: {mustSupport: true, index: 48}
          unit: {mustSupport: true, index: 49}
          system: {mustSupport: true, index: 50}
        required: [unit, value]
      rate:
        mustSupport: true
        choices: []
        index: 52
  medication[x]:
    elements:
      reference: {mustSupport: true, index: 17}
    required: [reference]
  note:
    mustSupport: true
    index: 32
    elements:
      text: {mustSupport: true, index: 33}
  effective[x]:
    elements:
      start: {mustSupport: true, index: 25}
      end: {mustSupport: true, index: 26}
    required: [start]
  contained:
    short: An interaction during which services are provided to the patient
    constraint:
      dom-2: {human: 'If the resource is contained in another resource, it SHALL NOT contain nested Resources', source: 'http://hl7.org/fhir/StructureDefinition/DomainResource', severity: error, expression: contained.contained.empty()}
      dom-4: {human: 'If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated', source: 'http://hl7.org/fhir/StructureDefinition/DomainResource', severity: error, expression: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()}
      dom-3: {human: 'If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource', source: 'http://hl7.org/fhir/StructureDefinition/DomainResource', severity: error, expression: 'contained.where(((''#''+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = ''#'').exists() or descendants().where(as(canonical) = ''#'').exists() or descendants().where(as(canonical) = ''#'').exists()).not()).trace(''unmatched'', id).empty()'}
      dom-6: {human: A resource should have narrative for robust management, source: 'http://hl7.org/fhir/StructureDefinition/DomainResource', severity: warning, expression: text.`div`.exists()}
      dom-5: {human: 'If a resource is contained in another resource, it SHALL NOT have a security label', source: 'http://hl7.org/fhir/StructureDefinition/DomainResource', severity: error, expression: contained.meta.security.empty()}
    index: 4
  status: {mustSupport: true, index: 8}
  effective:
    mustSupport: true
    choices: [effectivePeriod]
    index: 23
  id: {mustSupport: true, index: 0}
  identifier:
    mustSupport: true
    index: 5
    elements:
      system: {mustSupport: true, index: 6}
      value: {mustSupport: true, index: 7}
    required: [system, value]
  context:
    type: Reference
    mustSupport: true
    refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Encounter']
    index: 20
    elements:
      reference: {mustSupport: true, index: 21}
    required: [reference]
  medicationReference:
    type: Reference
    mustSupport: true
    choiceOf: medication
    refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Medication-submission']
    index: 16
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Patient-submission']
    index: 18
    elements:
      reference: {mustSupport: true, index: 19}
    required: [reference]
  performer:
    mustSupport: true
    index: 27
    elements:
      actor:
        type: Reference
        mustSupport: true
        refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-PractitionerRole-submission']
        index: 28
        elements:
          reference: {mustSupport: true, index: 29}
        required: [reference]
  effectivePeriod: {type: Period, mustSupport: true, choiceOf: effective, index: 24}
  medication:
    mustSupport: true
    choices: [medicationReference]
    index: 15
package_version: 0.0.9-beta
class: profile
kind: resource
url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-MedicationAdministration-submission
base: http://hl7.org/fhir/StructureDefinition/MedicationAdministration
version: 4.0.1
required: [category, context, identifier, meta, performer, request]