SexualOrientationObservation
type: StructureDefinition
node role: treeRoot
id:
  v: SexualOrientationObservation
text:
  status:
    v: extensions
  div: Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> Observation 1..1 SocialHistoryObservation XML Namespace: urn:hl7-org:v3 Elements defined in Ancestors: @nullFlavor, realmCode, <a href="http://hl7.org/cda/stds/core/2.0.0-sd-snapshot1/StructureDefinition-InfrastructureRoot.html" title="When valued in an instance, this attribute signals the imposition of constraints defined in an HL7-specified message type. This might be a common type (also known as CMET in the messaging communication environment), or content included within a wrapper. The value of this attribute provides a unique identifier for the type in question.">typeId, templateId, @classCode, @moodCode, @negationInd, id, code, derivationExpr, text, statusCode, effectiveTime, priorityCode, repeatNumber, languageCode, value, interpretationCode, methodCode, targetSiteCode, subject, specimen, performer, author, informant, participant, entryRelationship, reference, precondition, sdtcPrecondition2, referenceRange, sdtcInFulfillmentOf1, templateId, templateId, classCode, moodCode, id, code, text, statusCode, effectiveTime, value, author, entryRelationship, entryRelationship, entryRelationship Base for all types and resources Instances of this type are validated by templateId Logical Container: ClinicalDocument (CDA Class) templateId 2..* II templateId:sexual-orientation-obs 1..1 II @root 1..1 oid, uuid, ruid Required Pattern: 2.16.840.1.113883.10.20.22.4.501 @extension 1..1 st Required Pattern: 2023-05-01 @classCode 1..1 cs @moodCode 1..1 cs code 1..1 CD @code 1..1 cs Required Pattern: 76690-7 @codeSystem 1..1 oid, uuid, ruid Required Pattern: 2.16.840.1.113883.6.1 statusCode 1..1 CS @code 1..1 cs effectiveTime 1..1 IVL_TS The effectiveTime represents the relevant time of the observation. A patient's "sexual orientation" may change and using effectiveTime/low and effectiveTime/high defines the time during which the patient had identified their emotional, …
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/logical-target
  value: boolean
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/data-absent-reason
      value:
        v: not-applicable
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/xml-namespace
  value:
    v: urn:hl7-org:v3
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/xml-name
  value:
    v: observation
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/logical-container
  value:
    v: http://hl7.org/cda/stds/core/StructureDefinition/ClinicalDocument
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/type-profile-style
  value:
    v: cda
url:
  v: http://hl7.org/cda/us/ccda/StructureDefinition/SexualOrientationObservation
identifier:
  value:
    v: urn:hl7ii:2.16.840.1.113883.10.20.22.4.501:2023-05-01
version:
  v: 3.0.0-ballot
name:
  v: SexualOrientationObservation
title:
  v: Sexual Orientation Observation
status:
  v: draft
date:
  v: 2023-12-21T01:13:10+10:00
publisher:
  v: Health Level Seven
contact:
  name:
    v: HL7 International - Structured Documents
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/structure
description:
  v: This observation represents the sexual orientation of the patient, defined as: > A persons identification of their emotional, romantic, sexual, or affectional attraction to another person. This template was informed by the HL7 Gender Harmony project. This observation is not appropriate for recording patient gender (administrativeGender), Gender Identity (Gender Identity Observation), or birth sex (Birth Sex Observation).
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
    code:
      v: US
fhir version:
  v: 5.0.0
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
kind:
  v: logical
abstract:
  v: false
type:
  v: http://hl7.org/cda/stds/core/StructureDefinition/Observation
base definition:
  v: http://hl7.org/cda/us/ccda/StructureDefinition/SocialHistoryObservation
  link: http://hl7.org/cda/us/ccda/StructureDefinition/SocialHistoryObservation
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: Observation
    path:
      v: Observation
    short:
      v: Base for all types and resources
    definition:
      v: Defines the basic properties of every data value. This is an abstract type, meaning that no value can be just a data value without belonging to any concrete type. Every concrete type is a specialization of this general abstract DataValue type.
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: should-text-ref-value
      severity:
        v: warning
      human:
        v: SHOULD contain text/reference/@value
      expression:
        v: text.reference.value.exists()
      source:
        v: http://hl7.org/cda/us/ccda/StructureDefinition/SocialHistoryObservation
        link: http://hl7.org/cda/us/ccda/StructureDefinition/SocialHistoryObservation
    constraint:
      key:
        v: should-value
      severity:
        v: warning
      human:
        v: SHOULD contain value
      expression:
        v: value.exists()
      source:
        v: http://hl7.org/cda/us/ccda/StructureDefinition/SocialHistoryObservation
        link: http://hl7.org/cda/us/ccda/StructureDefinition/SocialHistoryObservation
    constraint:
      key:
        v: 4515-8555
      severity:
        v: error
      human:
        v: If Observation/value is a physical quantity (xsi:type="PQ"): This value SHALL contain exactly one [1..1] @unit, which SHOULD be selected from ValueSet UnitsOfMeasureCaseSensitive urn:oid:2.16.840.1.113883.1.11.12839 DYNAMIC. Note: Base CDA requires that all @unit values SHALL be drawn from UCUM.
      source:
        v: http://hl7.org/cda/us/ccda/StructureDefinition/SocialHistoryObservation
        link: http://hl7.org/cda/us/ccda/StructureDefinition/SocialHistoryObservation
    constraint:
      key:
        v: should-sh-author
      severity:
        v: warning
      human:
        v: SHOULD contain author
      expression:
        v: author.exists()
      source:
        v: http://hl7.org/cda/us/ccda/StructureDefinition/SocialHistoryObservation
        link: http://hl7.org/cda/us/ccda/StructureDefinition/SocialHistoryObservation
    is modifier:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: n/a
  element:
    id:
      v: Observation.nullFlavor
    path:
      v: Observation.nullFlavor
    representation:
      v: xmlAttr
    label:
      v: Exceptional Value Detail
    definition:
      v: If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: ANY.nullFlavor
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: code
      profile:
        v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
        link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    binding:
      strength:
        v: required
      value set:
        v: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor
        link: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor
  element:
    id:
      v: Observation.realmCode
    path:
      v: Observation.realmCode

v: When valued in an instance, this attribute signals the imposition of realm-specific constraints. The value of this attribute identifies the realm in question

v: 0

v: *

path:
  v: InfrastructureRoot.realmCode
min:
  v: 0
max:
  v: *

id:
  v: Observation.typeId
path:
  v: Observation.typeId
definition:
  v: When valued in an instance, this attribute signals the imposition of constraints defined in an HL7-specified message type. This might be a common type (also known as CMET in the messaging communication environment), or content included within a wrapper. The value of this attribute provides a unique identifier for the type in question.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: InfrastructureRoot.typeId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/II

id:
  v: Observation.typeId.nullFlavor
path:
  v: Observation.typeId.nullFlavor
representation:
  v: xmlAttr
label:
  v: Exceptional Value Detail
definition:
  v: If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ANY.nullFlavor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor
    link: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor

id:
  v: Observation.typeId.assigningAuthorityName
path:
  v: Observation.typeId.assigningAuthorityName
representation:
  v: xmlAttr
label:
  v: Assigning Authority Name
definition:
  v: A human readable name or mnemonic for the assigning authority. The Assigning Authority Name has no computational value. The purpose of a Assigning Authority Name is to assist an unaided human interpreter of an II value to interpret the authority. Note: no automated processing must depend on the assigning authority name to be present in any form.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: II.assigningAuthorityName
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/st-simple

id:
  v: Observation.typeId.displayable
