PackagesCanonicalsLogsProblems
    Packages
    at.unofficial.au.base@2.2.0-ballot2
    http://hl7.org.au/fhir/StructureDefinition/au-gravidity
description: This profile defines an observation structure that represents the gravidity count related to pregnancy, for use in an Australian context.
package_name: at.unofficial.au.base
derivation: constraint
name: AUGravidity
type: Observation
elements:
  value[x]:
    elements:
      system:
        pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
        index: 14
      code:
        pattern: {type: Code, value: '1'}
        index: 15
    required: [system, code]
  valueQuantity:
    type: Quantity
    constraint:
      inv0-gravidity: {human: gravidity must be a whole number, source: 'http://hl7.org.au/fhir/StructureDefinition/au-gravidity', severity: error, expression: value.toString().contains('.').not()}
    choiceOf: value
    index: 13
  value:
    constraint:
      inv0-gravidity: {human: gravidity must be a whole number, source: 'http://hl7.org.au/fhir/StructureDefinition/au-gravidity', severity: error, expression: value.toString().contains('.').not()}
    choices: [valueQuantity]
    index: 12
  effectiveDateTime: {type: dateTime, short: 'Date, and optionally time, the observation was performed', choiceOf: effective, index: 9}
  status:
    pattern: {type: Code, value: final}
    index: 0
  effective:
    short: Date, and optionally time, the observation was performed
    choices: [effectiveDateTime, effectivePeriod]
    index: 8
  code:
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: '161732006', system: 'http://snomed.info/sct'}
    index: 1
    elements:
      coding:
        index: 2
        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: 3
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 4
                  code:
                    pattern: {type: Code, value: 11996-6}
                    index: 5
                required: [system, code]
  subject:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
    index: 6
  effectivePeriod: {type: Period, short: 'Date, and optionally time, the observation was performed', choiceOf: effective, index: 10}
package_version: 2.2.0-ballot2
class: profile
kind: resource
url: http://hl7.org.au/fhir/StructureDefinition/au-gravidity
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 2.2.0
required: [effectiveDateTime, effectivePeriod, subject, effective]