PackagesCanonicalsLogsProblems
    Packages
    IdHIE.0v@0.0.1
    http://fhir.hie.moh.gov.id/StructureDefinition/MedicationRequest-id-core
description: Defines constraints and extensions on the MedicationRequest resource for the minimal set of data to query and retrieve prescription information.
package_name: IdHIE.0v
derivation: constraint
name: MedicationRequestIdCore
type: MedicationRequest
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 0
      slices:
        form:
          match: {url: null}
          schema: {type: Extension, isModifier: false, url: 'http://fhir.hie.moh.gov.id/StructureDefinition/drug-form-id-core', index: 1}
          min: 0
          max: 1
  medication:
    choices: [medicationCodeableConcept]
    index: 3
  medicationCodeableConcept: {type: CodeableConcept, choiceOf: medication, index: 4}
  medication[x]:
    elements:
      coding:
        binding: {strength: preferred, valueSet: 'http://fhir.hie.moh.gov.id/ValueSet/mims-id-core'}
        index: 5
        elements:
          system:
            binding: {strength: preferred, valueSet: 'http://fhir.hie.moh.gov.id/ValueSet/drug-id-core'}
            index: 6
  dosageInstruction:
    extensions:
      cautionary: {url: 'http://fhir.hie.moh.gov.id/StructureDefinition/drug-cautionary-id-core', min: 0, max: 1, type: Extension, isModifier: false, index: 8}
    elements:
      extension:
        index: 7
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: 0
          slices:
            cautionary:
              match: {url: null}
              schema: {type: Extension, isModifier: false, url: 'http://fhir.hie.moh.gov.id/StructureDefinition/drug-cautionary-id-core', index: 8}
              min: 0
              max: 1
      additionalInstruction:
        binding: {strength: example, valueSet: 'http://fhir.hie.moh.gov.id/ValueSet/drug-special-instruction-id-core'}
        index: 9
      timing:
        elements:
          code:
            binding: {strength: required, valueSet: 'http://fhir.hie.moh.gov.id/ValueSet/phis-frequency-id-core'}
            index: 10
      route:
        binding: {strength: required, valueSet: 'http://fhir.hie.moh.gov.id/ValueSet/phis-route-id-core'}
        index: 11
      doseAndRate:
        elements:
          dose:
            choices: []
            index: 13
package_version: 0.0.1
extensions:
  form: {url: 'http://fhir.hie.moh.gov.id/StructureDefinition/drug-form-id-core', min: 0, max: 1, type: Extension, isModifier: false, index: 1}
class: profile
kind: resource
url: http://fhir.hie.moh.gov.id/StructureDefinition/MedicationRequest-id-core
base: http://hl7.org/fhir/StructureDefinition/MedicationRequest
version: 1.0.0