path:
  v: Observation.typeId.displayable
representation:
  v: xmlAttr
label:
  v: Displayable
definition:
  v: Specifies if the identifier is intended for human display and data entry (displayable = true) as opposed to pure machine interoperation (displayable = false).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: II.displayable
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple

id:
  v: Observation.typeId.root
path:
  v: Observation.typeId.root
representation:
  v: xmlAttr
label:
  v: Root
definition:
  v: Identifies the type as an HL7 Registered model
min:
  v: 1
max:
  v: 1
base:
  path:
    v: II.root
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/oid
    link: http://hl7.org/cda/stds/core/StructureDefinition/oid
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/uuid
    link: http://hl7.org/cda/stds/core/StructureDefinition/uuid
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/ruid
    link: http://hl7.org/cda/stds/core/StructureDefinition/ruid
fixed:
  v: 2.16.840.1.113883.1.3

id:
  v: Observation.typeId.extension
path:
  v: Observation.typeId.extension
representation:
  v: xmlAttr
label:
  v: Extension
definition:
  v: A character string as a unique identifier within the scope of the identifier root.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: II.extension
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/st-simple

id:
  v: Observation.templateId
path:
  v: Observation.templateId
slicing:
  discriminator:
    type:
      v: value
    path:
      v: root
  discriminator:
    type:
      v: value
    path:
      v: extension
  rules:
    v: open
definition:
  v: When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question
min:
  v: 2
max:
  v: *
base:
  path:
    v: InfrastructureRoot.templateId
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/II

id:
  v: Observation.templateId:social-history-obs
path:
  v: Observation.templateId
slice name:
  v: social-history-obs
definition:
  v: When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question
min:
  v: 1
max:
  v: 1
base:
  path:
    v: InfrastructureRoot.templateId
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/II

id:
  v: Observation.templateId:social-history-obs.nullFlavor
path:
  v: Observation.templateId.nullFlavor
representation:
  v: xmlAttr
label:
  v: Exceptional Value Detail
definition:
  v: If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ANY.nullFlavor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor
    link: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor

id:
  v: Observation.templateId:social-history-obs.assigningAuthorityName
path:
  v: Observation.templateId.assigningAuthorityName
representation:
  v: xmlAttr
label:
  v: Assigning Authority Name
definition:
  v: A human readable name or mnemonic for the assigning authority. The Assigning Authority Name has no computational value. The purpose of a Assigning Authority Name is to assist an unaided human interpreter of an II value to interpret the authority. Note: no automated processing must depend on the assigning authority name to be present in any form.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: II.assigningAuthorityName
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/st-simple

id:
  v: Observation.templateId:social-history-obs.displayable
path:
  v: Observation.templateId.displayable
representation:
  v: xmlAttr
label:
  v: Displayable
definition:
  v: Specifies if the identifier is intended for human display and data entry (displayable = true) as opposed to pure machine interoperation (displayable = false).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: II.displayable
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple

id:
  v: Observation.templateId:social-history-obs.root
path:
  v: Observation.templateId.root
representation:
  v: xmlAttr
label:
  v: Root
definition:
  v: A unique identifier that guarantees the global uniqueness of the instance identifier. The root alone may be the entire instance identifier.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: II.root
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/oid
    link: http://hl7.org/cda/stds/core/StructureDefinition/oid
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/uuid
    link: http://hl7.org/cda/stds/core/StructureDefinition/uuid
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/ruid
    link: http://hl7.org/cda/stds/core/StructureDefinition/ruid
pattern:
  v: 2.16.840.1.113883.10.20.22.4.38

id:
  v: Observation.templateId:social-history-obs.extension
path:
  v: Observation.templateId.extension
representation:
  v: xmlAttr
label:
  v: Extension
definition:
  v: A character string as a unique identifier within the scope of the identifier root.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: II.extension
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
pattern:
  v: 2022-06-01

id:
  v: Observation.templateId:sexual-orientation-obs
path:
  v: Observation.templateId
slice name:
  v: sexual-orientation-obs
definition:
  v: When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question
min:
  v: 1
max:
  v: 1
base:
  path:
    v: InfrastructureRoot.templateId
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/II

id:
  v: Observation.templateId:sexual-orientation-obs.nullFlavor
path:
  v: Observation.templateId.nullFlavor
representation:
  v: xmlAttr
label:
  v: Exceptional Value Detail
definition:
  v: If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ANY.nullFlavor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor
    link: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor

id:
  v: Observation.templateId:sexual-orientation-obs.assigningAuthorityName
path:
  v: Observation.templateId.assigningAuthorityName
representation:
  v: xmlAttr
label:
  v: Assigning Authority Name
definition:
  v: A human readable name or mnemonic for the assigning authority. The Assigning Authority Name has no computational value. The purpose of a Assigning Authority Name is to assist an unaided human interpreter of an II value to interpret the authority. Note: no automated processing must depend on the assigning authority name to be present in any form.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: II.assigningAuthorityName
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/st-simple

id:
  v: Observation.templateId:sexual-orientation-obs.displayable
path:
  v: Observation.templateId.displayable
representation:
  v: xmlAttr
label:
  v: Displayable
definition:
  v: Specifies if the identifier is intended for human display and data entry (displayable = true) as opposed to pure machine interoperation (displayable = false).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: II.displayable
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple

id:
  v: Observation.templateId:sexual-orientation-obs.root
path:
  v: Observation.templateId.root
representation:
  v: xmlAttr
label:
  v: Root
definition:
  v: A unique identifier that guarantees the global uniqueness of the instance identifier. The root alone may be the entire instance identifier.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: II.root
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/oid
    link: http://hl7.org/cda/stds/core/StructureDefinition/oid
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/uuid
    link: http://hl7.org/cda/stds/core/StructureDefinition/uuid
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/ruid
    link: http://hl7.org/cda/stds/core/StructureDefinition/ruid
pattern:
  v: 2.16.840.1.113883.10.20.22.4.501

id:
  v: Observation.templateId:sexual-orientation-obs.extension
path:
  v: Observation.templateId.extension
representation:
  v: xmlAttr
label:
  v: Extension
definition:
  v: A character string as a unique identifier within the scope of the identifier root.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: II.extension
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
pattern:
  v: 2023-05-01

id:
  v: Observation.classCode
path:
  v: Observation.classCode
representation:
  v: xmlAttr
comment:
  v: SHALL contain exactly one [1..1] @classCode="OBS" (CodeSystem: HL7ActClass urn:oid:2.16.840.1.113883.5.6 STATIC) (CONF:4537-193).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Observation.classCode
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
fixed:
  v: OBS
binding:
  strength:
    v: required
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-ActClassObservation|2.0.0
    link: 2.0
    link: .0

id:
  v: Observation.moodCode
path:
  v: Observation.moodCode
representation:
  v: xmlAttr
comment:
  v: SHALL contain exactly one [1..1] @moodCode="EVN" (CodeSystem: HL7ActMood urn:oid:2.16.840.1.113883.5.1001 STATIC) (CONF:4537-194).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Observation.moodCode
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
fixed:
  v: EVN
binding:
  strength:
    v: required
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-xActMoodDocumentObservation|2.0.0
    link: 2.0
    link: .0

id:
  v: Observation.negationInd
path:
  v: Observation.negationInd
representation:
  v: xmlAttr
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Observation.negationInd
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple

id:
  v: Observation.id
path:
  v: Observation.id
comment:
  v: SHALL contain at least one [1..*] id (CONF:4515-8551).
min:
  v: 1
max:
  v: *
base:
  path:
    v: Observation.id
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/II

