PackagesCanonicalsLogsProblems
    Packages
    synapxe.nehr@1.0.0
    https://fhir.synapxe.sg/StructureDefinition/profile-medicationadministration
description: null
package_name: synapxe.nehr
derivation: constraint
name: MedicationAdministration
type: MedicationAdministration
elements:
  category: {index: 17}
  request: {index: 35}
  eventHistory: {index: 61}
  dosage:
    index: 45
    elements:
      id: {index: 46}
      extension: {index: 47}
      modifierExtension: {index: 48}
      site: {index: 49}
      method: {index: 50}
      dose:
        index: 51
        elements:
          id: {index: 52}
          extension: {index: 53}
          value: {index: 54}
          unit: {index: 55}
          system: {index: 56}
          code: {index: 57}
        extensions: {}
        required: [code, system, unit, value]
      rate:
        choices: [rateQuantity]
        index: 59
      rateQuantity: {type: Quantity, choiceOf: rate, index: 60}
    extensions: {}
    required: [dose]
  encounter: {index: 24}
  occurenceDateTime: {type: dateTime, choiceOf: occurence, index: 28}
  subPotentReason: {index: 31}
  isSubPotent: {index: 30}
  statusReason: {index: 16}
  recorded: {index: 29}
  note:
    elements:
      author:
        choices: [authorReference, authorString]
        index: 42
      authorReference:
        type: Reference
        choiceOf: author
        refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-practitioner']
        index: 43
      authorString: {type: string, choiceOf: author, index: 44}
  reason: {index: 34}
  extension: {index: 3}
  contained:
    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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = ''#'').exists() or descendants().where(ofType(canonical) = ''#'').exists() or descendants().where(ofType(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()}
    short: Definition of a Medication
    type: Resource
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: type, type: value}
      min: 1
      slices:
        Medication:
          match: {type: null}
          schema: {type: Resource, short: 'Contained, inline Resources', _required: true, index: 1}
          min: 1
          max: 1
        Device:
          match: {type: null}
          schema: {type: Resource, short: 'Contained, inline Resources', index: 2}
          max: 1
  supportingInformation: {index: 25}
  occurence:
    choices: [occurenceDateTime]
    index: 27
  identifier:
    index: 5
    elements:
      id: {index: 6}
      extension: {index: 7}
      use: {index: 8}
      type: {index: 9}
      system: {index: 10}
      value: {index: 11}
      period: {index: 12}
      assigner: {index: 13}
    extensions: {}
    required: [system, value]
  device:
    type: CodeableReference
    index: 36
    elements:
      id: {index: 37}
      extension: {index: 38}
      concept: {index: 39}
      reference: {index: 40}
    extensions: {}
    required: [reference]
  basedOn: {index: 14}
  partOf: {index: 15}
  subject:
    type: Reference
    refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-patient']
    index: 23
  modifierExtension: {index: 4}
  performer:
    index: 32
    elements:
      actor: {type: CodeableReference, index: 33}
  medication:
    type: CodeableReference
    index: 18
    elements:
      id: {index: 19}
      extension: {index: 20}
      concept: {index: 21}
      reference:
        type: Reference
        refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-medication']
        index: 22
    extensions: {}
    required: [reference]
package_version: 1.0.0
extensions: {}
class: profile
kind: resource
url: https://fhir.synapxe.sg/StructureDefinition/profile-medicationadministration
base: http://hl7.org/fhir/StructureDefinition/MedicationAdministration
version: null
required: [contained, dosage, identifier, performer]