ObservationDefinition-test-method-drug-pq
type: StructureDefinition
node role: treeRoot
id:
  v: ObservationDefinition-test-method-drug-pq
text:
  status:
    v: extensions
  div: Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> ObservationDefinition 0..* ObservationDefinition Definition of an observation title 0..1 string Name for this ObservationDefinition (human friendly) Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url test-comment-title S 0..1 string test-comment-title URL: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-test-comment-pq code S 1..1 CodeableConcept Type of observation Binding: Test Method (example) method S 0..1 CodeableConcept Method used to produce the observation specimen S 0..* Reference(SpecimenDefinition) Kind of specimen used by this type of observation device S 0..* Reference(DeviceDefinition | Device) Measurement device or model of device qualifiedValue S 0..* BackboneElement Set of qualified values for observation results Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url qualified-value-text S 0..* string qualified-value-text URL: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-text-pq qualified-value-display S 0..* string qualified-value-display URL: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-display-pq qualified-value-target S 0..* Quantity qualified-value-target URL: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-target-pq qualified-value-criticality S 0..* CodeableConcept qualified-value-criticality URL: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-criticality-pq Binding: Qualified Value Criticality (example) appliesTo Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url test-comment S 0..1 string test-comment URL: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-test-comment-pq range S 0..1 Range The range for continuous or ordinal observations Slices for extension 0..…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
  value:
    v: brr
url:
  v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/ObservationDefinition-test-method-drug-pq
identifier:
  system:
    v: urn:ietf:rfc:3986
  value:
    v: urn:oid:2.16.840.1.113883.4.642.40.41.42.32
version:
  v: 1.0.0
name:
  v: ObservationDefinitionTestMethodPq
title:
  v: ObservationDefinition - Test Method PQ
status:
  v: active
date:
  v: 2024-05-08T12:53:57+00:00
publisher:
  v: HL7 International / Biomedical Research and Regulation
contact:
  name:
    v: HL7 International - Biomedical Research and Regulation
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/rcrim
description:
  v: This ObservationDefinition profile represents information about pharmaceutical quality (PQ) tests and acceptance criteria.
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
    code:
      v: 001
    display:
      v: World
  text:
    v: World
fhir version:
  v: 5.0.0
mapping:
  identity:
    v: workflow
  uri:
    v: http://hl7.org/fhir/workflow
  name:
    v: Workflow Pattern
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
  name:
    v: FiveWs Pattern Mapping
mapping:
  identity:
    v: v2
  uri:
    v: http://hl7.org/v2
  name:
    v: HL7 V2 Mapping
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: ObservationDefinition
base definition:
  v: http://hl7.org/fhir/StructureDefinition/ObservationDefinition
  link: http://hl7.org/fhir/StructureDefinition/ObservationDefinition
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: ObservationDefinition
    path:
      v: ObservationDefinition
    short:
      v: Definition of an observation
    definition:
      v: Set of definitional characteristics for a kind of observation or measurement produced or consumed by an orderable health care service.
    comment:
      v: An instance of this resource informs the consumer of a health-related service (such as a lab diagnostic test or panel) about how the observations used or produced by this service will look like.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: ObservationDefinition
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: cnl-0
      severity:
        v: warning
      human:
        v: Name should be usable as an identifier for the module by machine processing applications such as code generation
      expression:
        v: name.exists() implies name.matches('^[A-Z]([A-Za-z0-9_]){1,254}$')
      source:
        v: http://hl7.org/fhir/StructureDefinition/ObservationDefinition
        link: http://hl7.org/fhir/StructureDefinition/ObservationDefinition
    constraint:
      key:
        v: obd-0
      severity:
        v: error
      human:
        v: If permittedUnit exists, then permittedDataType=Quantity must exist.
      expression:
        v: permittedUnit.exists() implies (permittedDataType = 'Quantity').exists()
      source:
        v: http://hl7.org/fhir/StructureDefinition/ObservationDefinition
        link: http://hl7.org/fhir/StructureDefinition/ObservationDefinition
    must support:
      v: false
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: w5
      map:
        v: conformance.behavior,clinical.diagnostics
    mapping:
      identity:
        v: workflow
      map:
        v: Definition
    mapping:
      identity:
        v: v2
      map:
        v: OM2 OM3 OMC
    mapping:
      identity:
        v: rim
      map:
        v: Observation[classCode=OBS, moodCode=DEF]
  element:
    id:
      v: ObservationDefinition.id
    path:
      v: ObservationDefinition.id
    short:
      v: Logical id of this artifact
    definition:
      v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
    comment:
      v: Within the context of the FHIR RESTful interactions, the resource has an id except for cases like the create and conditional update. Otherwise, the use of the resouce id depends on the given use case.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: Resource.id
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: http://hl7.org/fhirpath/System.String
    must support:
      v: false
    is modifier:
      v: false
    is summary:
      v: true
  element:
    id:
      v: ObservationDefinition.meta
    path:
      v: ObservationDefinition.meta

v: id

v: Metadata about the resource

v: The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.

v: 0

v: 1

path:
  v: Resource.meta
min:
  v: 0
max:
  v: 1

code:
  v: Meta

key:
  v: ele-1
severity:
  v: error
human:
  v: All FHIR elements must have a @value or children
expression:
  v: hasValue() or (children().count() > id.count())
source:
  v: http://hl7.org/fhir/StructureDefinition/Element
  link: http://hl7.org/fhir/StructureDefinition/Element

v: false

v: false

v: true

id:
  v: ObservationDefinition.implicitRules
path:
  v: ObservationDefinition.implicitRules
short:
  v: A set of rules under which this content was created
definition:
  v: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