id:
  v: Observation.code
path:
  v: Observation.code
representation:
  v: typeAttr
comment:
  v: SHALL contain exactly one [1..1] code (CONF:4537-186).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Observation.code
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/CD
constraint:
  key:
    v: 4515-32956
  severity:
    v: warning
  human:
    v: If @codeSystem is not LOINC, then this code **SHALL** contain at least one [1..*] translation, which **SHOULD** be selected from CodeSystem LOINC (urn:oid:2.16.840.1.113883.6.1) (CONF:4515-32956).
  expression:
    v: codeSystem = '2.16.840.1.113883.6.1' or translation.where(codeSystem = '2.16.840.1.113883.6.1').exists()
  source:
    v: http://hl7.org/cda/us/ccda/StructureDefinition/SocialHistoryObservation
    link: http://hl7.org/cda/us/ccda/StructureDefinition/SocialHistoryObservation
binding:
  strength:
    v: preferred
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.88.12.80.60
    link: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.88.12.80.60

id:
  v: Observation.code.nullFlavor
path:
  v: Observation.code.nullFlavor
representation:
  v: xmlAttr
label:
  v: Exceptional Value Detail
definition:
  v: If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ANY.nullFlavor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor
    link: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor

id:
  v: Observation.code.code
path:
  v: Observation.code.code
representation:
  v: xmlAttr
label:
  v: Code
definition:
  v: The plain code symbol defined by the code system. For example, "784.0" is the code symbol of the ICD-9 code "784.0" for headache.
comment:
  v: This code SHALL contain exactly one [1..1] @code="76690-7" Sexual Orientation (CONF:4537-190).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: CD.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
pattern:
  v: 76690-7

id:
  v: Observation.code.codeSystem
path:
  v: Observation.code.codeSystem
representation:
  v: xmlAttr
label:
  v: Code System
definition:
  v: Specifies the code system that defines the code.
comment:
  v: This code SHALL contain exactly one [1..1] @codeSystem="2.16.840.1.113883.6.1" (CodeSystem: LOINC urn:oid:2.16.840.1.113883.6.1 STATIC) (CONF:4537-191).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: CD.codeSystem
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/oid
    link: http://hl7.org/cda/stds/core/StructureDefinition/oid
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/uuid
    link: http://hl7.org/cda/stds/core/StructureDefinition/uuid
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/ruid
    link: http://hl7.org/cda/stds/core/StructureDefinition/ruid
pattern:
  v: 2.16.840.1.113883.6.1

id:
  v: Observation.code.codeSystemName
path:
  v: Observation.code.codeSystemName
representation:
  v: xmlAttr
label:
  v: Code System Name
definition:
  v: The common name of the coding system.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CD.codeSystemName
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/st-simple

id:
  v: Observation.code.codeSystemVersion
path:
  v: Observation.code.codeSystemVersion
representation:
  v: xmlAttr
label:
  v: Code System Version
definition:
  v: If applicable, a version descriptor defined specifically for the given code system.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CD.codeSystemVersion
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/st-simple

id:
  v: Observation.code.displayName
path:
  v: Observation.code.displayName
representation:
  v: xmlAttr
label:
  v: Display Name
definition:
  v: A name or title for the code, under which the sending system shows the code value to its users.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CD.displayName
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/st-simple

id:
  v: Observation.code.sdtcValueSet
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/xml-namespace
  value:
    v: urn:hl7-org:sdtc
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/xml-name
  value:
    v: valueSet
path:
  v: Observation.code.sdtcValueSet
representation:
  v: xmlAttr
definition:
  v: The valueSet extension adds an attribute for elements with a CD dataType which indicates the particular value set constraining the coded concept.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CD.valueSet
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/oid
    link: http://hl7.org/cda/stds/core/StructureDefinition/oid

id:
  v: Observation.code.sdtcValueSetVersion
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/xml-namespace
  value:
    v: urn:hl7-org:sdtc
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/xml-name
  value:
    v: valueSetVersion
path:
  v: Observation.code.sdtcValueSetVersion
representation:
  v: xmlAttr
definition:
  v: The valueSetVersion extension adds an attribute for elements with a CD dataType which indicates the version of the particular value set constraining the coded concept.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CD.sdtcValueSetVersion
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/st-simple

id:
  v: Observation.code.originalText
path:
  v: Observation.code.originalText
label:
  v: Original Text
definition:
  v: The text or phrase used as the basis for the coding.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CD.originalText
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/ED

id:
  v: Observation.code.qualifier
path:
  v: Observation.code.qualifier
label:
  v: Qualifier
definition:
  v: Specifies additional codes that increase the specificity of the the primary code.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CD.qualifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/CR

id:
  v: Observation.code.translation
path:
  v: Observation.code.translation
representation:
  v: typeAttr
label:
  v: Translation
definition:
  v: A set of other concept descriptors that translate this concept descriptor into other code systems.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CD.translation
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/CD

id:
  v: Observation.derivationExpr
path:
  v: Observation.derivationExpr
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Observation.derivationExpr
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/ST

id:
  v: Observation.text
path:
  v: Observation.text
representation:
  v: typeAttr
short:
  v: SHOULD reference the portion of section narrative text corresponding to this entry
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Observation.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/ED

id:
  v: Observation.text.nullFlavor
path:
  v: Observation.text.nullFlavor
representation:
  v: xmlAttr
label:
  v: Exceptional Value Detail
definition:
  v: If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ANY.nullFlavor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor
    link: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor

id:
  v: Observation.text.compression
path:
  v: Observation.text.compression
representation:
  v: xmlAttr
label:
  v: Compression
definition:
  v: Indicates whether the raw byte data is compressed, and what compression algorithm was used.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ED.compression
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/cda/stds/core/ValueSet/CDACompressionAlgorithm
    link: http://hl7.org/cda/stds/core/ValueSet/CDACompressionAlgorithm

id:
  v: Observation.text.integrityCheck
path:
  v: Observation.text.integrityCheck
representation:
  v: xmlAttr
label:
  v: Integrity Check
definition:
  v: The integrity check is a short binary value representing a cryptographically strong checksum that is calculated over the binary data. The purpose of this property, when communicated with a reference is for anyone to validate later whether the reference still resolved to the same data that the reference resolved to when the encapsulated data value with reference was created.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ED.integrityCheck
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: base64Binary
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/bin
    link: http://hl7.org/cda/stds/core/StructureDefinition/bin

id:
  v: Observation.text.integrityCheckAlgorithm
path:
  v: Observation.text.integrityCheckAlgorithm
representation:
  v: xmlAttr
label:
  v: Integrity Check Algorithm
definition:
  v: Specifies the algorithm used to compute the integrityCheck value. The cryptographically strong checksum algorithm Secure Hash Algorithm-1 (SHA-1) is currently the industry standard. It has superseded the MD5 algorithm only a couple of years ago, when certain flaws in the security of MD5 were discovered. Currently the SHA-1 hash algorithm is the default choice for the integrity check algorithm. Note that SHA-256 is also entering widespread usage.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ED.integrityCheckAlgorithm
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
binding:
  strength:
    v: required
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-IntegrityCheckAlgorithm|2.0.0
    link: 2.0
    link: .0

id:
  v: Observation.text.language
path:
  v: Observation.text.language
representation:
  v: xmlAttr
label:
  v: Language
definition:
  v: For character based information the language property specifies the human language of the text.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ED.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple

id:
  v: Observation.text.mediaType
path:
  v: Observation.text.mediaType
representation:
  v: xmlAttr
label:
  v: Media Type
