PackagesCanonicalsLogsProblems
    Packages
    fhir.deep6.ai@2.4.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-coding-or-display: {human: Code codings must include either a code or a display value, source: 'http://deep6.ai/fhir/StructureDefinition/deep-6-ai-medicationrequest-1.0.2', severity: error, expression: 'iif($this is CodeableConcept, coding.all(code or display), true)'}
    choices: []
    index: 1
  dosageInstruction:
    index: 2
    elements:
      doseAndRate:
        elements:
          type:
            constraint:
              coding-code-or-display: {human: Code codings must include either a code or a display value, source: 'http://deep6.ai/fhir/StructureDefinition/deep-6-ai-medicationrequest-1.0.2', severity: error, expression: coding.all(code or display)}
            index: 3
package_version: 2.4.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: 2.4.0