PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.au.core@0.2.2-preview
    http://hl7.org.au/fhir/core/StructureDefinition/au-core-gravidity
description: This profile sets minimum expectations for an Observation resource to record, search, and fetch observations that represent the gravidity count related to pregnancy at a point in time associated with a patient with standard coding and units. It is based on the core FHIR [Observation](http://hl7.org/fhir/R4/observation.html) resource and identifies the *additional* mandatory core elements, extensions, vocabularies and value sets that **SHALL** be present in the Observation resource when conforming to this profile. It provides the floor for standards development for specific uses cases in an Australian context.
package_name: hl7.fhir.au.core
derivation: constraint
name: AUCoreGravidity
type: Observation
elements:
  category: {mustSupport: true, index: 1}
  value[x]:
    elements:
      system:
        pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
        index: 17
      code:
        pattern: {type: Code, value: '1'}
        index: 18
    required: [system, code]
  encounter:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org.au/fhir/core/StructureDefinition/au-core-encounter']
    index: 8
  valueQuantity:
    type: Quantity
    constraint:
      au-core-gravidity-01: {human: gravidity must be a whole number, source: 'http://hl7.org.au/fhir/core/StructureDefinition/au-core-gravidity', severity: error, expression: value.toString().contains('.').not()}
    mustSupport: true
    choiceOf: value
    index: 16
  value:
    constraint:
      au-core-gravidity-01: {human: gravidity must be a whole number, source: 'http://hl7.org.au/fhir/core/StructureDefinition/au-core-gravidity', severity: error, expression: value.toString().contains('.').not()}
    mustSupport: true
    choices: [valueQuantity]
    index: 15
  effectiveDateTime: {type: dateTime, short: 'Date, and optionally time, the observation was performed', mustSupport: true, choiceOf: effective, index: 11}
  status:
    pattern: {type: Code, value: final}
    mustSupport: true
    index: 0
  effective:
    short: Date, and optionally time, the observation was performed
    mustSupport: true
    choices: [effectiveDateTime, effectivePeriod]
    index: 10
  code:
    mustSupport: true
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: '161732006', system: 'http://snomed.info/sct'}
    index: 2
    elements:
      coding:
        index: 3
        slicing:
          rules: open
          discriminator:
          - {path: code, type: value}
          - {path: system, type: value}
          min: null
          slices:
            loincGravidity:
              match: {code: 11996-6, system: 'http://loinc.org'}
              schema:
                short: LOINC Gravidity
                index: 4
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 5
                  code:
                    pattern: {type: Code, value: 11996-6}
                    index: 6
                required: [system, code]
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org.au/fhir/core/StructureDefinition/au-core-patient']
    index: 7
  performer:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org.au/fhir/core/StructureDefinition/au-core-organization', 'http://hl7.org.au/fhir/core/StructureDefinition/au-core-patient', 'http://hl7.org.au/fhir/core/StructureDefinition/au-core-practitionerrole', 'http://hl7.org.au/fhir/core/StructureDefinition/au-core-relatedperson']
    index: 13
  dataAbsentReason: {mustSupport: true, index: 19}
  effectivePeriod: {type: Period, short: 'Date, and optionally time, the observation was performed', mustSupport: true, choiceOf: effective, index: 12}
package_version: 0.2.2-preview
class: profile
kind: resource
url: http://hl7.org.au/fhir/core/StructureDefinition/au-core-gravidity
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 0.2.2-preview
required: [effectiveDateTime, effectivePeriod, subject, category, effective]