definition:
  v: Identifies the type of the encapsulated data and identifies a method to interpret or render the data.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ED.mediaType
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
binding:
  strength:
    v: example
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-MediaType
    link: http://terminology.hl7.org/ValueSet/v3-MediaType

id:
  v: Observation.text.representation
path:
  v: Observation.text.representation
representation:
  v: xmlAttr
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ED.representation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/cda/stds/core/ValueSet/BinaryDataEncoding
    link: http://hl7.org/cda/stds/core/ValueSet/BinaryDataEncoding

id:
  v: Observation.text.xmlText
path:
  v: Observation.text.xmlText
representation:
  v: xmlText
short:
  v: Allows for mixed text content. If @representation='B64', this SHALL be a base64binary string.
definition:
  v: Data that is primarily intended for human interpretation or for further machine processing is outside the scope of HL7. This includes unformatted or formatted written language, multimedia data, or structured information as defined by a different standard (e.g., XML-signatures.)
comment:
  v: This element is represented in XML as textual content. The actual name "xmlText" will not appear in a CDA instance.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ED.xmlText
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/st-simple

id:
  v: Observation.text.reference
path:
  v: Observation.text.reference
label:
  v: Reference
definition:
  v: A telecommunication address (TEL), such as a URL for HTTP or FTP, which will resolve to precisely the same binary data that could as well have been provided as inline data.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ED.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/TEL
constraint:
  key:
    v: value-starts-octothorpe
  severity:
    v: error
  human:
    v: If reference/@value is present, it SHALL begin with a '#' and SHALL point to its corresponding narrative
  expression:
    v: value.exists() implies value.startsWith('#')
  source:
    v: http://hl7.org/cda/us/ccda/StructureDefinition/SocialHistoryObservation
    link: http://hl7.org/cda/us/ccda/StructureDefinition/SocialHistoryObservation

id:
  v: Observation.text.thumbnail
path:
  v: Observation.text.thumbnail
label:
  v: Thumbnail
definition:
  v: An abbreviated rendition of the full data. A thumbnail requires significantly fewer resources than the full data, while still maintaining some distinctive similarity with the full data. A thumbnail is typically used with by-reference encapsulated data. It allows a user to select data more efficiently before actually downloading through the reference.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ED.thumbnail
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/ED

id:
  v: Observation.statusCode
path:
  v: Observation.statusCode
comment:
  v: SHALL contain exactly one [1..1] statusCode (CONF:4537-32881).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Observation.statusCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/CS
binding:
  strength:
    v: required
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-ActStatus
    link: http://terminology.hl7.org/ValueSet/v3-ActStatus

id:
  v: Observation.statusCode.nullFlavor
path:
  v: Observation.statusCode.nullFlavor
representation:
  v: xmlAttr
label:
  v: Exceptional Value Detail
definition:
  v: If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ANY.nullFlavor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor
    link: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor

id:
  v: Observation.statusCode.code
path:
  v: Observation.statusCode.code
representation:
  v: xmlAttr
label:
  v: Code
definition:
  v: The plain code symbol defined by the code system. For example, "784.0" is the code symbol of the ICD-9 code "784.0" for headache.
comment:
  v: This statusCode SHALL contain exactly one [1..1] @code="completed" (CodeSystem: HL7ActStatus urn:oid:2.16.840.1.113883.5.14) (CONF:4537-33073).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: CD.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
fixed:
  v: completed

id:
  v: Observation.statusCode.codeSystem
path:
  v: Observation.statusCode.codeSystem
representation:
  v: xmlAttr
label:
  v: Code System
definition:
  v: Specifies the code system that defines the code.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: CD.codeSystem
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/oid
    link: http://hl7.org/cda/stds/core/StructureDefinition/oid
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/uuid
    link: http://hl7.org/cda/stds/core/StructureDefinition/uuid
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/ruid
    link: http://hl7.org/cda/stds/core/StructureDefinition/ruid

id:
  v: Observation.statusCode.codeSystemName
path:
  v: Observation.statusCode.codeSystemName
representation:
  v: xmlAttr
label:
  v: Code System Name
definition:
  v: The common name of the coding system.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: CD.codeSystemName
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/st-simple

id:
  v: Observation.statusCode.codeSystemVersion
path:
  v: Observation.statusCode.codeSystemVersion
representation:
  v: xmlAttr
label:
  v: Code System Version
definition:
  v: If applicable, a version descriptor defined specifically for the given code system.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: CD.codeSystemVersion
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/st-simple

id:
  v: Observation.statusCode.displayName
path:
  v: Observation.statusCode.displayName
representation:
  v: xmlAttr
label:
  v: Display Name
definition:
  v: A name or title for the code, under which the sending system shows the code value to its users.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: CD.displayName
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/st-simple

id:
  v: Observation.statusCode.sdtcValueSet
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/xml-namespace
  value:
    v: urn:hl7-org:sdtc
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/xml-name
  value:
    v: valueSet
path:
  v: Observation.statusCode.sdtcValueSet
representation:
  v: xmlAttr
definition:
  v: The valueSet extension adds an attribute for elements with a CD dataType which indicates the particular value set constraining the coded concept.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CD.valueSet
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/oid
    link: http://hl7.org/cda/stds/core/StructureDefinition/oid

id:
  v: Observation.statusCode.sdtcValueSetVersion
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/xml-namespace
  value:
    v: urn:hl7-org:sdtc
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/xml-name
  value:
    v: valueSetVersion
path:
  v: Observation.statusCode.sdtcValueSetVersion
representation:
  v: xmlAttr
definition:
  v: The valueSetVersion extension adds an attribute for elements with a CD dataType which indicates the version of the particular value set constraining the coded concept.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CD.sdtcValueSetVersion
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/st-simple

id:
  v: Observation.statusCode.originalText
path:
  v: Observation.statusCode.originalText
label:
  v: Original Text
definition:
  v: The text or phrase used as the basis for the coding.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: CD.originalText
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/ED

id:
  v: Observation.statusCode.qualifier
path:
  v: Observation.statusCode.qualifier
label:
  v: Qualifier
definition:
  v: Specifies additional codes that increase the specificity of the the primary code.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: CD.qualifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/CR

id:
  v: Observation.statusCode.translation
path:
  v: Observation.statusCode.translation
representation:
  v: typeAttr
label:
  v: Translation
definition:
  v: A set of other concept descriptors that translate this concept descriptor into other code systems.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: CD.translation
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/CD

id:
  v: Observation.effectiveTime
path:
  v: Observation.effectiveTime
short:
  v: The effectiveTime represents the relevant time of the observation. A patient's "sexual orientation" may change and using effectiveTime/low and effectiveTime/high defines the time during which the patient had identified their emotional, romantic, sexual, or affectional attraction to another person.
comment:
  v: SHALL contain exactly one [1..1] effectiveTime (CONF:4537-33072).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Observation.effectiveTime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/IVL-TS

id:
  v: Observation.effectiveTime.nullFlavor
path:
  v: Observation.effectiveTime.nullFlavor
representation:
  v: xmlAttr
label:
  v: Exceptional Value Detail
definition:
  v: If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ANY.nullFlavor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor
    link: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor

id:
  v: Observation.effectiveTime.value
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/elementdefinition-date-format
  value:
    v: YYYYMMDDHHMMSS.UUUU[+|-ZZzz]
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/elementdefinition-date-rules
  value:
    v: year-valid
path:
  v: Observation.effectiveTime.value
representation:
  v: xmlAttr
definition:
  v: A quantity specifying a point on the axis of natural time. A point in time is most often represented as a calendar expression.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TS.value
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/ts-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/ts-simple

id:
  v: Observation.effectiveTime.operator
