PH Core Implementation Guide
0.1.0 - ci-build Philippines flag

PH Core Implementation Guide, published by UP Manila SILab. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/UP-Manila-SILab/ph-core/ and changes regularly. See the Directory of published versions

Data Type Profile: PH Core Address

Official URL: urn://example.com/ph-core/fhir/StructureDefinition/ph-core-address Version: 0.1.0
Draft as of 2025-06-19 Computable Name: PHCoreAddress

An address for the individual.

Usages:

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Address 0..* Address An address expressed using postal conventions (as opposed to GPS or other location definition formats)
... Slices for extension Content/Rules for all slices
.... extension:province 0..* Coding Extension
URL: urn://example.com/ph-core/fhir/StructureDefinition/province
Binding: Provinces (extensible)
.... extension:cityMunicipality 0..* Coding City/Municipality
URL: urn://example.com/ph-core/fhir/StructureDefinition/city-municipality
Binding: Cities (extensible)
.... extension:barangay 0..* Coding Extension
URL: urn://example.com/ph-core/fhir/StructureDefinition/barangay
Binding: Barangays (extensible)
... use ?!Σ 0..1 code home | work | temp | old | billing - purpose of this address
Binding: AddressUse (required): The use of an address.
Example General: home

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Address.userequiredAddressUse
http://hl7.org/fhir/ValueSet/address-use|4.0.1
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

This structure is derived from Address

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Address 0..* Address An address expressed using postal conventions (as opposed to GPS or other location definition formats)
... Slices for extension Content/Rules for all slices
.... extension:province 0..* Coding Extension
URL: urn://example.com/ph-core/fhir/StructureDefinition/province
Binding: Provinces (extensible)
.... extension:cityMunicipality 0..* Coding City/Municipality
URL: urn://example.com/ph-core/fhir/StructureDefinition/city-municipality
Binding: Cities (extensible)
.... extension:barangay 0..* Coding Extension
URL: urn://example.com/ph-core/fhir/StructureDefinition/barangay
Binding: Barangays (extensible)

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Address 0..* Address An address expressed using postal conventions (as opposed to GPS or other location definition formats)
... id 0..1 string Unique id for inter-element referencing
... Slices for extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... extension:province 0..* Coding Extension
URL: urn://example.com/ph-core/fhir/StructureDefinition/province
Binding: Provinces (extensible)
.... extension:cityMunicipality 0..* Coding City/Municipality
URL: urn://example.com/ph-core/fhir/StructureDefinition/city-municipality
Binding: Cities (extensible)
.... extension:barangay 0..* Coding Extension
URL: urn://example.com/ph-core/fhir/StructureDefinition/barangay
Binding: Barangays (extensible)
... use ?!Σ 0..1 code home | work | temp | old | billing - purpose of this address
Binding: AddressUse (required): The use of an address.
Example General: home
... text Σ 0..1 string Text representation of the address
Example General: 137 Nowhere Street, Erewhon 9132
... line Σ 0..* string Street name, number, direction & P.O. Box etc.
This repeating element order: The order in which lines should appear in an address label
Example General: 137 Nowhere Street
... city Σ 0..1 string Name of city, town etc.
Example General: Erewhon
... district Σ 0..1 string District name (aka county)
Example General: Madison
... state Σ 0..1 string Sub-unit of country (abbreviations ok)
... postalCode Σ 0..1 string Postal code for area
Example General: 9132
... country Σ 0..1 string Country (e.g. can be ISO 3166 2 or 3 letter code)
... period Σ 0..1 Period Time period when address was/is in use
Example General: {"start":"2010-03-23","end":"2010-07-01"}

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Address.userequiredAddressUse
http://hl7.org/fhir/ValueSet/address-use|4.0.1
From the FHIR Standard
Address.typerequiredAddressType
http://hl7.org/fhir/ValueSet/address-type|4.0.1
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Address 0..* Address An address expressed using postal conventions (as opposed to GPS or other location definition formats)
... Slices for extension Content/Rules for all slices
.... extension:province 0..* Coding Extension
URL: urn://example.com/ph-core/fhir/StructureDefinition/province
Binding: Provinces (extensible)
.... extension:cityMunicipality 0..* Coding City/Municipality
URL: urn://example.com/ph-core/fhir/StructureDefinition/city-municipality
Binding: Cities (extensible)
.... extension:barangay 0..* Coding Extension
URL: urn://example.com/ph-core/fhir/StructureDefinition/barangay
Binding: Barangays (extensible)
... use ?!Σ 0..1 code home | work | temp | old | billing - purpose of this address
Binding: AddressUse (required): The use of an address.
Example General: home

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Address.userequiredAddressUse
http://hl7.org/fhir/ValueSet/address-use|4.0.1
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

Differential View

This structure is derived from Address

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Address 0..* Address An address expressed using postal conventions (as opposed to GPS or other location definition formats)
... Slices for extension Content/Rules for all slices
.... extension:province 0..* Coding Extension
URL: urn://example.com/ph-core/fhir/StructureDefinition/province
Binding: Provinces (extensible)
.... extension:cityMunicipality 0..* Coding City/Municipality
URL: urn://example.com/ph-core/fhir/StructureDefinition/city-municipality
Binding: Cities (extensible)
.... extension:barangay 0..* Coding Extension
URL: urn://example.com/ph-core/fhir/StructureDefinition/barangay
Binding: Barangays (extensible)

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Address 0..* Address An address expressed using postal conventions (as opposed to GPS or other location definition formats)
... id 0..1 string Unique id for inter-element referencing
... Slices for extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... extension:province 0..* Coding Extension
URL: urn://example.com/ph-core/fhir/StructureDefinition/province
Binding: Provinces (extensible)
.... extension:cityMunicipality 0..* Coding City/Municipality
URL: urn://example.com/ph-core/fhir/StructureDefinition/city-municipality
Binding: Cities (extensible)
.... extension:barangay 0..* Coding Extension
URL: urn://example.com/ph-core/fhir/StructureDefinition/barangay
Binding: Barangays (extensible)
... use ?!Σ 0..1 code home | work | temp | old | billing - purpose of this address
Binding: AddressUse (required): The use of an address.
Example General: home
... text Σ 0..1 string Text representation of the address
Example General: 137 Nowhere Street, Erewhon 9132
... line Σ 0..* string Street name, number, direction & P.O. Box etc.
This repeating element order: The order in which lines should appear in an address label
Example General: 137 Nowhere Street
... city Σ 0..1 string Name of city, town etc.
Example General: Erewhon
... district Σ 0..1 string District name (aka county)
Example General: Madison
... state Σ 0..1 string Sub-unit of country (abbreviations ok)
... postalCode Σ 0..1 string Postal code for area
Example General: 9132
... country Σ 0..1 string Country (e.g. can be ISO 3166 2 or 3 letter code)
... period Σ 0..1 Period Time period when address was/is in use
Example General: {"start":"2010-03-23","end":"2010-07-01"}

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Address.userequiredAddressUse
http://hl7.org/fhir/ValueSet/address-use|4.0.1
From the FHIR Standard
Address.typerequiredAddressType
http://hl7.org/fhir/ValueSet/address-type|4.0.1
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

 

Other representations of profile: CSV, Excel, Schematron