PackagesCanonicalsLogsProblems
    Packages
    ca.infoway.io.core@1.0.0-dft-preballot
    http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/observation-sexual-orientation
description: This profile applies constraints to the Observation resource for CA Core+ to support capture of a patient’s self-reported sexual orientation in the pan-Canadian context.
package_name: ca.infoway.io.core
derivation: constraint
name: ObservationSexualOrientation
type: Observation
elements:
  status: {mustSupport: true, index: 0}
  category: {type: CodeableConcept, mustSupport: true, index: 1}
  code:
    type: CodeableConcept
    short: Sexual Orientation
    mustSupport: true
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: 76690-7, system: 'http://loinc.org', display: Sexual Orientation}
    index: 2
  subject:
    type: Reference
    refers: ['http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/patient-ca-core']
    index: 3
  effective:
    mustSupport: true
    choices: []
    index: 5
  value:
    choices: []
    index: 7
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: type}
      min: 1
      slices:
        valueCodeableConcept:
          match: {}
          schema:
            short: Sexual Orientation
            mustSupport: true
            choices: [valueCodeableConcept]
            _required: true
            index: 9
          min: 1
          max: 1
  valueCodeableConcept:
    short: Sexual Orientation
    type: CodeableConcept
    mustSupport: true
    choiceOf: value
    index: 10
    slicing:
      slices:
        valueCodeableConcept:
          match: {}
          schema: {short: Sexual Orientation, type: CodeableConcept, mustSupport: true, _required: true, choiceOf: value, index: 10}
          min: 1
          max: 1
package_version: 1.0.0-dft-preballot
class: profile
kind: resource
url: http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/observation-sexual-orientation
base: http://hl7.org/fhir/StructureDefinition/Observation
version: null
required: [value, subject, valueCodeableConcept]