path:
  v: Observation.effectiveTime.operator
representation:
  v: xmlAttr
definition:
  v: A code specifying whether the set component is included (union) or excluded (set-difference) from the set, or other set operations with the current set component and the set as constructed from the representation stream up to the current point.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SXCM_TS.operator
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
default value:
  v: I
binding:
  strength:
    v: required
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-SetOperator
    link: http://terminology.hl7.org/ValueSet/v3-SetOperator

id:
  v: Observation.effectiveTime.low
path:
  v: Observation.effectiveTime.low
label:
  v: Low Boundary
definition:
  v: This is the low limit of the interval.
comment:
  v: This effectiveTime SHALL contain exactly one [1..1] low (CONF:4537-33074).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: IVL_TS.low
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/IVXB-TS

id:
  v: Observation.effectiveTime.center
path:
  v: Observation.effectiveTime.center
label:
  v: Central Value
definition:
  v: The arithmetic mean of the interval (low plus high divided by 2). The purpose of distinguishing the center as a semantic property is for conversions of intervals from and to point values.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IVL_TS.center
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/TS

id:
  v: Observation.effectiveTime.width
path:
  v: Observation.effectiveTime.width
label:
  v: Width
definition:
  v: The difference between high and low boundary. The purpose of distinguishing a width property is to handle all cases of incomplete information symmetrically. In any interval representation only two of the three properties high, low, and width need to be stated and the third can be derived.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IVL_TS.width
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/PQ

id:
  v: Observation.effectiveTime.high
path:
  v: Observation.effectiveTime.high
label:
  v: High Boundary
definition:
  v: This is the high limit of the interval.
comment:
  v: This effectiveTime MAY contain zero or one [0..1] high (CONF:4537-33075).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IVL_TS.high
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/IVXB-TS

id:
  v: Observation.priorityCode
path:
  v: Observation.priorityCode
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Observation.priorityCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/CE
binding:
  strength:
    v: example
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-ActPriority
    link: http://terminology.hl7.org/ValueSet/v3-ActPriority

id:
  v: Observation.repeatNumber
path:
  v: Observation.repeatNumber
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Observation.repeatNumber
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/IVL-INT

id:
  v: Observation.languageCode
path:
  v: Observation.languageCode
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Observation.languageCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/CS
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/all-languages
    link: http://hl7.org/fhir/ValueSet/all-languages

id:
  v: Observation.value
path:
  v: Observation.value
representation:
  v: typeAttr
short:
  v: NOTE for PQ values: The base CDA R2.0 standard requires @unit to be drawn from UCUM, and best practice is to use case sensitive UCUM units
comment:
  v: SHALL contain exactly one [1..1] value with @xsi:type="CD", where the code SHALL be selected from ValueSet Sexual Orientation urn:oid:2.16.840.1.113762.1.4.1240.11 DYNAMIC.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Observation.value
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/CD
binding:
  strength:
    v: required
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1240.11
    link: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1240.11
  additional:
    purpose:
      v: preferred
    value set:
      v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1196.788
      link: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1196.788
    documentation:
      v: If the Social History Observation is a Social Determinant of Health Observation, the observation/value code **SHOULD** be selected from ValueSet [Social Determinant of Health Conditions 2.16.840.1.113762.1.4.1196.788](https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1196.788/expansion) **DYNAMIC** (CONF:4515-32957).
    short doco:
      v: Social Determinant of Health Observations

id:
  v: Observation.interpretationCode
path:
  v: Observation.interpretationCode
min:
  v: 0
max:
  v: *
base:
  path:
    v: Observation.interpretationCode
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/CE
binding:
  strength:
    v: required
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-ObservationInterpretation
    link: http://terminology.hl7.org/ValueSet/v3-ObservationInterpretation

id:
  v: Observation.methodCode
path:
  v: Observation.methodCode
min:
  v: 0
max:
  v: *
base:
  path:
    v: Observation.methodCode
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/CE
binding:
  strength:
    v: example
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-ObservationMethod
    link: http://terminology.hl7.org/ValueSet/v3-ObservationMethod

id:
  v: Observation.targetSiteCode
path:
  v: Observation.targetSiteCode
definition:
  v: Drawn from concept domain ActSite
min:
  v: 0
max:
  v: *
base:
  path:
    v: Observation.targetSiteCode
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/CD

id:
  v: Observation.subject
path:
  v: Observation.subject
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Observation.subject
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Subject

id:
  v: Observation.specimen
path:
  v: Observation.specimen
min:
  v: 0
max:
  v: *
base:
  path:
    v: Observation.specimen
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Specimen

id:
  v: Observation.performer
path:
  v: Observation.performer
min:
  v: 0
max:
  v: *
base:
  path:
    v: Observation.performer
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Performer2

id:
  v: Observation.author
path:
  v: Observation.author
short:
  v: Base for all types and resources
definition:
  v: Defines the basic properties of every data value. This is an abstract type, meaning that no value can be just a data value without belonging to any concrete type. Every concrete type is a specialization of this general abstract DataValue type.
comment:
  v: SHOULD contain zero or more [0..*] Author Participation (identifier: urn:oid:2.16.840.1.113883.10.20.22.4.119) (CONF:4515-31869).
min:
  v: 0
max:
  v: *
base:
  path:
    v: Observation.author
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Author
  profile:
    v: http://hl7.org/cda/us/ccda/StructureDefinition/AuthorParticipation
    link: http://hl7.org/cda/us/ccda/StructureDefinition/AuthorParticipation
is modifier:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Observation.informant
path:
  v: Observation.informant
min:
  v: 0
max:
  v: *
base:
  path:
    v: Observation.informant
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Informant

id:
  v: Observation.participant
path:
  v: Observation.participant
min:
  v: 0
max:
  v: *
base:
  path:
    v: Observation.participant
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Participant2

id:
  v: Observation.entryRelationship
path:
  v: Observation.entryRelationship
slicing:
  discriminator:
    type:
      v: profile
    path:
      v: act
  discriminator:
    type:
      v: profile
    path:
      v: observation
  rules:
    v: open
comment:
  v: MAY contain zero or more [0..*] entryRelationship (CONF:4515-32969) such that it
min:
  v: 0
max:
  v: *
base:
  path:
    v: Observation.entryRelationship
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/EntryRelationship

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs
path:
  v: Observation.entryRelationship
slice name:
  v: social-history-entry-sprt-obs
short:
  v: When an Assessment Scale Observation is contained in a Social History Observation instance that is a Social Determinant of Health Social History Observation, that Assessment Scale Observation MAY contain Assessment Scale Supporting Observations that contain LOINC question and answer pairs from SDOH screening instruments.
comment:
  v: MAY contain zero or more [0..*] entryRelationship (CONF:4515-32958) such that it
min:
  v: 0
max:
  v: *
base:
  path:
    v: Observation.entryRelationship
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/EntryRelationship

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.nullFlavor
path:
  v: Observation.entryRelationship.nullFlavor
representation:
  v: xmlAttr
label:
  v: Exceptional Value Detail
definition:
  v: If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ANY.nullFlavor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor
    link: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.realmCode
path:
  v: Observation.entryRelationship.realmCode
definition:
  v: When valued in an instance, this attribute signals the imposition of realm-specific constraints. The value of this attribute identifies the realm in question
min:
  v: 0
max:
  v: *
base:
  path:
    v: InfrastructureRoot.realmCode
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/CS

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.typeId
path:
  v: Observation.entryRelationship.typeId
