description: This profile constrains the Observation resource for use related to Social Determinants of Health observations that involve assessments conducted along the client journey. package_name: ca.on.mha.pds derivation: constraint name: ObservationTransgenderIdentity type: Observation elements: category: mustSupport: true index: 3 elements: coding: mustSupport: true index: 4 elements: system: pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/observation-category'} mustSupport: true index: 5 code: pattern: {type: Code, value: social-history} mustSupport: true index: 6 display: pattern: {type: String, value: Social History} mustSupport: true index: 7 required: [display, system, code] required: [coding] value[x]: elements: coding: mustSupport: true index: 19 elements: system: {mustSupport: true, index: 20} code: {mustSupport: true, index: 21} display: {mustSupport: true, index: 22} required: [display, system, code] required: [coding] meta: mustSupport: true index: 0 elements: profile: mustSupport: true pattern: {type: Canonical, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-profile-observation-transgender-identity'} index: 1 required: [profile] value: mustSupport: true choices: [valueCodeableConcept] index: 17 effectiveDateTime: type: dateTime constraint: sdoh-inv-1: {human: Effective Date must be a full date (YYYY-MM-DD), severity: error, expression: '$this.toString().matches(''^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$'')'} mustSupport: true choiceOf: effective index: 15 status: {mustSupport: true, index: 2} effective: constraint: sdoh-inv-1: {human: Effective Date must be a full date (YYYY-MM-DD), severity: error, expression: '$this.toString().matches(''^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$'')'} mustSupport: true choices: [effectiveDateTime] index: 14 code: binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/sdohObservationCode'} mustSupport: true index: 8 elements: coding: {index: 9} text: pattern: {type: String, value: Transgender Identity} mustSupport: true index: 10 required: [text] valueCodeableConcept: {type: CodeableConcept, mustSupport: true, choiceOf: value, index: 18} subject: type: Reference mustSupport: true refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-patient'] index: 11 elements: reference: {mustSupport: true, index: 12} required: [reference] dataAbsentReason: binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mha-sdoh-data-absent-reason'} mustSupport: true index: 23 package_version: 2.0.0-snapshot10 class: profile kind: resource url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-profile-observation-transgender-identity base: http://hl7.org/fhir/StructureDefinition/Observation version: 1.0.0 required: [subject, meta, category]