description: Defines constraints and extensions on the Observation resource for the minimal set of data to query and retrieve a Patient's Sexual Orientation. package_name: hl7.fhir.us.core derivation: constraint name: USCoreSexualOrientationObservationProfile type: Observation elements: effectiveDateTime: constraint: us-core-1: {human: Datetime must be at least to day., severity: error, expression: $this is DateTime implies $this.toString().length() >= 10} type: dateTime mustSupport: true choiceOf: effective index: 5 status: binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/observation-status'} mustSupport: true index: 0 effective: constraint: us-core-1: {human: Datetime must be at least to day., severity: error, expression: $this is DateTime implies $this.toString().length() >= 10} mustSupport: true choices: [effectiveDateTime, effectivePeriod, effectiveTiming, effectiveInstant] index: 4 code: short: Sexual Orientation mustSupport: true pattern: type: CodeableConcept value: coding: - {code: 76690-7, system: 'http://loinc.org'} index: 1 effectiveTiming: constraint: us-core-1: {human: Datetime must be at least to day., severity: error, expression: $this is DateTime implies $this.toString().length() >= 10} type: Timing mustSupport: true choiceOf: effective index: 7 valueCodeableConcept: short: Sexual Orientation binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/us/core/ValueSet/us-core-sexual-orientation'} mustSupport: true index: 9 effectiveInstant: constraint: us-core-1: {human: Datetime must be at least to day., severity: error, expression: $this is DateTime implies $this.toString().length() >= 10} type: instant mustSupport: true choiceOf: effective index: 8 subject: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient'] index: 2 effectivePeriod: constraint: us-core-1: {human: Datetime must be at least to day., severity: error, expression: $this is DateTime implies $this.toString().length() >= 10} type: Period mustSupport: true choiceOf: effective index: 6 package_version: 4.1.0 class: profile kind: resource url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-sexual-orientation base: http://hl7.org/fhir/StructureDefinition/Observation version: 4.1.0 required: [subject]