PackagesCanonicalsLogsProblems
    Packages
    rs/iknl.fhir.nl.r4.ncr@ehr.r4-1.2.0
    http://fhir.iknl.nl/fhir/iknl-ncr-ehr-r4/StructureDefinition/ncr-ehr-medication-agreement
description: null
package_name: rs/iknl.fhir.nl.r4.ncr
derivation: constraint
name: NcrEhrMedicationAgreement
type: MedicationRequest
elements:
  status:
    pattern: {type: code, value: completed}
    type: code
    index: 0
  intent:
    pattern: {type: code, value: order}
    type: code
    index: 1
  medication:
    mustSupport: true
    choices: [medicationReference]
    index: 3
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            mustSupport: true
            choices: [medicationReference]
            _required: true
            index: 3
          min: 1
  medicationReference:
    type: Reference
    mustSupport: true
    choiceOf: medication
    refers: ['http://fhir.iknl.nl/fhir/iknl-ncr-ehr-r4/StructureDefinition/ncr-ehr-medication']
    index: 4
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            type: Reference
            mustSupport: true
            choiceOf: medication
            refers: ['http://fhir.iknl.nl/fhir/iknl-ncr-ehr-r4/StructureDefinition/ncr-ehr-medication']
            _required: true
            index: 4
          min: 1
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://fhir.iknl.nl/fhir/iknl-ncr-ehr-r4/StructureDefinition/ncr-ehr-patient']
    index: 5
  reasonReference:
    type: Reference
    mustSupport: true
    refers: ['http://fhir.iknl.nl/fhir/iknl-ncr-ehr-r4/StructureDefinition/ncr-ehr-condition']
    index: 6
package_version: ehr.r4-1.2.0
class: profile
kind: resource
url: http://fhir.iknl.nl/fhir/iknl-ncr-ehr-r4/StructureDefinition/ncr-ehr-medication-agreement
base: http://nictiz.nl/fhir/StructureDefinition/mp-MedicationAgreement
version: 1.2.0
required: [medication, medicationReference, reasonReference]