definition:
  v: When valued in an instance, this attribute signals the imposition of constraints defined in an HL7-specified message type. This might be a common type (also known as CMET in the messaging communication environment), or content included within a wrapper. The value of this attribute provides a unique identifier for the type in question.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: InfrastructureRoot.typeId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/II

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.typeId.nullFlavor
path:
  v: Observation.entryRelationship.typeId.nullFlavor
representation:
  v: xmlAttr
label:
  v: Exceptional Value Detail
definition:
  v: If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ANY.nullFlavor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor
    link: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.typeId.assigningAuthorityName
path:
  v: Observation.entryRelationship.typeId.assigningAuthorityName
representation:
  v: xmlAttr
label:
  v: Assigning Authority Name
definition:
  v: A human readable name or mnemonic for the assigning authority. The Assigning Authority Name has no computational value. The purpose of a Assigning Authority Name is to assist an unaided human interpreter of an II value to interpret the authority. Note: no automated processing must depend on the assigning authority name to be present in any form.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: II.assigningAuthorityName
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/st-simple

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.typeId.displayable
path:
  v: Observation.entryRelationship.typeId.displayable
representation:
  v: xmlAttr
label:
  v: Displayable
definition:
  v: Specifies if the identifier is intended for human display and data entry (displayable = true) as opposed to pure machine interoperation (displayable = false).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: II.displayable
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.typeId.root
path:
  v: Observation.entryRelationship.typeId.root
representation:
  v: xmlAttr
label:
  v: Root
definition:
  v: Identifies the type as an HL7 Registered model
min:
  v: 1
max:
  v: 1
base:
  path:
    v: II.root
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/oid
    link: http://hl7.org/cda/stds/core/StructureDefinition/oid
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/uuid
    link: http://hl7.org/cda/stds/core/StructureDefinition/uuid
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/ruid
    link: http://hl7.org/cda/stds/core/StructureDefinition/ruid
fixed:
  v: 2.16.840.1.113883.1.3

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.typeId.extension
path:
  v: Observation.entryRelationship.typeId.extension
representation:
  v: xmlAttr
label:
  v: Extension
definition:
  v: A character string as a unique identifier within the scope of the identifier root.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: II.extension
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/st-simple

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.templateId
path:
  v: Observation.entryRelationship.templateId
definition:
  v: When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question
min:
  v: 0
max:
  v: *
base:
  path:
    v: InfrastructureRoot.templateId
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/II

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.typeCode
path:
  v: Observation.entryRelationship.typeCode
representation:
  v: xmlAttr
comment:
  v: SHALL contain exactly one [1..1] @typeCode="SPRT" Has support (CodeSystem: HL7ActRelationshipType urn:oid:2.16.840.1.113883.5.1002) (CONF:4515-32960).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EntryRelationship.typeCode
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
fixed:
  v: SPRT
binding:
  strength:
    v: required
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-xActRelationshipEntryRelationship
    link: http://terminology.hl7.org/ValueSet/v3-xActRelationshipEntryRelationship

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.inversionInd
path:
  v: Observation.entryRelationship.inversionInd
representation:
  v: xmlAttr
definition:
  v: The entryRelationship.inversionInd can be set to "true" to indicate that the relationship should be interpreted as if the roles of the source and target entries were reversed.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.inversionInd
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.contextConductionInd
path:
  v: Observation.entryRelationship.contextConductionInd
representation:
  v: xmlAttr
definition:
  v: The entryRelationship.contextConductionInd differs from the otherwise common use of this attribute in that in all other cases where this attribute is used, the value is fixed at "true", whereas here the value is defaulted to "true", and can be changed to "false" when referencing an entry in the same document. Setting the context conduction to false when referencing an entry in the same document keeps clear the fact that the referenced object retains its original context.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.contextConductionInd
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple
default value:
  v: true

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.negationInd
path:
  v: Observation.entryRelationship.negationInd
representation:
  v: xmlAttr
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.negationInd
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.sequenceNumber
path:
  v: Observation.entryRelationship.sequenceNumber
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.sequenceNumber
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/INT

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.seperatableInd
path:
  v: Observation.entryRelationship.seperatableInd
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.seperatableInd
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/BL

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.act
path:
  v: Observation.entryRelationship.act
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.act
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Act

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.encounter
path:
  v: Observation.entryRelationship.encounter
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.encounter
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Encounter

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.observation
path:
  v: Observation.entryRelationship.observation
short:
  v: Base for all types and resources
definition:
  v: Defines the basic properties of every data value. This is an abstract type, meaning that no value can be just a data value without belonging to any concrete type. Every concrete type is a specialization of this general abstract DataValue type.
comment:
  v: SHALL contain exactly one [1..1] Assessment Scale Observation (identifier: urn:oid:2.16.840.1.113883.10.20.22.4.69) (CONF:4515-32959).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EntryRelationship.observation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Observation
  profile:
    v: http://hl7.org/cda/us/ccda/StructureDefinition/AssessmentScaleObservation
    link: http://hl7.org/cda/us/ccda/StructureDefinition/AssessmentScaleObservation
constraint:
  key:
    v: should-text-ref-value
  severity:
    v: warning
  human:
    v: SHOULD contain text/reference/@value
  expression:
    v: text.reference.value.exists()
  source:
    v: http://hl7.org/cda/us/ccda/StructureDefinition/AssessmentScaleObservation
    link: http://hl7.org/cda/us/ccda/StructureDefinition/AssessmentScaleObservation
is modifier:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.observationMedia
path:
  v: Observation.entryRelationship.observationMedia
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.observationMedia
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/ObservationMedia

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.organizer
path:
  v: Observation.entryRelationship.organizer
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.organizer
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Organizer

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.procedure
path:
  v: Observation.entryRelationship.procedure
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.procedure
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Procedure

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.regionOfInterest
path:
  v: Observation.entryRelationship.regionOfInterest
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.regionOfInterest
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/RegionOfInterest

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.substanceAdministration
path:
  v: Observation.entryRelationship.substanceAdministration
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.substanceAdministration
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/SubstanceAdministration

id:
  v: Observation.entryRelationship:social-history-entry-sprt-obs.supply
path:
  v: Observation.entryRelationship.supply
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.supply
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Supply

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act
path:
  v: Observation.entryRelationship
slice name:
  v: social-history-entry-sprt-act
short:
  v: When an Entry Reference is contained in a Social History Template instance that is a Social Determinant of Health Social History, that Entry Reference **MAY** reference an Assessment Scale Observation elsewhere in the document that represent LOINC question and answer pairs from SDOH screening instruments.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Observation.entryRelationship
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/EntryRelationship

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.nullFlavor
path:
  v: Observation.entryRelationship.nullFlavor
representation:
  v: xmlAttr
label:
  v: Exceptional Value Detail
definition:
  v: If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ANY.nullFlavor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor
    link: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.realmCode
path:
  v: Observation.entryRelationship.realmCode
definition:
  v: When valued in an instance, this attribute signals the imposition of realm-specific constraints. The value of this attribute identifies the realm in question
min:
  v: 0
max:
  v: *
base:
  path:
    v: InfrastructureRoot.realmCode
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/CS

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.typeId
path:
  v: Observation.entryRelationship.typeId
definition:
  v: When valued in an instance, this attribute signals the imposition of constraints defined in an HL7-specified message type. This might be a common type (also known as CMET in the messaging communication environment), or content included within a wrapper. The value of this attribute provides a unique identifier for the type in question.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: InfrastructureRoot.typeId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/II

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.typeId.nullFlavor
path:
  v: Observation.entryRelationship.typeId.nullFlavor
representation:
  v: xmlAttr
label:
  v: Exceptional Value Detail