comment:
  v: Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of its narrative along with other profiles, value sets, etc.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies its meaning or interpretation
is summary:
  v: true

id:
  v: ObservationDefinition.language
path:
  v: ObservationDefinition.language
short:
  v: Language of the resource content
definition:
  v: The base language in which the resource is written.
comment:
  v: Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: Language
  strength:
    v: required
  description:
    v: IETF language tag for a human language
  value set:
    v: http://hl7.org/fhir/ValueSet/all-languages|5.0.0
    link: 5.0
    link: .0
  additional:
    purpose:
      v: starter
    value set:
      v: http://hl7.org/fhir/ValueSet/languages
      link: http://hl7.org/fhir/ValueSet/languages

id:
  v: ObservationDefinition.text
path:
  v: ObservationDefinition.text
short:
  v: Text summary of the resource, for human interpretation
definition:
  v: A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
comment:
  v: Contained resources do not have a narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded information is added later.
alias:
  v: narrative
alias:
  v: html
alias:
  v: xhtml
alias:
  v: display
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
condition:
  v: dom-6
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: ObservationDefinition.contained
path:
  v: ObservationDefinition.contained
short:
  v: Contained, inline Resources
definition:
  v: These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning.
comment:
  v: This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags in their meta elements, but SHALL NOT have security labels.
alias:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
condition:
  v: dom-2
condition:
  v: dom-4
condition:
  v: dom-3
condition:
  v: dom-5
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ObservationDefinition.extension
path:
  v: ObservationDefinition.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ObservationDefinition.modifierExtension
path:
  v: ObservationDefinition.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: false
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ObservationDefinition.url
path:
  v: ObservationDefinition.url
short:
  v: Logical canonical URL to reference this ObservationDefinition (globally unique)
definition:
  v: An absolute URL that is used to identify this ObservationDefinition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this ObservationDefinition is (or will be) published. The URL SHOULD include the major version of the ObservationDefinition. For more information see Technical and Business Versions.
comment:
  v: Can be a urn:uuid: or a urn:oid:, but real http: addresses are preferred. This is the URI that will be used when making canonical references to this resource.
requirements:
  v: Allows the ObservationDefinition to be referenced by a single globally unique identifier.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.url
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.url

id:
  v: ObservationDefinition.identifier
path:
  v: ObservationDefinition.identifier
short:
  v: Business identifier of the ObservationDefinition
definition:
  v: Business identifiers assigned to this ObservationDefinition. by the performer and/or other systems. These identifiers remain constant as the resource is updated and propagates from server to server.
comment:
  v: This is a business identifier, not a resource identifier. It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.
requirements:
  v: Allows identification of the ObservationDefinition as it is known by various participating systems and in a way that remains consistent across servers.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.identifier

id:
  v: ObservationDefinition.version
path:
  v: ObservationDefinition.version
short:
  v: Business version of the ObservationDefinition
definition:
  v: The identifier that is used to identify this version of the ObservationDefinition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the ObservationDefinition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions are orderable.
comment:
  v: There may be multiple different instances of an observationDefinition that have the same identifier but different versions.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.version
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.version

id:
  v: ObservationDefinition.versionAlgorithm[x]
path:
  v: ObservationDefinition.versionAlgorithm[x]
short:
  v: How to compare versions
definition:
  v: Indicates the mechanism used to compare versions to determine which is more current.
comment:
  v: If set as a string, this is a FHIRPath expression that has two additional context variables passed in - %version1 and %version2 and will return a negative number if version1 is newer, a positive number if version2 and a 0 if the version ordering can't be successfully be determined.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.versionAlgorithm[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
type:
  code:
    v: Coding
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: extensible
  value set:
    v: http://hl7.org/fhir/ValueSet/version-algorithm
    link: http://hl7.org/fhir/ValueSet/version-algorithm

id:
  v: ObservationDefinition.name
path:
  v: ObservationDefinition.name
short:
  v: Name for this ObservationDefinition (computer friendly)
definition:
  v: A natural language name identifying the ObservationDefinition. This name should be usable as an identifier for the module by machine processing applications such as code generation.
comment:
  v: The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.
requirements:
  v: Support human navigation and code generation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.name
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
condition:
  v: cnl-0
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.name

id:
  v: ObservationDefinition.title
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
path:
  v: ObservationDefinition.title
short:
  v: Name for this ObservationDefinition (human friendly)
definition:
  v: A short, descriptive, user-friendly title for the ObservationDefinition.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.title
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.title

id:
  v: ObservationDefinition.title.id
path:
  v: ObservationDefinition.title.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false

id:
  v: ObservationDefinition.title.extension
path:
  v: ObservationDefinition.title.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: ObservationDefinition.title.extension:test-comment-title
path:
  v: ObservationDefinition.title.extension
slice name:
  v: test-comment-title
short:
  v: test-comment-title
definition:
  v: An Extension
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-test-comment-pq
    link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-test-comment-pq
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: true
is modifier:
  v: false

id:
  v: ObservationDefinition.title.value
path:
  v: ObservationDefinition.title.value
representation:
  v: xmlAttr
short:
  v: Primitive value for string
definition:
  v: The actual value
min:
  v: 0
max:
  v: 1
base:
  path:
    v: string.value
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/regex
    value:
      v: ^[\s\S]+$
  code:
    v: http://hl7.org/fhirpath/System.String
max length:
  v: 1048576
is modifier:
  v: false
is summary:
  v: false

id:
  v: ObservationDefinition.status
path:
  v: ObservationDefinition.status
short:
  v: draft | active | retired | unknown
definition:
  v: The current state of the ObservationDefinition.
