PackagesCanonicalsLogsProblems
    Packages
    synapxe.sgcdi@1.0.0
    https://fhir.synapxe.sg/StructureDefinition/profile-medicationrequest
description: null
package_name: synapxe.sgcdi
derivation: constraint
name: MedicationRequest
type: MedicationRequest
elements:
  performerType: {index: 113}
  category:
    short: The specific clinical setting when this medication is ordered
    type: CodeableConcept
    binding: {strength: required, valueSet: 'https://fhir.synapxe.sg/ValueSet/order-type'}
    index: 83
    extensions: {}
    elements:
      extension: {index: 84}
      coding:
        elements:
          system:
            pattern: {type: Uri, value: 'https://fhir.synapxe.sg/CodeSystem/order-type'}
            index: 85
          version: {index: 86}
  insurance: {index: 153}
  eventHistory: {index: 259}
  substitution: {index: 258}
  encounter:
    type: Reference
    short: A reference from one resource to another
    refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-encounter']
    index: 106
  dispenseRequest:
    elements:
      dispenser:
        type: Reference
        refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-location']
        index: 241
        elements:
          id: {index: 242}
          extension: {index: 243}
          reference: {index: 244}
          type:
            pattern: {type: Uri, value: Location}
            index: 245
          identifier:
            index: 246
            elements:
              id: {index: 247}
              extension: {index: 248}
              use: {index: 249}
              type: {index: 250}
              system: {index: 251}
              value: {index: 252}
              period: {index: 253}
              assigner: {index: 254}
            extensions: {}
            required: [value, system]
          display: {index: 255}
        extensions: {}
        required: [identifier, type, display]
      doseAdministrationAid: {index: 257}
      initialFill: {index: 222}
      dispenserInstruction: {index: 256}
      dispenseInterval: {index: 223}
      validityPeriod: {index: 224}
      extension: {index: 220}
      id: {index: 219}
      numberOfRepeatsAllowed: {index: 225}
      quantity:
        index: 226
        elements:
          id: {index: 227}
          extension: {index: 228}
          value: {index: 229}
          unit: {index: 230}
          system: {index: 231}
          code: {index: 232}
        extensions: {}
        required: [value, unit, system, code]
      expectedSupplyDuration:
        index: 233
        elements:
          id: {index: 234}
          extension: {index: 235}
          value: {index: 236}
          comparator: {index: 237}
          unit: {index: 238}
          system: {index: 239}
          code: {index: 240}
        extensions: {}
        required: [value, unit, system, code]
      modifierExtension: {index: 221}
    extensions: {}
    required: [quantity]
  reported: {index: 112}
  statusReason:
    type: CodeableConcept
    short: Reason for cancellation, if it is cancelled
    binding: {strength: required, valueSet: 'https://fhir.synapxe.sg/ValueSet/status-reason'}
    index: 78
    extensions: {}
    elements:
      extension: {index: 79}
      coding:
        elements:
          system:
            pattern: {type: Uri, value: 'https://fhir.synapxe.sg/CodeSystem/status-reason'}
            index: 80
  authoredOn: {short: medication order date time, index: 108}
  effectiveDosePeriod:
    elements:
      id: {index: 156}
      extension: {index: 157}
      start: {index: 158}
      end: {index: 159}
    extensions: {}
    required: [start, end]
  note: {type: Annotation, short: Text node with attribution, index: 154}
  reason:
    index: 145
    elements:
      id: {index: 146}
      extension: {index: 147}
      concept:
        type: CodeableConcept
        short: Concept - reference to a terminology or just  text
        binding: {strength: required, valueSet: 'https://fhir.synapxe.sg/ValueSet/reason-for-medication'}
        index: 148
        extensions: {}
        elements:
          extension: {index: 149}
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'https://fhir.synapxe.sg/CodeSystem/reason-for-medication'}
                index: 150
              version: {index: 151}
    extensions: {}
    required: [concept]
  extension:
    type: Extension
    url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
    index: 1
    slicing:
      slices:
        orderingLocation:
          match: {}
          schema:
            type: Extension
            url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
            index: 1
            elements:
              value:
                choices: [valueString]
                index: 3
              valueString: {type: string, choiceOf: value, index: 4}
        sequenceNo:
          match: {}
          schema: {type: Extension, url: 'https://fhir.synapxe.sg/StructureDefinition/ext-sequenceno', index: 5}
        orderingInstitution:
          match: {}
          schema:
            type: Extension
            url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
            index: 6
            elements:
              value:
                choices: [valueReference]
                index: 8
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-organization']
                index: 9
        orderSetConnectingTerm:
          match: {}
          schema:
            type: Extension
            url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
            index: 10
            elements:
              value:
                choices: [valueString]
                index: 12
              valueString: {type: string, choiceOf: value, index: 13}
        changesMade:
          match: {}
          schema:
            type: Extension
            url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
            index: 14
            elements:
              value:
                choices: [valueString]
                index: 16
              valueString: {type: string, choiceOf: value, index: 17}
        authorizer:
          match: {}
          schema:
            type: Extension
            url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
            index: 18
            elements:
              value:
                choices: [valueReference]
                index: 20
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-practitioner']
                index: 21
  statusChanged: {short: 'if status is Discontinued, this is the discontinued date time', index: 81}
  contained: {index: 0}
  requester:
    type: Reference
    short: A reference from one resource to another
    refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-practitioner']
    index: 109
    elements:
      identifier:
        elements:
          system: {index: 110}
      display: {index: 111}
  supportingInformation: {index: 107}
  priority: {index: 87}
  status:
    binding: {strength: required, valueSet: 'https://fhir.synapxe.sg/ValueSet/medicationrequest-status'}
    index: 77
  dosageInstruction:
    index: 160
    elements:
      site: {index: 206}
      asNeeded: {index: 201}
      method: {index: 210}
      patientInstruction: {index: 170}
      maxDosePerLifetime: {index: 218}
      maxDosePerAdministration: {index: 217}
      route:
        type: CodeableConcept
        short: Concept - reference to a terminology or just  text
        index: 207
        extensions: {}
        elements:
          extension: {index: 208}
          coding:
            elements:
              version: {index: 209}
      extension: {index: 162}
      id: {index: 161}
      timing:
        index: 171
        elements:
          id: {index: 172}
          extension: {index: 173}
          modifierExtension: {index: 174}
          event: {index: 175}
          repeat:
            elements:
              id: {index: 176}
              extension: {index: 177}
              bounds:
                choices: [boundsRange]
                index: 179
              boundsRange: {type: Range, choiceOf: bounds, index: 180}
              bounds[x]:
                elements:
                  id: {index: 181}
                  extension: {index: 182}
                  low:
                    index: 183
                    elements:
                      id: {index: 184}
                      extension: {index: 185}
                      value: {index: 186}
                      unit: {index: 187}
                      system: {index: 188}
                      code: {index: 189}
                    extensions: {}
                    required: [value, unit, system, code]
                  high:
                    index: 190
                    elements:
                      id: {index: 191}
                      extension: {index: 192}
                      value: {index: 193}
                      unit: {index: 194}
                      system: {index: 195}
                      code: {index: 196}
                    extensions: {}
                    required: [value, unit, system, code]
                extensions: {}
                required: [low, high]
              dayOfWeek: {index: 197}
              timeOfDay: {index: 198}
              when: {index: 199}
            extensions: {}
          code: {type: CodeableConcept, short: Concept - reference to a terminology or just  text, index: 200}
        extensions: {}
      additionalInstruction:
        index: 165
        elements:
          id: {index: 166}
          extension: {index: 167}
          coding: {index: 168}
          text: {index: 169}
        extensions: {}
        required: [text]
      sequence: {short: The sequence number of the dosage instructions for step or variable dose, index: 164}
      maxDosePerPeriod: {index: 216}
      asNeededFor:
        short: Frequency qualifier. Take "as needed" (for x)
        index: 202
        extensions: {}
        elements:
          extension: {index: 203}
          coding: {index: 204}
          text: {index: 205}
        required: [text]
      doseAndRate:
        elements:
          id: {index: 211}
          extension: {index: 212}
          type: {index: 213}
          dose:
            choices: []
            index: 215
        extensions: {}
        required: [dose]
      modifierExtension: {index: 163}
    extensions: {}
    required: [sequence]
  groupIdentifier:
    type: Identifier
    short: An identifier intended for computation
    index: 75
    elements:
      system:
        pattern: {type: Uri, value: 'https://fhir.synapxe.sg/NamingSystem/groupNo'}
        index: 76
  recorder:
    type: Reference
    short: The healthcare professional responsible for prescribing this medication order
    refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-practitioner']
    index: 130
    elements:
      id: {index: 131}
      extension: {index: 132}
      reference: {index: 133}
      type:
        pattern: {type: Uri, value: Practitioner}
        index: 134
      identifier:
        index: 135
        elements:
          id: {index: 136}
          extension: {index: 137}
          use: {index: 138}
          type: {index: 139}
          system: {index: 140}
          value: {index: 141}
          period: {index: 142}
          assigner: {index: 143}
        extensions: {}
        required: [value, system]
      display: {index: 144}
    extensions: {}
    required: [identifier, display]
  identifier:
    index: 23
    elements:
      id: {index: 24}
      extension: {index: 25}
      use: {index: 26}
      type: {index: 27}
      system: {index: 28}
      value: {index: 29}
      period: {index: 30}
      assigner: {index: 31}
    extensions: {}
    required: [value, system]
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: value}
      min: 1
      slices:
        recordIdentifier:
          match: {}
          schema:
            _required: true
            index: 32
            elements:
              id: {index: 33}
              extension: {index: 34}
              use: {index: 35}
              type: {index: 36}
              system:
                pattern: {type: Uri, value: 'https://fhir.synapxe.sg/NamingSystem/record-identifier'}
                index: 37
              value: {index: 38}
              period: {index: 39}
              assigner: {index: 40}
            extensions: {}
            required: [value, system]
        orderID:
          match: {}
          schema:
            _required: true
            index: 41
            elements:
              id: {index: 42}
              extension: {index: 43}
              use: {index: 44}
              type: {index: 45}
              system:
                pattern: {type: Uri, value: 'https://fhir.synapxe.sg/NamingSystem/orderID'}
                index: 46
              value: {index: 47}
              period: {index: 48}
              assigner: {index: 49}
            extensions: {}
            required: [value, system]
        sourceGroupingID:
          match: {}
          schema:
            _required: true
            index: 50
            elements:
              id: {index: 51}
              extension: {index: 52}
              use: {index: 53}
              type: {index: 54}
              system:
                pattern: {type: Uri, value: 'https://fhir.synapxe.sg/NamingSystem/sourceGroupingID'}
                index: 55
              value: {index: 56}
              period: {index: 57}
              assigner: {index: 58}
            extensions: {}
            required: [value, system]
  doNotPerform: {index: 88}
  intent:
    pattern: {type: Code, value: order}
    index: 82
  device: {index: 129}
  renderedDosageInstruction: {index: 155}
  basedOn:
    type: Reference
    refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-encounter']
    index: 59
    elements:
      id: {index: 60}
      extension: {index: 61}
      reference: {index: 62}
      type:
        pattern: {type: Uri, value: Encounter}
        index: 63
      identifier:
        index: 64
        elements:
          id: {index: 65}
          extension: {index: 66}
          use: {index: 67}
          type: {index: 68}
          system:
            pattern: {type: Uri, value: 'https://fhir.synapxe.sg/NamingSystem/record-identifier'}
            index: 69
          value: {index: 70}
          period: {index: 71}
          assigner: {index: 72}
        extensions: {}
        required: [value, system]
      display: {index: 73}
    extensions: {}
    required: [identifier, type]
  priorPrescription: {index: 74}
  informationSource: {index: 105}
  courseOfTherapyType: {index: 152}
  subject:
    type: Reference
    short: A reference from one resource to another
    refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-patient']
    index: 103
    elements:
      display: {index: 104}
  modifierExtension: {index: 22}
  performer:
    type: Reference
    refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-practitioner']
    index: 114
    elements:
      id: {index: 115}
      extension: {index: 116}
      reference: {index: 117}
      type: {index: 118}
      identifier:
        index: 119
        elements:
          id: {index: 120}
          extension: {index: 121}
          use: {index: 122}
          type: {index: 123}
          system: {index: 124}
          value: {index: 125}
          period: {index: 126}
          assigner: {index: 127}
        extensions: {}
        required: [value, system]
      display: {index: 128}
    extensions: {}
    required: [identifier, display]
  medication:
    type: CodeableReference
    index: 89
    elements:
      id: {index: 90}
      extension: {index: 91}
      concept:
        type: CodeableConcept
        short: Concept - reference to a terminology or just  text
        binding: {strength: required, valueSet: 'https://fhir.synapxe.sg/ValueSet/med-code'}
        index: 92
        extensions: {}
        elements:
          extension: {index: 93}
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'https://fhir.synapxe.sg/CodeSystem/med-code'}
                index: 94
              version: {index: 95}
      reference:
        index: 96
        elements:
          id: {index: 97}
          extension: {index: 98}
          reference: {index: 99}
          type: {index: 100}
          identifier: {index: 101}
          display: {index: 102}
        extensions: {}
        required: [reference]
    extensions: {}
    required: [concept]
