au-address
type: StructureDefinition
node role: treeRoot
resource.id:
  value: au-address
domain resource.text:
  narrative.status:
    value: extensions
  narrative.div: Name Flags Card. Type Description & Constraints Address C 0..* Address An address in Australia for use within an Australian healthcare context inv-add-0: The address shall at least have text or a line inv-add-1: If asserting no fixed address, the type shall be 'physical' inv-add-2: If asserting no fixed address, the address text shall begin with 'NO FIXED ADDRESS' Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url identifier 0..* Identifier Identifier for the address URL: http://hl7.org.au/fhir/StructureDefinition/address-identifier value[x] 1..1 Identifier, AUDeliveryPointIdentifier, AUGNAFIdentifier An identifier intended for computation noFixedAddress 0..1 boolean No fixed address indicator URL: http://hl7.org.au/fhir/StructureDefinition/no-fixed-address city 0..1 string Name of city, town or suburb state 0..1 string Australian state or territory Binding: https://healthterminologies.gov.au/fhir/ValueSet/australian-states-territories-2 (required) postalCode C 0..1 string Postal code for area inv-add-3: Postal code shall be 4 digits country 0..1 string Australia as a 2 digit ISO 3166 code Fixed Value: AU Documentation for this format
domain resource.extension:
  index: 0
  extension.url:
    value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm
  extension.value integer:
    value: 2
structure definition.url:
  value: http://hl7.org.au/fhir/StructureDefinition/au-address
structure definition.version:
  value: 4.1.0-ballot
structure definition.name:
  value: AustralianAddress
structure definition.title:
  value: Australian Address
structure definition.status:
  value: active
structure definition.date:
  value: 2022-11-10T20:45:44+11:00
structure definition.publisher:
  value: HL7 Australia
structure definition.contact:
  index: 0
  contact detail.name:
    value: HL7 Australia Patient Administration Working Group
  contact detail.telecom:
    index: 0
    contact point.system:
      value: url
    contact point.value:
      value: http://confluence.hl7australia.com/display/PA
    contact point.use:
      value: work
structure definition.contact:
  index: 1
  contact detail.name:
    value: HL7 Australia Orders and Observations Working Group
  contact detail.telecom:
    index: 0
    contact point.system:
      value: url
    contact point.value:
      value: https://confluence.hl7australia.com/display/OO
    contact point.use:
      value: work
structure definition.contact:
  index: 2
  contact detail.name:
    value: HL7 Australia Medications Working Group
  contact detail.telecom:
    index: 0
    contact point.system:
      value: url
    contact point.value:
      value: https://confluence.hl7australia.com/display/MED
    contact point.use:
      value: work
structure definition.description:
  value: This profile defines an address structure that localises core concepts, including identifiers and terminology, for use in an Australian context, to specifically represent an Australian (location) address.
structure definition.jurisdiction:
  index: 0
  codeable concept.coding:
    index: 0
    coding.system:
      value: urn:iso:std:iso:3166
    coding.code:
      value: AU
structure definition.copyright:
  value: HL7 Australia© 2018+; Licensed Under Creative Commons No Rights Reserved.
structure definition.fhir version:
  value: 4.0.1
structure definition.mapping:
  index: 0
  structure definition.mapping.identity:
    value: v2
  structure definition.mapping.uri:
    value: http://hl7.org/v2
  structure definition.mapping.name:
    value: HL7 v2 Mapping
structure definition.mapping:
  index: 1
  structure definition.mapping.identity:
    value: rim
  structure definition.mapping.uri:
    value: http://hl7.org/v3
  structure definition.mapping.name:
    value: RIM Mapping
structure definition.mapping:
  index: 2
  structure definition.mapping.identity:
    value: servd
  structure definition.mapping.uri:
    value: http://www.omg.org/spec/ServD/1.0/
  structure definition.mapping.name:
    value: ServD
structure definition.mapping:
  index: 3
  structure definition.mapping.identity:
    value: vcard
  structure definition.mapping.uri:
    value: http://w3.org/vcard
  structure definition.mapping.name:
    value: vCard Mapping
structure definition.kind:
  value: complex-type
structure definition.abstract:
  value: false
structure definition.type:
  value: Address
structure definition.base definition:
  value: http://hl7.org/fhir/StructureDefinition/Address
  link: http://hl7.org/fhir/StructureDefinition/Address
structure definition.derivation:
  value: constraint