comment:
  v: A nominal state-transition diagram can be found in the [Definition pattern](definition.html#statemachine) documentation Unknown does not represent "other" - one of the defined statuses must apply. Unknown is used when the authoring system is not sure what the current status is. See guidance around (not) making local changes to elements [here](canonicalresource.html#localization).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ObservationDefinition.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: true
is modifier reason:
  v: Not known why this is labelled a modifier
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: PublicationStatus
  strength:
    v: required
  description:
    v: Codes identifying the state of an ObservationDefinition.
  value set:
    v: http://hl7.org/fhir/ValueSet/publication-status|5.0.0
    link: 5.0
    link: .0
mapping:
  identity:
    v: workflow
  map:
    v: Definition.status

id:
  v: ObservationDefinition.experimental
path:
  v: ObservationDefinition.experimental
short:
  v: If for testing purposes, not real usage
definition:
  v: A flag to indicate that this ObservationDefinition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.
comment:
  v: Allows filtering of ObservationDefinition that are appropriate for use vs. not.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.experimental
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
meaning when missing:
  v: If absent, this resource is treated as though it is not experimental.
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.experimental

id:
  v: ObservationDefinition.date
path:
  v: ObservationDefinition.date
short:
  v: Date last changed
definition:
  v: The date (and optionally time) when the ObservationDefinition was last significantly changed. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the ObservationDefinition changes.
comment:
  v: The date is often not tracked until the resource is published, but may be present on draft content. Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the ObservationDefinition. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource. See guidance around (not) making local changes to elements [here](canonicalresource.html#localization).
alias:
  v: revision date
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.date
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.date

id:
  v: ObservationDefinition.publisher
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
path:
  v: ObservationDefinition.publisher
short:
  v: The name of the individual or organization that published the ObservationDefinition
definition:
  v: Helps establish the "authority/credibility" of the ObservationDefinition. May also allow for contact.
requirements:
  v: Usually an organization, but may be an individual. The publisher (or steward) of the ObservationDefinition is the organization or individual primarily responsible for the maintenance and upkeep of the ObservationDefinition. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the ObservationDefinition. This item SHOULD be populated unless the information is available from context.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.publisher
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.publisher

id:
  v: ObservationDefinition.contact
path:
  v: ObservationDefinition.contact
short:
  v: Contact details for the publisher
definition:
  v: Contact details to assist a user in finding and communicating with the publisher.
comment:
  v: May be a web site, an email address, a telephone number, etc. See guidance around (not) making local changes to elements [here](canonicalresource.html#localization).
min:
  v: 0
max:
  v: *
base:
  path:
    v: ObservationDefinition.contact
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: ContactDetail
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.contact

id:
  v: ObservationDefinition.description
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
path:
  v: ObservationDefinition.description
short:
  v: Natural language description of the ObservationDefinition
definition:
  v: A free text natural language description of the ObservationDefinition from the consumer's perspective.
comment:
  v: This description can be used to capture details such as comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the module as conveyed in the text field of the resource itself. This item SHOULD be populated unless the information is available from context.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: markdown
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Definition.description

id:
  v: ObservationDefinition.useContext
path:
  v: ObservationDefinition.useContext
short:
  v: Content intends to support these contexts
definition:
  v: The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate ObservationDefinition instances.
comment:
  v: When multiple usageContexts are specified, there is no expectation for whether all or any of the contexts apply.
requirements:
  v: Assist in searching for appropriate content.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ObservationDefinition.useContext
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: UsageContext
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.useContext

id:
  v: ObservationDefinition.jurisdiction
path:
  v: ObservationDefinition.jurisdiction
short:
  v: Intended jurisdiction for this ObservationDefinition (if applicable)
definition:
  v: A jurisdiction in which the ObservationDefinition is intended to be used.
comment:
  v: It may be possible for the ObservationDefinition to be used in jurisdictions other than those for which it was originally designed or intended. DEPRECATION NOTE: For consistency, implementations are encouraged to migrate to using the new 'jurisdiction' code in the useContext element. (I.e. useContext.code indicating http://terminology.hl7.org/CodeSystem/usage-context-type#jurisdiction and useContext.valueCodeableConcept indicating the jurisdiction.)
min:
  v: 0
max:
  v: *
base:
  path:
    v: ObservationDefinition.jurisdiction
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: Jurisdiction
  strength:
    v: extensible
  description:
    v: Codes for country, country subdivision and region for indicating where a resource is intended to be used.
  value set:
    v: http://hl7.org/fhir/ValueSet/jurisdiction
    link: http://hl7.org/fhir/ValueSet/jurisdiction
mapping:
  identity:
    v: workflow
  map:
    v: Definition.jurisdiction

id:
  v: ObservationDefinition.purpose
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
path:
  v: ObservationDefinition.purpose
short:
  v: Why this ObservationDefinition is defined
definition:
  v: Explains why this ObservationDefinition is needed and why it has been designed as it has.
comment:
  v: This element does not describe the usage of the ObservationDefinition. Rather it is for traceability of ''why'' the resource is either needed or ''why'' it is defined as it is. This may be used to point to source materials or specifications that drove the structure of this ObservationDefinition.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.purpose
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: markdown
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Definition.purpose

id:
  v: ObservationDefinition.copyright
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
path:
  v: ObservationDefinition.copyright
short:
  v: Use and/or publishing restrictions
definition:
  v: Copyright statement relating to the ObservationDefinition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the ObservationDefinition.
requirements:
  v: Consumers of the ObservationDefinition must be able to determine any legal restrictions on the use of the artifact and/or its content.
alias:
  v: License
alias:
  v: Restrictions
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.copyright
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: markdown
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Definition.copyright

id:
  v: ObservationDefinition.copyrightLabel
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
path:
  v: ObservationDefinition.copyrightLabel
short:
  v: Copyright holder and year(s)
definition:
  v: A short string (<50 characters), suitable for inclusion in a page footer that identifies the copyright holder, effective period, and optionally whether rights are resctricted. (e.g. 'All rights reserved', 'Some rights reserved').
comment:
  v: The (c) symbol should NOT be included in this string. It will be added by software when rendering the notation. Full details about licensing, restrictions, warrantees, etc. goes in the more general 'copyright' element.
requirements:
  v: Defines the content expected to be rendered in all representations of the artifact.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.copyrightLabel
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false

id:
  v: ObservationDefinition.approvalDate
path:
  v: ObservationDefinition.approvalDate
short:
  v: When ObservationDefinition was approved by publisher
definition:
  v: The date on which the asset content was approved by the publisher. Approval happens once when the content is officially approved for usage.
comment:
  v: The date may be more recent than the approval date because of minor changes / editorial corrections. See guidance around (not) making local changes to elements [here](canonicalresource.html#localization).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.approvalDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Definition.approvalDate

id:
  v: ObservationDefinition.lastReviewDate
path:
  v: ObservationDefinition.lastReviewDate
short:
  v: Date on which the asset content was last reviewed by the publisher
definition:
  v: The date on which the asset content was last reviewed. Review happens periodically after that, but doesn't change the original approval date.
comment:
  v: If specified, this is usually after the approval date. See guidance around (not) making local changes to elements [here](canonicalresource.html#localization).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.lastReviewDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Definition.lastReviewDate

id:
  v: ObservationDefinition.effectivePeriod
path:
  v: ObservationDefinition.effectivePeriod
short:
  v: The effective date range for the ObservationDefinition
definition:
  v: The period during which the ObservationDefinition content was or is planned to be effective.
comment:
  v: The effective period for an ObservationDefinition determines when the content is applicable for usage and is independent of publication and review dates. For example, an observation definition intended to be used for the year 2021 might be published in 2020. See guidance around (not) making local changes to elements [here](canonicalresource.html#localization).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.effectivePeriod
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.effectivePeriod

id:
  v: ObservationDefinition.derivedFromCanonical
path:
  v: ObservationDefinition.derivedFromCanonical
short:
  v: Based on FHIR definition of another observation
definition:
  v: The canonical URL pointing to another FHIR-defined ObservationDefinition that is adhered to in whole or in part by this definition.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ObservationDefinition.derivedFromCanonical
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ObservationDefinition
    link: http://hl7.org/fhir/StructureDefinition/ObservationDefinition
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true

id:
  v: ObservationDefinition.derivedFromUri
path:
  v: ObservationDefinition.derivedFromUri
short:
  v: Based on external definition
definition:
  v: The URL pointing to an externally-defined observation definition, guideline or other definition that is adhered to in whole or in part by this definition.
requirements:
  v: Observation definitions may be refinements of other definitions.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ObservationDefinition.derivedFromUri
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true

id:
  v: ObservationDefinition.subject
path:
  v: ObservationDefinition.subject
short:
  v: Type of subject for the defined observation
definition:
  v: A code that describes the intended kind of subject of Observation instances conforming to this ObservationDefinition.
comment:
  v: Examples: person, animal, device, air, surface ….
min:
  v: 0
max:
  v: *
base:
  path:
    v: ObservationDefinition.subject
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true

id:
  v: ObservationDefinition.performerType
path:
  v: ObservationDefinition.performerType
short:
  v: Desired kind of performer for such kind of observation
definition:
  v: The type of individual/organization/device that is expected to act upon instances of this definition.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.performerType
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true

id:
  v: ObservationDefinition.category
path:
  v: ObservationDefinition.category
short:
  v: General type of observation
definition:
  v: A code that classifies the general type of observation.
comment:
  v: This element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used for one instance of ObservationDefinition. The level of granularity is defined by the category concepts in the value set.
requirements:
  v: Used for filtering what kinds of observations are retrieved and displayed.
alias:
  v: Class of observation
min:
  v: 0
max:
  v: *
base:
  path:
    v: ObservationDefinition.category
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ObservationCategory
  strength:
    v: example
  description:
    v: Codes for high level observation categories.
  value set:
    v: http://hl7.org/fhir/ValueSet/observation-category
    link: http://hl7.org/fhir/ValueSet/observation-category
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="DEF"].code

id:
  v: ObservationDefinition.code
path:
  v: ObservationDefinition.code
short:
  v: Type of observation
definition:
  v: Describes what will be observed. Sometimes this is called the observation "name".
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ObservationDefinition.code
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: example
  value set:
    v: http://hl7.org/fhir/uv/pharm-quality/ValueSet/vs-test-method-pq
    link: http://hl7.org/fhir/uv/pharm-quality/ValueSet/vs-test-method-pq
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]
mapping:
  identity:
    v: v2
  map:
    v: OM1-2 OMC-4
mapping:
  identity:
    v: rim
  map:
    v: code

id:
  v: ObservationDefinition.permittedDataType
path:
  v: ObservationDefinition.permittedDataType
short:
  v: Quantity | CodeableConcept | string | boolean | integer | Range | Ratio | SampledData | time | dateTime | Period
definition:
  v: The data types allowed for the value element of the instance observations conforming to this ObservationDefinition.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ObservationDefinition.permittedDataType
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: code
example:
  label:
    v: General
  value:
    v: CodeableConcept
condition:
  v: obd-0
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ObservationDataType
  strength:
    v: required
  description:
    v: Permitted data type for observation value.
  value set:
    v: http://hl7.org/fhir/ValueSet/permitted-data-type|5.0.0
    link: 5.0
    link: .0
mapping:
  identity:
    v: v2
  map:
    v: OM1-3

id:
  v: ObservationDefinition.multipleResultsAllowed
path:
  v: ObservationDefinition.multipleResultsAllowed
short:
  v: Multiple results allowed for conforming observations
definition:
  v: Multiple results allowed for observations conforming to this ObservationDefinition.
comment:
  v: An example of observation allowing multiple results is "bacteria identified by culture". Conversely, the measurement of a potassium level allows a single result.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.multipleResultsAllowed
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
example:
  label:
    v: General
  value:
    v: true
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false

id:
  v: ObservationDefinition.bodySite
path:
  v: ObservationDefinition.bodySite
short:
  v: Body part to be observed
definition:
  v: The site on the subject's body where the observation is to be made.
comment:
  v: Only used if the defined observation is to be made directly on a body part and if this body part is not implied by code found in ObservationDefinition.code. Not used for in vitro diagnostic observations. Example: 14975008 |Forearm structure|.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.bodySite
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ObservationBodySite
  strength:
    v: example
  description:
    v: SNOMED CT body structures.
  value set:
    v: http://hl7.org/fhir/ValueSet/body-site
    link: http://hl7.org/fhir/ValueSet/body-site
mapping:
  identity:
    v: rim
  map:
    v: targetSiteCode

id:
  v: ObservationDefinition.method
path:
  v: ObservationDefinition.method
short:
  v: Method used to produce the observation
definition:
  v: The method or technique used to perform the observation.
comment:
  v: Only used if not implicit in observation code Example: 702659008 |Automated count technique|.
requirements:
  v: In some cases, method can impact results.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.method
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ObservationMethod
  strength:
    v: example
  description:
    v: Methods for simple observations.
  value set:
    v: http://hl7.org/fhir/ValueSet/observation-methods
    link: http://hl7.org/fhir/ValueSet/observation-methods
mapping:
  identity:
    v: v2
  map:
    v: OM1-14
mapping:
  identity:
    v: rim
  map:
    v: methodCode

id:
  v: ObservationDefinition.specimen
path:
  v: ObservationDefinition.specimen
short:
  v: Kind of specimen used by this type of observation
definition:
  v: The kind of specimen that this type of observation is produced on.
comment:
  v: Only used for in vitro observations. When multiple occurrences of specimen are present, they are to be combined with a logical AND: all specified specimens are needed for the observation.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ObservationDefinition.specimen
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/SpecimenDefinition
    link: http://hl7.org/fhir/StructureDefinition/SpecimenDefinition
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: participation[typeCode=SPC].specimen

id:
  v: ObservationDefinition.device
path:
  v: ObservationDefinition.device
short:
  v: Measurement device or model of device
definition:
  v: The measurement model of device or actual device used to produce observations of this type.
comment:
  v: When multiple occurrences of device are present, they are to be combined with a logical OR: at least one of the specified devices is used to produce the observation.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ObservationDefinition.device
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DeviceDefinition
    link: http://hl7.org/fhir/StructureDefinition/DeviceDefinition
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    link: http://hl7.org/fhir/StructureDefinition/Device
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: ObservationDefinition.preferredReportName
path:
  v: ObservationDefinition.preferredReportName
short:
  v: The preferred name to be used when reporting the observation results
definition:
  v: The preferred name to be used when reporting the results of observations conforming to this ObservationDefinition.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.preferredReportName
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: OM1-9

id:
  v: ObservationDefinition.permittedUnit
path:
  v: ObservationDefinition.permittedUnit
short:
  v: Unit for quantitative results
definition:
  v: Units allowed for the valueQuantity element in the instance observations conforming to this ObservationDefinition.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ObservationDefinition.permittedUnit
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
condition:
  v: obd-0
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ObservationUnit
  strength:
    v: preferred
  description:
    v: Codes identifying units of measure.
  value set:
    v: http://hl7.org/fhir/ValueSet/ucum-units
    link: http://hl7.org/fhir/ValueSet/ucum-units
mapping:
  identity:
    v: v2
  map:
    v: OM2-4

id:
  v: ObservationDefinition.qualifiedValue
path:
  v: ObservationDefinition.qualifiedValue
short:
  v: Set of qualified values for observation results
definition:
  v: A set of qualified values associated with a context and a set of conditions - provides a range for quantitative and ordinal observations and a collection of value sets for qualitative observations.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ObservationDefinition.qualifiedValue
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: ObservationDefinition.qualifiedValue.id
path:
  v: ObservationDefinition.qualifiedValue.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ObservationDefinition.qualifiedValue.extension
path:
  v: ObservationDefinition.qualifiedValue.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: ObservationDefinition.qualifiedValue.extension:qualified-value-text
path:
  v: ObservationDefinition.qualifiedValue.extension
slice name:
  v: qualified-value-text
short:
  v: qualified-value-text
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-text-pq
    link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-text-pq
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: true
is modifier:
  v: false

id:
  v: ObservationDefinition.qualifiedValue.extension:qualified-value-display
path:
  v: ObservationDefinition.qualifiedValue.extension
slice name:
  v: qualified-value-display
short:
  v: qualified-value-display
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-display-pq
    link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-display-pq
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: true
is modifier:
  v: false

id:
  v: ObservationDefinition.qualifiedValue.extension:qualified-value-target
path:
  v: ObservationDefinition.qualifiedValue.extension
slice name:
  v: qualified-value-target
short:
  v: qualified-value-target
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-target-pq
    link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-target-pq
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: true
is modifier:
  v: false

id:
  v: ObservationDefinition.qualifiedValue.extension:qualified-value-criticality
path:
  v: ObservationDefinition.qualifiedValue.extension
slice name:
  v: qualified-value-criticality
short:
  v: qualified-value-criticality
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-criticality-pq
    link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-criticality-pq
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: true
is modifier:
  v: false

id:
  v: ObservationDefinition.qualifiedValue.modifierExtension
path:
  v: ObservationDefinition.qualifiedValue.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ObservationDefinition.qualifiedValue.context
path:
  v: ObservationDefinition.qualifiedValue.context
short:
  v: Context qualifier for the set of qualified values
definition:
  v: A concept defining the context for this set of qualified values.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.qualifiedValue.context
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ObservationRangeMeaning
  strength:
    v: extensible
  value set:
    v: http://hl7.org/fhir/ValueSet/referencerange-meaning
    link: http://hl7.org/fhir/ValueSet/referencerange-meaning

id:
  v: ObservationDefinition.qualifiedValue.appliesTo
path:
  v: ObservationDefinition.qualifiedValue.appliesTo
short:
  v: Targetted population for the set of qualified values
definition:
  v: The target population this set of qualified values applies to.
comment:
  v: If this element is not present then the global population is assumed.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ObservationDefinition.qualifiedValue.appliesTo
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ObservationRangeAppliesTo
  strength:
    v: example
  value set:
    v: http://hl7.org/fhir/ValueSet/referencerange-appliesto
    link: http://hl7.org/fhir/ValueSet/referencerange-appliesto

id:
  v: ObservationDefinition.qualifiedValue.appliesTo.id
path:
  v: ObservationDefinition.qualifiedValue.appliesTo.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: id
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ObservationDefinition.qualifiedValue.appliesTo.extension
path:
  v: ObservationDefinition.qualifiedValue.appliesTo.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: ObservationDefinition.qualifiedValue.appliesTo.extension:test-comment
path:
  v: ObservationDefinition.qualifiedValue.appliesTo.extension
slice name:
  v: test-comment
short:
  v: test-comment
definition:
  v: An Extension
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-test-comment-pq
    link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-test-comment-pq
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: ObservationDefinition.qualifiedValue.appliesTo.coding
path:
  v: ObservationDefinition.qualifiedValue.appliesTo.coding
short:
  v: Code defined by a terminology system
definition:
  v: A reference to a code defined by a terminology system.
comment:
  v: Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.
requirements:
  v: Allows for alternative encodings within a code system, and translations to other code systems.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: ObservationDefinition.qualifiedValue.appliesTo.text
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
path:
  v: ObservationDefinition.qualifiedValue.appliesTo.text
short:
  v: Plain text representation of the concept
definition:
  v: A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
comment:
  v: Very often the text is the same as a displayName of one of the codings.
requirements:
  v: The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.9. But note many systems use C*E.2 for this
mapping:
  identity:
    v: rim
  map:
    v: ./originalText[mediaType/code="text/plain"]/data
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText

id:
  v: ObservationDefinition.qualifiedValue.gender
path:
  v: ObservationDefinition.qualifiedValue.gender
short:
  v: male | female | other | unknown
definition:
  v: The gender this set of qualified values applies to.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.qualifiedValue.gender
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
example:
  label:
    v: General
  value:
    v: female
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: AdministrativeGender
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/administrative-gender|5.0.0
    link: 5.0
    link: .0

id:
  v: ObservationDefinition.qualifiedValue.age
path:
  v: ObservationDefinition.qualifiedValue.age
short:
  v: Applicable age range for the set of qualified values
definition:
  v: The age range this set of qualified values applies to.
comment:
  v: Some analytes vary greatly over age.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.qualifiedValue.age
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Range
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false

id:
  v: ObservationDefinition.qualifiedValue.gestationalAge
path:
  v: ObservationDefinition.qualifiedValue.gestationalAge
short:
  v: Applicable gestational age range for the set of qualified values
definition:
  v: The gestational age this set of qualified values applies to.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.qualifiedValue.gestationalAge
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Range
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false

id:
  v: ObservationDefinition.qualifiedValue.condition
path:
  v: ObservationDefinition.qualifiedValue.condition
short:
  v: Condition associated with the set of qualified values
definition:
  v: Text based condition for which the the set of qualified values is valid.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.qualifiedValue.condition
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false

id:
  v: ObservationDefinition.qualifiedValue.rangeCategory
path:
  v: ObservationDefinition.qualifiedValue.rangeCategory
short:
  v: reference | critical | absolute
definition:
  v: The category of range of values for continuous or ordinal observations that match the criteria of this set of qualified values.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.qualifiedValue.rangeCategory
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
example:
  label:
    v: General
  value:
    v: critical
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ObservationRangeCategory
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/observation-range-category|5.0.0
    link: 5.0
    link: .0

id:
  v: ObservationDefinition.qualifiedValue.range
path:
  v: ObservationDefinition.qualifiedValue.range
short:
  v: The range for continuous or ordinal observations
definition:
  v: The range of values defined for continuous or ordinal observations that match the criteria of this set of qualified values.
requirements:
  v: The unit may be not relevant for ordinal values. In case it is there, it is the same as ObservationDefinition.unit.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.qualifiedValue.range
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Range
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: ObservationDefinition.qualifiedValue.range.id
path:
  v: ObservationDefinition.qualifiedValue.range.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: id
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ObservationDefinition.qualifiedValue.range.extension
path:
  v: ObservationDefinition.qualifiedValue.range.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: ObservationDefinition.qualifiedValue.range.extension:qualified-value-target
path:
  v: ObservationDefinition.qualifiedValue.range.extension
slice name:
  v: qualified-value-target
short:
  v: qualified-value-target
definition:
  v: An Extension
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-target-pq
    link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-target-pq
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: ObservationDefinition.qualifiedValue.range.low
path:
  v: ObservationDefinition.qualifiedValue.range.low
short:
  v: Low limit
definition:
  v: The low limit. The boundary is inclusive.
comment:
  v: If the low element is missing, the low boundary is not known.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Range.low
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
    link: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
condition:
  v: rng-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: NR.1
mapping:
  identity:
    v: rim
  map:
    v: ./low

id:
  v: ObservationDefinition.qualifiedValue.range.high
path:
  v: ObservationDefinition.qualifiedValue.range.high
short:
  v: High limit
definition:
  v: The high limit. The boundary is inclusive.
comment:
  v: If the high element is missing, the high boundary is not known.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Range.high
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
    link: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
condition:
  v: rng-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: NR.2
mapping:
  identity:
    v: rim
  map:
    v: ./high

id:
  v: ObservationDefinition.qualifiedValue.validCodedValueSet
path:
  v: ObservationDefinition.qualifiedValue.validCodedValueSet
short:
  v: Value set of valid coded values as part of this set of qualified values
definition:
  v: The set of valid coded results for qualitative observations that match the criteria of this set of qualified values.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.qualifiedValue.validCodedValueSet
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ValueSet
    link: http://hl7.org/fhir/StructureDefinition/ValueSet
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false

id:
  v: ObservationDefinition.qualifiedValue.normalCodedValueSet
path:
  v: ObservationDefinition.qualifiedValue.normalCodedValueSet
short:
  v: Value set of normal coded values as part of this set of qualified values
definition:
  v: The set of normal coded results for qualitative observations that match the criteria of this set of qualified values.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.qualifiedValue.normalCodedValueSet
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ValueSet
    link: http://hl7.org/fhir/StructureDefinition/ValueSet
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false

id:
  v: ObservationDefinition.qualifiedValue.abnormalCodedValueSet
path:
  v: ObservationDefinition.qualifiedValue.abnormalCodedValueSet
short:
  v: Value set of abnormal coded values as part of this set of qualified values
definition:
  v: The set of abnormal coded results for qualitative observations that match the criteria of this set of qualified values.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.qualifiedValue.abnormalCodedValueSet
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ValueSet
    link: http://hl7.org/fhir/StructureDefinition/ValueSet
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false

id:
  v: ObservationDefinition.qualifiedValue.criticalCodedValueSet
path:
  v: ObservationDefinition.qualifiedValue.criticalCodedValueSet
short:
  v: Value set of critical coded values as part of this set of qualified values
definition:
  v: The set of critical coded results for qualitative observations that match the criteria of this set of qualified values.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ObservationDefinition.qualifiedValue.criticalCodedValueSet
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ValueSet
    link: http://hl7.org/fhir/StructureDefinition/ValueSet
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false

id:
  v: ObservationDefinition.hasMember
path:
  v: ObservationDefinition.hasMember
short:
  v: Definitions of related resources belonging to this kind of observation group
definition:
  v: This ObservationDefinition defines a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ObservationDefinition.hasMember
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ObservationDefinition
    link: http://hl7.org/fhir/StructureDefinition/ObservationDefinition
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Questionnaire
    link: http://hl7.org/fhir/StructureDefinition/Questionnaire
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: ObservationDefinition.component
path:
  v: ObservationDefinition.component
short:
  v: Component results
definition:
  v: Some observations have multiple component observations, expressed as separate code value pairs.
requirements:
  v: Component observations share the same attributes as the primary observation and are always treated as a part of it (they are not separable).
min:
  v: 0
max:
  v: *
base:
  path:
    v: ObservationDefinition.component
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: obd-1
  severity:
    v: error
  human:
    v: If permittedUnit exists, then permittedDataType=Quantity must exist.
  expression:
    v: permittedUnit.exists() implies (permittedDataType = 'Quantity').exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/ObservationDefinition
    link: http://hl7.org/fhir/StructureDefinition/ObservationDefinition
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: outBoundRelationship[typeCode=COMP]

id:
  v: ObservationDefinition.component.id
path:
  v: ObservationDefinition.component.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ObservationDefinition.component.extension
path:
  v: ObservationDefinition.component.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ObservationDefinition.component.modifierExtension
path:
  v: ObservationDefinition.component.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ObservationDefinition.component.code
path:
  v: ObservationDefinition.component.code
short:
  v: Type of observation
definition:
  v: Describes what will be observed.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ObservationDefinition.component.code
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ObservationCode
  strength:
    v: example
  description:
    v: Codes identifying names of simple observations.
  value set:
    v: http://hl7.org/fhir/ValueSet/observation-codes
    link: http://hl7.org/fhir/ValueSet/observation-codes
mapping:
  identity:
    v: rim
  map:
    v: code

id:
  v: ObservationDefinition.component.permittedDataType
path:
  v: ObservationDefinition.component.permittedDataType
short:
  v: Quantity | CodeableConcept | string | boolean | integer | Range | Ratio | SampledData | time | dateTime | Period
definition:
  v: The data types allowed for the value element of the instance of this component observations.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ObservationDefinition.component.permittedDataType
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: code
example:
  label:
    v: General
  value:
    v: CodeableConcept
condition:
  v: obd-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ObservationDataType
  strength:
    v: required
  description:
    v: Permitted data type for observation value.
  value set:
    v: http://hl7.org/fhir/ValueSet/permitted-data-type|5.0.0
    link: 5.0
    link: .0

id:
  v: ObservationDefinition.component.permittedUnit
path:
  v: ObservationDefinition.component.permittedUnit
short:
  v: Unit for quantitative results
definition:
  v: Units allowed for the valueQuantity element in the instance observations conforming to this ObservationDefinition.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ObservationDefinition.component.permittedUnit
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
condition:
  v: obd-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ObservationUnit
  strength:
    v: preferred
  description:
    v: Codes identifying units of measure.
  value set:
    v: http://hl7.org/fhir/ValueSet/ucum-units
    link: http://hl7.org/fhir/ValueSet/ucum-units
mapping:
  identity:
    v: v2
  map:
    v: OM2-4

id:
  v: ObservationDefinition.component.qualifiedValue
path:
  v: ObservationDefinition.component.qualifiedValue
short:
  v: Set of qualified values for observation results
definition:
  v: A set of qualified values associated with a context and a set of conditions - provides a range for quantitative and ordinal observations and a collection of value sets for qualitative observations.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ObservationDefinition.component.qualifiedValue
  min:
    v: 0
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/ObservationDefinition#ObservationDefinition.qualifiedValue
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false

element:
  id:
    v: ObservationDefinition
  path:
    v: ObservationDefinition
element:
  id:
    v: ObservationDefinition.title
  path:
    v: ObservationDefinition.title
element:
  id:
    v: ObservationDefinition.title.extension
  path:
    v: ObservationDefinition.title.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
element:
  id:
    v: ObservationDefinition.title.extension:test-comment-title
  path:
    v: ObservationDefinition.title.extension
  slice name:
    v: test-comment-title
  short:
    v: test-comment-title
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Extension
    profile:
      v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-test-comment-pq
      link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-test-comment-pq
  must support:
    v: true
element:
  id:
    v: ObservationDefinition.code
  path:
    v: ObservationDefinition.code
  must support:
    v: true
  binding:
    strength:
      v: example
    value set:
      v: http://hl7.org/fhir/uv/pharm-quality/ValueSet/vs-test-method-pq
      link: http://hl7.org/fhir/uv/pharm-quality/ValueSet/vs-test-method-pq
element:
  id:
    v: ObservationDefinition.method
  path:
    v: ObservationDefinition.method
  must support:
    v: true
element:
  id:
    v: ObservationDefinition.specimen
  path:
    v: ObservationDefinition.specimen
  must support:
    v: true
element:
  id:
    v: ObservationDefinition.device
  path:
    v: ObservationDefinition.device
  type:
    code:
      v: Reference
    target profile:
      v: http://hl7.org/fhir/StructureDefinition/DeviceDefinition
      link: http://hl7.org/fhir/StructureDefinition/DeviceDefinition
    target profile:
      v: http://hl7.org/fhir/StructureDefinition/Device
      link: http://hl7.org/fhir/StructureDefinition/Device
  must support:
    v: true
element:
  id:
    v: ObservationDefinition.qualifiedValue
  path:
    v: ObservationDefinition.qualifiedValue
  must support:
    v: true
element:
  id:
    v: ObservationDefinition.qualifiedValue.extension
  path:
    v: ObservationDefinition.qualifiedValue.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
element:
  id:
    v: ObservationDefinition.qualifiedValue.extension:qualified-value-text
  path:
    v: ObservationDefinition.qualifiedValue.extension
  slice name:
    v: qualified-value-text
  short:
    v: qualified-value-text
  type:
    code:
      v: Extension
    profile:
      v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-text-pq
      link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-text-pq
  must support:
    v: true
element:
  id:
    v: ObservationDefinition.qualifiedValue.extension:qualified-value-display
  path:
    v: ObservationDefinition.qualifiedValue.extension
  slice name:
    v: qualified-value-display
  short:
    v: qualified-value-display
  type:
    code:
      v: Extension
    profile:
      v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-display-pq
      link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-display-pq
  must support:
    v: true
element:
  id:
    v: ObservationDefinition.qualifiedValue.extension:qualified-value-target
  path:
    v: ObservationDefinition.qualifiedValue.extension
  slice name:
    v: qualified-value-target
  short:
    v: qualified-value-target
  type:
    code:
      v: Extension
    profile:
      v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-target-pq
      link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-target-pq
  must support:
    v: true
element:
  id:
    v: ObservationDefinition.qualifiedValue.extension:qualified-value-criticality
  path:
    v: ObservationDefinition.qualifiedValue.extension
  slice name:
    v: qualified-value-criticality
  short:
    v: qualified-value-criticality
  type:
    code:
      v: Extension
    profile:
      v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-criticality-pq
      link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-criticality-pq
  must support:
    v: true
element:
  id:
    v: ObservationDefinition.qualifiedValue.appliesTo.extension
  path:
    v: ObservationDefinition.qualifiedValue.appliesTo.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
element:
  id:
    v: ObservationDefinition.qualifiedValue.appliesTo.extension:test-comment
  path:
    v: ObservationDefinition.qualifiedValue.appliesTo.extension
  slice name:
    v: test-comment

v: test-comment

v: 0

v: 1

code:
  v: Extension
profile:
  v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-test-comment-pq
  link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-test-comment-pq

v: true

id:
  v: ObservationDefinition.qualifiedValue.range
path:
  v: ObservationDefinition.qualifiedValue.range
must support:
  v: true

id:
  v: ObservationDefinition.qualifiedValue.range.extension
path:
  v: ObservationDefinition.qualifiedValue.range.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open

id:
  v: ObservationDefinition.qualifiedValue.range.extension:qualified-value-target
path:
  v: ObservationDefinition.qualifiedValue.range.extension
slice name:
  v: qualified-value-target
short:
  v: qualified-value-target
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-target-pq
    link: http://hl7.org/fhir/uv/pharm-quality/StructureDefinition/Extension-qualified-value-target-pq
must support:
  v: true

id:
  v: ObservationDefinition.hasMember
path:
  v: ObservationDefinition.hasMember
must support:
  v: true