definition:
  v: If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ANY.nullFlavor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor
    link: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.typeId.assigningAuthorityName
path:
  v: Observation.entryRelationship.typeId.assigningAuthorityName
representation:
  v: xmlAttr
label:
  v: Assigning Authority Name
definition:
  v: A human readable name or mnemonic for the assigning authority. The Assigning Authority Name has no computational value. The purpose of a Assigning Authority Name is to assist an unaided human interpreter of an II value to interpret the authority. Note: no automated processing must depend on the assigning authority name to be present in any form.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: II.assigningAuthorityName
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/st-simple

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.typeId.displayable
path:
  v: Observation.entryRelationship.typeId.displayable
representation:
  v: xmlAttr
label:
  v: Displayable
definition:
  v: Specifies if the identifier is intended for human display and data entry (displayable = true) as opposed to pure machine interoperation (displayable = false).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: II.displayable
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.typeId.root
path:
  v: Observation.entryRelationship.typeId.root
representation:
  v: xmlAttr
label:
  v: Root
definition:
  v: Identifies the type as an HL7 Registered model
min:
  v: 1
max:
  v: 1
base:
  path:
    v: II.root
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/oid
    link: http://hl7.org/cda/stds/core/StructureDefinition/oid
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/uuid
    link: http://hl7.org/cda/stds/core/StructureDefinition/uuid
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/ruid
    link: http://hl7.org/cda/stds/core/StructureDefinition/ruid
fixed:
  v: 2.16.840.1.113883.1.3

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.typeId.extension
path:
  v: Observation.entryRelationship.typeId.extension
representation:
  v: xmlAttr
label:
  v: Extension
definition:
  v: A character string as a unique identifier within the scope of the identifier root.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: II.extension
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/st-simple

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.templateId
path:
  v: Observation.entryRelationship.templateId
definition:
  v: When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question
min:
  v: 0
max:
  v: *
base:
  path:
    v: InfrastructureRoot.templateId
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/II

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.typeCode
path:
  v: Observation.entryRelationship.typeCode
representation:
  v: xmlAttr
comment:
  v: SHALL contain exactly one [1..1] @typeCode="SPRT" Has support (CodeSystem: HL7ActRelationshipType urn:oid:2.16.840.1.113883.5.1002) (CONF:4515-32971).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EntryRelationship.typeCode
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
fixed:
  v: SPRT
binding:
  strength:
    v: required
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-xActRelationshipEntryRelationship
    link: http://terminology.hl7.org/ValueSet/v3-xActRelationshipEntryRelationship

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.inversionInd
path:
  v: Observation.entryRelationship.inversionInd
representation:
  v: xmlAttr
definition:
  v: The entryRelationship.inversionInd can be set to "true" to indicate that the relationship should be interpreted as if the roles of the source and target entries were reversed.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.inversionInd
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.contextConductionInd
path:
  v: Observation.entryRelationship.contextConductionInd
representation:
  v: xmlAttr
definition:
  v: The entryRelationship.contextConductionInd differs from the otherwise common use of this attribute in that in all other cases where this attribute is used, the value is fixed at "true", whereas here the value is defaulted to "true", and can be changed to "false" when referencing an entry in the same document. Setting the context conduction to false when referencing an entry in the same document keeps clear the fact that the referenced object retains its original context.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.contextConductionInd
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple
default value:
  v: true

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.negationInd
path:
  v: Observation.entryRelationship.negationInd
representation:
  v: xmlAttr
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.negationInd
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.sequenceNumber
path:
  v: Observation.entryRelationship.sequenceNumber
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.sequenceNumber
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/INT

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.seperatableInd
path:
  v: Observation.entryRelationship.seperatableInd
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.seperatableInd
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/BL

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.act
path:
  v: Observation.entryRelationship.act
short:
  v: Base for all types and resources
definition:
  v: Defines the basic properties of every data value. This is an abstract type, meaning that no value can be just a data value without belonging to any concrete type. Every concrete type is a specialization of this general abstract DataValue type.
comment:
  v: SHALL contain exactly one [1..1] Entry Reference (identifier: urn:oid:2.16.840.1.113883.10.20.22.4.122) (CONF:4515-32970).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: EntryRelationship.act
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Act
  profile:
    v: http://hl7.org/cda/us/ccda/StructureDefinition/EntryReference
    link: http://hl7.org/cda/us/ccda/StructureDefinition/EntryReference
constraint:
  key:
    v: should-text-ref-value
  severity:
    v: warning
  human:
    v: SHOULD contain text/reference/@value
  expression:
    v: text.reference.value.exists()
  source:
    v: http://hl7.org/cda/us/ccda/StructureDefinition/EntryReference
    link: http://hl7.org/cda/us/ccda/StructureDefinition/EntryReference
is modifier:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.encounter
path:
  v: Observation.entryRelationship.encounter
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.encounter
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Encounter

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.observation
path:
  v: Observation.entryRelationship.observation
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.observation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Observation

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.observationMedia
path:
  v: Observation.entryRelationship.observationMedia
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.observationMedia
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/ObservationMedia

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.organizer
path:
  v: Observation.entryRelationship.organizer
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.organizer
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Organizer

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.procedure
path:
  v: Observation.entryRelationship.procedure
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.procedure
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Procedure

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.regionOfInterest
path:
  v: Observation.entryRelationship.regionOfInterest
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.regionOfInterest
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/RegionOfInterest

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.substanceAdministration
path:
  v: Observation.entryRelationship.substanceAdministration
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.substanceAdministration
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/SubstanceAdministration

id:
  v: Observation.entryRelationship:social-history-entry-sprt-act.supply
path:
  v: Observation.entryRelationship.supply
min:
  v: 0
max:
  v: 1
base:
  path:
    v: EntryRelationship.supply
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Supply

id:
  v: Observation.reference
path:
  v: Observation.reference
min:
  v: 0
max:
  v: *
base:
  path:
    v: Observation.reference
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Reference

id:
  v: Observation.precondition
path:
  v: Observation.precondition
min:
  v: 0
max:
  v: *
base:
  path:
    v: Observation.precondition
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Precondition

id:
  v: Observation.sdtcPrecondition2
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/xml-namespace
  value:
    v: urn:hl7-org:sdtc
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/xml-name
  value:
    v: precondition2
path:
  v: Observation.sdtcPrecondition2
min:
  v: 0
max:
  v: *
base:
  path:
    v: Observation.sdtcPrecondition2
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/Precondition2

id:
  v: Observation.referenceRange
path:
  v: Observation.referenceRange
definition:
  v: Relates an Observation to the ObservationRange class, where the expected range of values for a particular observation can be specified.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Observation.referenceRange
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/InfrastructureRoot

id:
  v: Observation.referenceRange.nullFlavor
path:
  v: Observation.referenceRange.nullFlavor
representation:
  v: xmlAttr
label:
  v: Exceptional Value Detail
definition:
  v: If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ANY.nullFlavor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor
    link: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor

id:
  v: Observation.referenceRange.realmCode
path:
  v: Observation.referenceRange.realmCode
definition:
  v: When valued in an instance, this attribute signals the imposition of realm-specific constraints. The value of this attribute identifies the realm in question
min:
  v: 0
max:
  v: *
base:
  path:
    v: InfrastructureRoot.realmCode
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/CS

id:
  v: Observation.referenceRange.typeId
path:
  v: Observation.referenceRange.typeId
definition:
  v: When valued in an instance, this attribute signals the imposition of constraints defined in an HL7-specified message type. This might be a common type (also known as CMET in the messaging communication environment), or content included within a wrapper. The value of this attribute provides a unique identifier for the type in question.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: InfrastructureRoot.typeId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/II