structure definition.snapshot:
  structure definition.snapshot.element:
    index: 0
    element.id:
      value: Address
    element definition.path:
      value: Address
    element definition.short:
      value: An address in Australia for use within an Australian healthcare context
    element definition.definition:
      value: An Australian address expressed using postal conventions (as opposed to GPS or other location definition formats).
    element definition.comment:
      value: Note: address is intended to describe postal addresses for administrative purposes, not to describe absolute geographical coordinates. Postal addresses are often used as proxies for physical locations (also see the [Location](http://hl7.org/fhir/R4/location.html#) resource).
    element definition.min:
      value: 0
    element definition.max:
      value: *
    element definition.base:
      element definition.base.path:
        value: Address
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: *
    element definition.condition:
      value: ele-1
      index: 0
    element definition.constraint:
      index: 0
      element definition.constraint.key:
        value: ele-1
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: All FHIR elements must have a @value or children
      element definition.constraint.expression:
        value: hasValue() or (children().count() > id.count())
      element definition.constraint.xpath:
        value: @value|f:*|h:div
      element definition.constraint.source:
        value: http://hl7.org/fhir/StructureDefinition/Element
        link: http://hl7.org/fhir/StructureDefinition/Element
    element definition.constraint:
      index: 1
      element definition.constraint.key:
        value: inv-add-0
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: The address shall at least have text or a line
      element definition.constraint.expression:
        value: text.exists() or line.exists()
      element definition.constraint.source:
        value: http://hl7.org.au/fhir/StructureDefinition/au-address
        link: http://hl7.org.au/fhir/StructureDefinition/au-address
    element definition.constraint:
      index: 2
      element definition.constraint.key:
        value: inv-add-1
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: If asserting no fixed address, the type shall be 'physical'
      element definition.constraint.expression:
        value: extension('http://hl7.org.au/fhir/StructureDefinition/no-fixed-address').exists() implies type='physical'
      element definition.constraint.source:
        value: http://hl7.org.au/fhir/StructureDefinition/au-address
        link: http://hl7.org.au/fhir/StructureDefinition/au-address
    element definition.constraint:
      index: 3
      element definition.constraint.key:
        value: inv-add-2
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: If asserting no fixed address, the address text shall begin with 'NO FIXED ADDRESS'
      element definition.constraint.expression:
        value: extension('http://hl7.org.au/fhir/StructureDefinition/no-fixed-address').exists() implies text.startsWith('NO FIXED ADDRESS')
      element definition.constraint.source:
        value: http://hl7.org.au/fhir/StructureDefinition/au-address
        link: http://hl7.org.au/fhir/StructureDefinition/au-address

value: false

index: 0
element definition.mapping.identity:
  value: rim
element definition.mapping.map:
  value: n/a

index: 1
element definition.mapping.identity:
  value: v2
element definition.mapping.map:
  value: XAD

index: 2
element definition.mapping.identity:
  value: rim
element definition.mapping.map:
  value: AD

index: 3
element definition.mapping.identity:
  value: servd
element definition.mapping.map:
  value: Address

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

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

index: 3
element.id:
  value: Address.extension:identifier
element definition.path:
  value: Address.extension
element definition.slice name:
  value: identifier
element definition.short:
  value: Identifier for the address
element definition.definition:
  value: A unique identifier associated with a location address and may be used to look up an address, validate an address, or link to other data relating to an address.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
  element definition.type.profile:
    value: http://hl7.org.au/fhir/StructureDefinition/address-identifier
    index: 0
    link: http://hl7.org.au/fhir/StructureDefinition/address-identifier
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

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

index: 5
element.id:
  value: Address.extension:identifier.extension
element definition.path:
  value: Address.extension.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional content defined by implementations
element definition.definition:
  value: 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 manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 6
element.id:
  value: Address.extension:identifier.url
element definition.path:
  value: Address.extension.url
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: identifies the meaning of the extension
element definition.definition:
  value: Source of the definition for the extension code - a logical name or a URL.
element definition.comment:
  value: The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Extension.url
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    extension.value url:
      value: uri
  element definition.type.code:
    value: http://hl7.org/fhirpath/System.String
element definition.fixed uri:
  value: http://hl7.org.au/fhir/StructureDefinition/address-identifier
element definition.is modifier:
  value: false
element definition.is summary:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 7
element.id:
  value: Address.extension:identifier.value[x]
element definition.path:
  value: Address.extension.value[x]
element definition.short:
  value: An identifier intended for computation
element definition.definition:
  value: An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Extension.value[x]
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Identifier
  element definition.type.profile:
    value: http://hl7.org/fhir/StructureDefinition/Identifier
    index: 0
    link: http://hl7.org/fhir/StructureDefinition/Identifier
  element definition.type.profile:
    value: http://hl7.org.au/fhir/StructureDefinition/au-deliverypointidentifier
    index: 1
    link: http://hl7.org.au/fhir/StructureDefinition/au-deliverypointidentifier
  element definition.type.profile:
    value: http://hl7.org.au/fhir/StructureDefinition/au-gnafidentifier
    index: 2
    link: http://hl7.org.au/fhir/StructureDefinition/au-gnafidentifier
element definition.condition:
  value: ele-1
  index: 0
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: CX / EI (occasionally, more often EI maps to a resource id or a URL)
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: Identifier

index: 8
element.id:
  value: Address.extension:noFixedAddress
element definition.path:
  value: Address.extension
element definition.slice name:
  value: noFixedAddress
element definition.short:
  value: No fixed address indicator
element definition.definition:
  value: No fixed address indicator.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
  element definition.type.profile:
    value: http://hl7.org.au/fhir/StructureDefinition/no-fixed-address
    index: 0
    link: http://hl7.org.au/fhir/StructureDefinition/no-fixed-address
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
element definition.is modifier:
  value: false
element definition.is summary:
  value: false

index: 9
element.id:
  value: Address.use
element definition.path:
  value: Address.use
element definition.short:
  value: home | work | temp | old | billing - purpose of this address
element definition.definition:
  value: The purpose of this address.
element definition.comment:
  value: Applications can assume that an address is current unless it explicitly says that it is temporary or old.
element definition.requirements:
  value: Allows an appropriate address to be chosen from a list of many.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Address.use
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value code:
    value: home
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: true
element definition.is modifier reason:
  value: This is labeled as "Is Modifier" because applications should not mistake a temporary or old address etc.for a current/permanent one
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: AddressUse
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: The use of an address.
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/address-use|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.7
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: unique(./use)
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./AddressPurpose

index: 10
element.id:
  value: Address.type
element definition.path:
  value: Address.type
element definition.short:
  value: postal | physical | both
element definition.definition:
  value: Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.
element definition.comment:
  value: The definition of Address states that "address is intended to describe postal addresses, not physical locations". However, many applications track whether an address has a dual purpose of being a location that can be visited as well as being a valid delivery destination, and Postal addresses are often used as proxies for physical locations (also see the [Location](http://hl7.org/fhir/R4/location.html#) resource).
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Address.type
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value code:
    value: both
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    extension.value string:
      value: AddressType
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: The type of an address (physical / postal).
  element definition.binding.value set:
    value: http://hl7.org/fhir/ValueSet/address-type|4.0.1
    link: 4.0
    link: .1
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.18
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: unique(./use)
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: vcard
  element definition.mapping.map:
    value: address type parameter

index: 11
element.id:
  value: Address.text
element definition.path:
  value: Address.text
element definition.short:
  value: Text representation of the address
element definition.definition:
  value: Specifies the entire address as it should be displayed e.g. on a postal label. This may be provided instead of or as well as the specific parts.
element definition.comment:
  value: Can provide both a text representation and parts. Applications updating an address SHALL ensure that when both text and parts are present, no content is included in the text that isn't found in a part.
element definition.requirements:
  value: A renderable, unencoded form.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Address.text
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value string:
    value: 137 Nowhere Street, Erewhon 9132
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./formatted
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: vcard
  element definition.mapping.map:
    value: address label parameter

index: 12
element.id:
  value: Address.line
element definition.path:
  value: Address.line
element definition.short:
  value: Street name, number, direction & P.O. Box etc.
element definition.definition:
  value: This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Address.line
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.order meaning:
  value: The order in which lines should appear in an address label
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value string:
    value: 137 Nowhere Street
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: AD.part[parttype = AL]
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: vcard
  element definition.mapping.map:
    value: street
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./StreetAddress (newline delimitted)

index: 13
element.id:
  value: Address.city
element definition.path:
  value: Address.city
element definition.short:
  value: Name of city, town or suburb
element definition.definition:
  value: The name of the city, town, suburb, village or other community or delivery center.
element definition.alias:
  value: Municpality
  index: 0
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Address.city
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value string:
    value: Erewhon
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.3
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: AD.part[parttype = CTY]
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: vcard
  element definition.mapping.map:
    value: locality
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./Jurisdiction

index: 14
element.id:
  value: Address.district
element definition.path:
  value: Address.district
element definition.short:
  value: District name (aka county)
element definition.definition:
  value: The name of the administrative area (county).
element definition.comment:
  value: District is sometimes known as county, but in some regions 'county' is used in place of city (municipality), so county name should be conveyed in city instead.
element definition.alias:
  value: County
  index: 0
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Address.district
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value string:
    value: Madison
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.9
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: AD.part[parttype = CNT | CPA]

index: 15
element.id:
  value: Address.state
element definition.path:
  value: Address.state
element definition.short:
  value: Australian state or territory
element definition.definition:
  value: Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (e.g. US 2 letter state codes).
element definition.alias:
  value: Province
  index: 0
element definition.alias:
  value: Territory
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Address.state
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.binding:
  element definition.binding.strength:
    value: required
  element definition.binding.value set:
    value: https://healthterminologies.gov.au/fhir/ValueSet/australian-states-territories-2
    link: https://healthterminologies.gov.au/fhir/ValueSet/australian-states-territories-2
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.4
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: AD.part[parttype = STA]
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: vcard
  element definition.mapping.map:
    value: region
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./Region

index: 16
element.id:
  value: Address.postalCode
element definition.path:
  value: Address.postalCode
element definition.short:
  value: Postal code for area
element definition.definition:
  value: A postal code designating a region defined by the postal service.
element definition.alias:
  value: Zip
  index: 0
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Address.postalCode
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value string:
    value: 9132
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.constraint:
  index: 1
  element definition.constraint.key:
    value: inv-add-3
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Postal code shall be 4 digits
  element definition.constraint.expression:
    value: matches('^[0-9]{4}$')
  element definition.constraint.source:
    value: http://hl7.org.au/fhir/StructureDefinition/au-address
    link: http://hl7.org.au/fhir/StructureDefinition/au-address
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.5
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: AD.part[parttype = ZIP]
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: vcard
  element definition.mapping.map:
    value: code
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./PostalIdentificationCode

index: 17
element.id:
  value: Address.country
element definition.path:
  value: Address.country
element definition.short:
  value: Australia as a 2 digit ISO 3166 code
element definition.definition:
  value: Fixed value if present otherwise assumed to be Australia in this context.
element definition.comment:
  value: ISO 3166 3 letter codes can be used in place of a human readable country name.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Address.country
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.fixed string:
  value: AU
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.6
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: AD.part[parttype = CNT]
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: vcard
  element definition.mapping.map:
    value: country
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./Country

index: 18
element.id:
  value: Address.period
element definition.path:
  value: Address.period
element definition.short:
  value: Time period when address was/is in use
element definition.definition:
  value: Time period when address was/is in use.
element definition.requirements:
  value: Allows addresses to be placed in historical context.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Address.period
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Period
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value period:
    period.start:
      value: 2010-03-23
    period.end:
      value: 2010-07-01
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
element definition.is modifier:
  value: false
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.12 / XAD.13 + XAD.14
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./usablePeriod[type="IVL<TS>"]
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./StartDate and ./EndDate

structure definition.differential.element:
  index: 0
  element.id:
    value: Address
  element definition.path:
    value: Address
  element definition.short:
    value: An address in Australia for use within an Australian healthcare context
  element definition.definition:
    value: An Australian address expressed using postal conventions (as opposed to GPS or other location definition formats).
  element definition.constraint:
    index: 0
    element definition.constraint.key:
      value: inv-add-0
    element definition.constraint.severity:
      value: error
    element definition.constraint.human:
      value: The address shall at least have text or a line
    element definition.constraint.expression:
      value: text.exists() or line.exists()
    element definition.constraint.source:
      value: http://hl7.org.au/fhir/StructureDefinition/au-address
      link: http://hl7.org.au/fhir/StructureDefinition/au-address
  element definition.constraint:
    index: 1
    element definition.constraint.key:
      value: inv-add-1
    element definition.constraint.severity:
      value: error
    element definition.constraint.human:
      value: If asserting no fixed address, the type shall be 'physical'
    element definition.constraint.expression:
      value: extension('http://hl7.org.au/fhir/StructureDefinition/no-fixed-address').exists() implies type='physical'
    element definition.constraint.source:
      value: http://hl7.org.au/fhir/StructureDefinition/au-address
      link: http://hl7.org.au/fhir/StructureDefinition/au-address
  element definition.constraint:
    index: 2
    element definition.constraint.key:
      value: inv-add-2
    element definition.constraint.severity:
      value: error
    element definition.constraint.human:
      value: If asserting no fixed address, the address text shall begin with 'NO FIXED ADDRESS'
    element definition.constraint.expression:
      value: extension('http://hl7.org.au/fhir/StructureDefinition/no-fixed-address').exists() implies text.startsWith('NO FIXED ADDRESS')
    element definition.constraint.source:
      value: http://hl7.org.au/fhir/StructureDefinition/au-address
      link: http://hl7.org.au/fhir/StructureDefinition/au-address
structure definition.differential.element:
  index: 1
  element.id:
    value: Address.extension
  element definition.path:
    value: Address.extension
  element definition.slicing:
    element definition.slicing.discriminator:
      index: 0
      element definition.slicing.discriminator.type:
        value: value
      element definition.slicing.discriminator.path:
        value: url
    element definition.slicing.rules:
      value: open
structure definition.differential.element:
  index: 2
  element.id:
    value: Address.extension:identifier
  element definition.path:
    value: Address.extension
  element definition.slice name:
    value: identifier
  element definition.type:
    index: 0
    element definition.type.code:
      value: Extension
    element definition.type.profile:
      value: http://hl7.org.au/fhir/StructureDefinition/address-identifier
      index: 0
      link: http://hl7.org.au/fhir/StructureDefinition/address-identifier
structure definition.differential.element:
  index: 3
  element.id:
    value: Address.extension:identifier.value[x]
  element definition.path:
    value: Address.extension.value[x]
  element definition.type:
    index: 0
    element definition.type.code:
      value: Identifier
    element definition.type.profile:
      value: http://hl7.org/fhir/StructureDefinition/Identifier
      index: 0
      link: http://hl7.org/fhir/StructureDefinition/Identifier
    element definition.type.profile:
      value: http://hl7.org.au/fhir/StructureDefinition/au-deliverypointidentifier
      index: 1
      link: http://hl7.org.au/fhir/StructureDefinition/au-deliverypointidentifier
    element definition.type.profile:
      value: http://hl7.org.au/fhir/StructureDefinition/au-gnafidentifier
      index: 2
      link: http://hl7.org.au/fhir/StructureDefinition/au-gnafidentifier
structure definition.differential.element:
  index: 4
  element.id:
    value: Address.extension:noFixedAddress
  element definition.path:
    value: Address.extension
  element definition.slice name:
    value: noFixedAddress
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: Extension
    element definition.type.profile:
      value: http://hl7.org.au/fhir/StructureDefinition/no-fixed-address
      index: 0
      link: http://hl7.org.au/fhir/StructureDefinition/no-fixed-address
structure definition.differential.element:
  index: 5
  element.id:
    value: Address.city
  element definition.path:
    value: Address.city
  element definition.short:
    value: Name of city, town or suburb
structure definition.differential.element:
  index: 6
  element.id:
    value: Address.state
  element definition.path:
    value: Address.state
  element definition.short:
    value: Australian state or territory
  element definition.binding:
    element definition.binding.strength:
      value: required
    element definition.binding.value set:
      value: https://healthterminologies.gov.au/fhir/ValueSet/australian-states-territories-2
      link: https://healthterminologies.gov.au/fhir/ValueSet/australian-states-territories-2
structure definition.differential.element:
  index: 7
  element.id:
    value: Address.postalCode
  element definition.path:
    value: Address.postalCode
  element definition.constraint:
    index: 0
    element definition.constraint.key:
      value: inv-add-3
    element definition.constraint.severity:
      value: error
    element definition.constraint.human:
      value: Postal code shall be 4 digits
    element definition.constraint.expression:
      value: matches('^[0-9]{4}$')
    element definition.constraint.source:
      value: http://hl7.org.au/fhir/StructureDefinition/au-address
      link: http://hl7.org.au/fhir/StructureDefinition/au-address
structure definition.differential.element:
  index: 8
  element.id:
    value: Address.country
  element definition.path:
    value: Address.country
  element definition.short:
    value: Australia as a 2 digit ISO 3166 code
  element definition.definition:
    value: Fixed value if present otherwise assumed to be Australia in this context.
  element definition.fixed string:
    value: AU