PackagesCanonicalsLogsProblems
    Packages
    fhir.deep6.ai@1.1.0
    http://deep6.ai/fhir/StructureDefinition/deep-6-ai-medicationrequest-1.0.2
description: This profile extends the US core MedicationRequest to add a constraint that expects the Encounter to always be present, add a constraint for a single dosageInstruction and single doseAndRate coding, and enforces a standard of CodeableConcept.
package_name: fhir.deep6.ai
derivation: constraint
name: Deep6AIMedicationRequest
type: MedicationRequest
elements:
  medication:
    constraint:
      medication-code-constraint: {human: MedicationCodeableConcept codings must include either a code or a display value, severity: error, expression: 'iif($this is CodeableConcept, coding.all(code or display), true)'}
    choices: []
    index: 1
  dosageInstruction:
    short: (USCDI) How the medication should be taken
    mustSupport: true
    index: 2
    elements:
      doseAndRate:
        elements:
          type:
            short: DoseAndRate type CodeableConcept constraint requiring a code or display.
            constraint:
              doseAndRate-type-code-constraint: {human: Type codings must include either a code or a display value, severity: error, expression: coding.all(code or display)}
            mustSupport: true
            index: 3
            elements:
              coding: {short: DoseAndRate type coding, mustSupport: true, index: 4}
package_version: 1.1.0
class: profile
kind: resource
url: http://deep6.ai/fhir/StructureDefinition/deep-6-ai-medicationrequest-1.0.2
base: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest
version: 1.1.0