PackagesCanonicalsLogsProblems
    Packages
    fhir.ph.core@0.2.0
    https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-medicationrequest
description: Captures key FHIR Medication Request data for the Philippine context.
package_name: fhir.ph.core
derivation: constraint
name: PHCoreMedicationRequest
type: MedicationRequest
elements:
  performerType:
    mustSupport: true
    index: 20
    elements:
      coding: {mustSupport: true, index: 21}
      text: {mustSupport: true, index: 22}
  category:
    mustSupport: true
    index: 3
    elements:
      coding: {mustSupport: true, index: 4}
      text: {mustSupport: true, index: 5}
  substitution:
    elements:
      allowed:
        choices: []
        index: 33
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: $this, type: type}
          min: null
          slices:
            allowedCodeableConcept:
              match: {}
              schema:
                mustSupport: true
                choices: [allowedCodeableConcept]
                index: 35
              min: 0
              max: 1
      allowedCodeableConcept:
        type: CodeableConcept
        mustSupport: true
        choiceOf: allowed
        index: 36
        slicing:
          slices:
            allowedCodeableConcept:
              match: {}
              schema: {type: CodeableConcept, mustSupport: true, choiceOf: allowed, index: 36}
              min: 0
              max: 1
      allowed[x]:
        elements:
          coding: {mustSupport: true, index: 37}
          text: {mustSupport: true, index: 38}
      reason:
        mustSupport: true
        index: 39
        elements:
          coding: {mustSupport: true, index: 40}
          text: {mustSupport: true, index: 41}
  encounter:
    type: Reference
    refers: ['https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-encounter']
    index: 17
  medication[x]:
    elements:
      coding: {mustSupport: true, index: 14}
      text: {mustSupport: true, index: 15}
  reasonCode:
    mustSupport: true
    index: 24
    elements:
      coding: {mustSupport: true, index: 25}
      text: {mustSupport: true, index: 26}
  medicationCodeableConcept:
    type: CodeableConcept
    mustSupport: true
    choiceOf: medication
    index: 13
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, mustSupport: true, choiceOf: medication, index: 13}
          min: 0
          max: 1
  statusReason:
    mustSupport: true
    index: 0
    elements:
      coding: {mustSupport: true, index: 1}
      text: {mustSupport: true, index: 2}
  requester:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-organization', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-patient', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-practitioner', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-practitionerrole', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-relatedperson']
    index: 18
  recorder:
    type: Reference
    refers: ['https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-practitioner', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-practitionerrole']
    index: 23
  basedOn:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/CarePlan', 'http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation', 'http://hl7.org/fhir/StructureDefinition/ServiceRequest', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-medicationrequest']
    index: 28
  priorPrescription:
    type: Reference
    refers: ['https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-medicationrequest']
    index: 42
  medicationReference:
    type: Reference
    choiceOf: medication
    refers: ['https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-medication']
    index: 10
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            type: Reference
            choiceOf: medication
            refers: ['https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-medication']
            index: 10
          min: 0
          max: 1
  courseOfTherapyType:
    mustSupport: true
    index: 29
    elements:
      coding: {mustSupport: true, index: 30}
      text: {mustSupport: true, index: 31}
  subject:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Group', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-patient']
    index: 16
  performer:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/CareTeam', 'http://hl7.org/fhir/StructureDefinition/Device', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-organization', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-patient', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-practitioner', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-practitionerrole', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-relatedperson']
    index: 19
  medication:
    mustSupport: true
    choices: [medicationCodeableConcept]
    index: 12
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema:
            mustSupport: true
            choices: [medicationCodeableConcept]
            index: 12
          min: 0
          max: 1
  reasonReference:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Condition', 'https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-observation']
    index: 27
package_version: 0.2.0
class: profile
kind: resource
url: https://fhir.doh.gov.ph/phcore/StructureDefinition/ph-core-medicationrequest
base: http://hl7.org/fhir/StructureDefinition/MedicationRequest
version: 0.2.0