PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.physical@activity-1.0.0-ballot
    http://hl7.org/fhir/us/physical-activity/StructureDefinition/pa-observation-base
description: A profile describing base requirements for all primary physical activity observations.
package_name: hl7.fhir.us.physical
derivation: constraint
name: PAObservationBase
abstract: true
type: Observation
elements:
  category:
    index: 3
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: 1
      slices:
        SocialHistory:
          match:
            coding:
            - {code: social-history, system: 'http://terminology.hl7.org/CodeSystem/observation-category'}
          schema:
            mustSupport: true
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: social-history, system: 'http://terminology.hl7.org/CodeSystem/observation-category'}
            _required: true
            index: 4
          min: 1
          max: 1
        PhysicalActivity:
          match:
            coding:
            - {code: PhysicalActivity, system: 'http://hl7.org/fhir/us/physical-activity/CodeSystem/pa-temporary-codes'}
          schema:
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: PhysicalActivity, system: 'http://hl7.org/fhir/us/physical-activity/CodeSystem/pa-temporary-codes'}
            index: 5
          min: 0
          max: 1
  specimen: {index: 34}
  valueQuantity:
    type: Quantity
    index: 23
    elements:
      value: {mustSupport: true, index: 24}
      system:
        pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
        index: 25
      code: {mustSupport: true, index: 26}
    required: [value, code]
  value:
    mustSupport: true
    choices: [valueQuantity, valueCodeableConcept]
    index: 19
  implicitRules: {index: 0}
  note:
    mustSupport: true
    index: 27
    elements:
      author:
        mustSupport: true
        choices: [authorReference]
        index: 29
      authorReference:
        type: Reference
        mustSupport: true
        choiceOf: author
        refers: ['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
        index: 30
      time: {mustSupport: true, index: 31}
      text: {mustSupport: true, index: 32}
    required: [author, time, authorReference]
  effectiveDateTime: {type: dateTime, index: 13}
  status:
    short: final | amended | corrected | entered-in-error
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/observation-status'}
    mustSupport: true
    index: 2
  effective:
    mustSupport: true
    choices: [effectiveDateTime, effectivePeriod]
    index: 10
  code:
    binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/observation-codes'}
    mustSupport: true
    index: 6
  valueCodeableConcept: {type: CodeableConcept, mustSupport: true, choiceOf: value, index: 21}
  bodySite: {index: 33}
  focus: {index: 8}
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient']
    index: 7
  modifierExtension: {index: 1}
  performer:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitionerrole']
    index: 17
  effectivePeriod:
    type: Period
    index: 14
    elements:
      start: {mustSupport: true, index: 15}
      end: {mustSupport: true, index: 16}
    required: [start, end]
package_version: activity-1.0.0-ballot
class: profile
kind: resource
url: http://hl7.org/fhir/us/physical-activity/StructureDefinition/pa-observation-base
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 1.0.0-ballot
required: [effectiveDateTime, effectivePeriod, subject, category, effective]