package_version: 1.0.0
extensions:
  orderingLocation:
    url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
    type: Extension
    index: 1
    elements:
      value:
        choices: [valueString]
        index: 3
      valueString: {type: string, choiceOf: value, index: 4}
  sequenceNo: {url: 'https://fhir.synapxe.sg/StructureDefinition/ext-sequenceno', type: Extension, index: 5}
  orderingInstitution:
    url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
    type: Extension
    index: 6
    elements:
      value:
        choices: [valueReference]
        index: 8
      valueReference:
        type: Reference
        choiceOf: value
        refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-organization']
        index: 9
  orderSetConnectingTerm:
    url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
    type: Extension
    index: 10
    elements:
      value:
        choices: [valueString]
        index: 12
      valueString: {type: string, choiceOf: value, index: 13}
  changesMade:
    url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
    type: Extension
    index: 14
    elements:
      value:
        choices: [valueString]
        index: 16
      valueString: {type: string, choiceOf: value, index: 17}
  authorizer:
    url: https://fhir.synapxe.sg/StructureDefinition/ext-generic
    type: Extension
    index: 18
    elements:
      value:
        choices: [valueReference]
        index: 20
      valueReference:
        type: Reference
        choiceOf: value
        refers: ['https://fhir.synapxe.sg/StructureDefinition/profile-practitioner']
        index: 21
class: profile
kind: resource
url: https://fhir.synapxe.sg/StructureDefinition/profile-medicationrequest
base: http://hl7.org/fhir/StructureDefinition/MedicationRequest
version: null
required: [authoredOn, dosageInstruction, requester, groupIdentifier, identifier, category]