id:
  v: Observation.referenceRange.typeId.nullFlavor
path:
  v: Observation.referenceRange.typeId.nullFlavor
representation:
  v: xmlAttr
label:
  v: Exceptional Value Detail
definition:
  v: If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ANY.nullFlavor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor
    link: http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor

id:
  v: Observation.referenceRange.typeId.assigningAuthorityName
path:
  v: Observation.referenceRange.typeId.assigningAuthorityName
representation:
  v: xmlAttr
label:
  v: Assigning Authority Name
definition:
  v: A human readable name or mnemonic for the assigning authority. The Assigning Authority Name has no computational value. The purpose of a Assigning Authority Name is to assist an unaided human interpreter of an II value to interpret the authority. Note: no automated processing must depend on the assigning authority name to be present in any form.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: II.assigningAuthorityName
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/st-simple

id:
  v: Observation.referenceRange.typeId.displayable
path:
  v: Observation.referenceRange.typeId.displayable
representation:
  v: xmlAttr
label:
  v: Displayable
definition:
  v: Specifies if the identifier is intended for human display and data entry (displayable = true) as opposed to pure machine interoperation (displayable = false).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: II.displayable
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/bl-simple

id:
  v: Observation.referenceRange.typeId.root
path:
  v: Observation.referenceRange.typeId.root
representation:
  v: xmlAttr
label:
  v: Root
definition:
  v: Identifies the type as an HL7 Registered model
min:
  v: 1
max:
  v: 1
base:
  path:
    v: II.root
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/oid
    link: http://hl7.org/cda/stds/core/StructureDefinition/oid
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/uuid
    link: http://hl7.org/cda/stds/core/StructureDefinition/uuid
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/ruid
    link: http://hl7.org/cda/stds/core/StructureDefinition/ruid
fixed:
  v: 2.16.840.1.113883.1.3

id:
  v: Observation.referenceRange.typeId.extension
path:
  v: Observation.referenceRange.typeId.extension
representation:
  v: xmlAttr
label:
  v: Extension
definition:
  v: A character string as a unique identifier within the scope of the identifier root.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: II.extension
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/st-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/st-simple

id:
  v: Observation.referenceRange.templateId
path:
  v: Observation.referenceRange.templateId
definition:
  v: When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question
min:
  v: 0
max:
  v: *
base:
  path:
    v: InfrastructureRoot.templateId
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/II

id:
  v: Observation.referenceRange.typeCode
path:
  v: Observation.referenceRange.typeCode
representation:
  v: xmlAttr
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Observation.referenceRange.typeCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
  profile:
    v: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
    link: http://hl7.org/cda/stds/core/StructureDefinition/cs-simple
fixed:
  v: REFV
binding:
  strength:
    v: required
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-ActRelationshipType|2.0.0
    link: 2.0
    link: .0

id:
  v: Observation.referenceRange.observationRange
path:
  v: Observation.referenceRange.observationRange
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Observation.referenceRange.observationRange
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/ObservationRange

id:
  v: Observation.sdtcInFulfillmentOf1
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/xml-namespace
  value:
    v: urn:hl7-org:sdtc
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/xml-name
  value:
    v: inFulfillmentOf1
path:
  v: Observation.sdtcInFulfillmentOf1
min:
  v: 0
max:
  v: *
base:
  path:
    v: Observation.sdtcInFulfillmentOf1
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://hl7.org/cda/stds/core/StructureDefinition/InFulfillmentOf1

element:
  id:
    v: Observation
  path:
    v: Observation
element:
  id:
    v: Observation.templateId
  path:
    v: Observation.templateId
  min:
    v: 2
element:
  id:
    v: Observation.templateId:sexual-orientation-obs
  path:
    v: Observation.templateId
  slice name:
    v: sexual-orientation-obs
  min:
    v: 1
  max:
    v: 1
element:
  id:
    v: Observation.templateId:sexual-orientation-obs.root
  path:
    v: Observation.templateId.root
  min:
    v: 1
  pattern:
    v: 2.16.840.1.113883.10.20.22.4.501
element:
  id:
    v: Observation.templateId:sexual-orientation-obs.extension
  path:
    v: Observation.templateId.extension
  min:
    v: 1
  pattern:
    v: 2023-05-01
element:
  id:
    v: Observation.classCode
  path:
    v: Observation.classCode
  comment:
    v: SHALL contain exactly one [1..1] @classCode="OBS" (CodeSystem: HL7ActClass urn:oid:2.16.840.1.113883.5.6 STATIC) (CONF:4537-193).
element:
  id:
    v: Observation.moodCode
  path:
    v: Observation.moodCode
  comment:
    v: SHALL contain exactly one [1..1] @moodCode="EVN" (CodeSystem: HL7ActMood urn:oid:2.16.840.1.113883.5.1001 STATIC) (CONF:4537-194).
element:
  id:
    v: Observation.code
  path:
    v: Observation.code
  comment:
    v: SHALL contain exactly one [1..1] code (CONF:4537-186).
element:
  id:
    v: Observation.code.code
  path:
    v: Observation.code.code
  comment:
    v: This code SHALL contain exactly one [1..1] @code="76690-7" Sexual Orientation (CONF:4537-190).
  min:
    v: 1
  pattern:
    v: 76690-7
element:
  id:
    v: Observation.code.codeSystem
  path:
    v: Observation.code.codeSystem
  comment:
    v: This code SHALL contain exactly one [1..1] @codeSystem="2.16.840.1.113883.6.1" (CodeSystem: LOINC urn:oid:2.16.840.1.113883.6.1 STATIC) (CONF:4537-191).
  min:
    v: 1
  pattern:
    v: 2.16.840.1.113883.6.1
element:
  id:
    v: Observation.statusCode
  path:
    v: Observation.statusCode
  comment:
    v: SHALL contain exactly one [1..1] statusCode (CONF:4537-32881).
element:
  id:
    v: Observation.statusCode.code
  path:
    v: Observation.statusCode.code
  comment:
    v: This statusCode SHALL contain exactly one [1..1] @code="completed" (CodeSystem: HL7ActStatus urn:oid:2.16.840.1.113883.5.14) (CONF:4537-33073).
element:
  id:
    v: Observation.effectiveTime
  path:
    v: Observation.effectiveTime
  short:
    v: The effectiveTime represents the relevant time of the observation. A patient's "sexual orientation" may change and using effectiveTime/low and effectiveTime/high defines the time during which the patient had identified their emotional, romantic, sexual, or affectional attraction to another person.
  comment:
    v: SHALL contain exactly one [1..1] effectiveTime (CONF:4537-33072).
element:
  id:
    v: Observation.effectiveTime.low
  path:
    v: Observation.effectiveTime.low
  comment:
    v: This effectiveTime SHALL contain exactly one [1..1] low (CONF:4537-33074).
  min:
    v: 1
element:
  id:
    v: Observation.effectiveTime.high
  path:
    v: Observation.effectiveTime.high
  comment:
    v: This effectiveTime MAY contain zero or one [0..1] high (CONF:4537-33075).
element:
  id:
    v: Observation.value
  path:
    v: Observation.value
  comment:
    v: SHALL contain exactly one [1..1] value with @xsi:type="CD", where the code SHALL be selected from ValueSet Sexual Orientation urn:oid:2.16.840.1.113762.1.4.1240.11 DYNAMIC.
  min:
    v: 1
  type:
    code:
      v: http://hl7.org/cda/stds/core/StructureDefinition/CD
  binding:
    strength:
      v: required
    value set:
      v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1240.11
      link: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1240.11