PackagesCanonicalsLogsProblems
    Packages
    at.unofficial.au.base@2.2.0-ballot
    http://hl7.org.au/fhir/StructureDefinition/au-lastmenstrualperiod
description: null
package_name: at.unofficial.au.base
derivation: constraint
name: AULastMenstrualPeriod
type: Observation
elements:
  status:
    pattern: {type: Code, value: final}
    index: 0
  code:
    elements:
      coding:
        pattern:
          type: Coding
          value: {code: '248993009', system: 'http://snomed.info/sct'}
        index: 1
        slicing:
          rules: open
          discriminator:
          - {path: code, type: value}
          - {path: system, type: value}
          min: 1
          slices:
            lmpLOINCCode:
              match: {code: null, system: null}
              schema:
                pattern:
                  type: Coding
                  value: {code: 8665-2, system: 'http://loinc.org'}
                index: 2
              max: 1
    required: [coding]
  subject:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
    index: 3
  effective:
    choices: [effectiveDateTime, effectivePeriod]
    index: 5
  effectiveDateTime: {type: dateTime, choiceOf: effective, index: 6}
  effectivePeriod: {type: Period, choiceOf: effective, index: 7}
  value:
    choices: [valueDateTime]
    index: 9
  valueDateTime: {type: dateTime, choiceOf: value, index: 10}
package_version: 2.2.0-ballot
class: profile
kind: resource
url: http://hl7.org.au/fhir/StructureDefinition/au-lastmenstrualperiod
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 2.2.0
required: [effectiveDateTime, effectivePeriod, subject, effective]