FHIR Snippets in XML
This extension is a collection of VS Code snippets to create instances of various HL7® FHIR®© resources, aligned to an Australian context.
The primary motivations to develop this extension:
- learning
- always seeking efficiencies
- share with colleagues
FHIR
Refer to the main FHIR specification page https://hl7.org/fhir/R4/index.html
Scope
- support for xml instances only at this time
- FHIR R4 (4.0.1 and probably R4B)
- support for Australian context
Supported resources
HealthcareService
Resource flavours
The following flavours of the HealthcareService resource are supported:
Identifier types
The following Identifier types pertinent for the HealthcareService resource in an Australian context are supported:
Snippet Name |
Prefix |
Aligns to structure |
HealthcareService-Identifier-Residential Aged Care Service Identifier |
HealthcareService-Identifier-ResidentialAgedCareServiceIdentifier |
AU Residential Aged Care Service Identifier |
HealthcareService-Identifier-HPI-O |
HealthcareService-Identifier-HPI-O and hpio |
AU HPI-O Identifier |
Location
Resource flavours
The following flavours of the Location resource are supported:
Snippet Name |
Prefix |
Aligns to structure |
Example FHIR Location core spec |
Location-corespec |
Core R4 Location |
Example FHIR Location AU Base |
Location-aubase |
AU Base Location |
Example FHIR Location AU Core |
Location-aucore |
AU Core Location |
Example FHIR Location PCA mobile |
Location-pca-mobile |
PCA Location of type 'mobile' |
Example FHIR Location PCA virtual |
Location-pca-virtual |
PCA Location of type 'virtual' |
Example FHIR Location PCA physical |
Location-pca-physical |
PCA Location of type 'physical' |
Identifier types
The following Identifier types pertinent for the Location resource in an Australian context are supported:
Organization
Resource flavours
The following flavours of the Organization resource are supported:
Identifier types
The following Identifier types pertinent for the Organization resource in an Australian context are supported:
Patient
Resource flavours
The following flavours of the Patient resource are supported:
Identifier types
The following Identifier types pertinent for the Patient resource in an Australian context are supported:
Practitioner
Resource flavours
The following flavours of the Practitioner resource are supported:p
| Snippet Name | Prefix | Aligns to structure |
| ------------ | -------- | ----------- |
| Example FHIR Practitioner core spec | Practitioner-corespec
| Core R4 Practitioner |
| Example FHIR Practitioner AU Base | Practitioner-aubase
| AU Base Practitioner |
| Example FHIR Practitioner AU Core | Practitioner-aucore
| AU Core Practitioner |
Identifier types
The following Identifier types pertinent for the Practitioner resource in an Australian context are supported:
Snippet Name |
Prefix |
Aligns to structure |
Practitioner-Identifier-HPI-I |
Practitioner-Identifier-HPI-I and hpii |
AU HPI-I |
Practitioner-Identifier-PBS Prescriber Number |
Practitioner-Identifier-PBSPrescriberNumber |
AU PBS Prescriber Number |
Practitioner-Identifier-Care Agency Employee Identifier |
Practitioner-Identifier-CareAgencyEmployeeIdentifier |
AU Care Agency Employee Identifier |
Practitioner-Identifier-Ahpra Registration Number |
Practitioner-Identifier-AhpraRegistrationNumber |
AU Ahpra Registration Number |
Practitioner-Identifier-PCA Practitioner Identifier |
Practitioner-Identifier--pca-practitioner-identifier |
PCA Practitioner Identifier |
PractitionerRole
Resource flavours
The following flavours of the PractitionerRole resource are supported:
Identifier types
The following Identifier types pertinent for the PractitionerRole resource in an Australian context are supported:
Snippet Name |
Prefix |
Aligns to structure |
PractitionerRole-Identifier-Medicare Provider Number |
PractitionerRole-Identifier-MedicareProviderNumber |
AU Medicare Provider Number |
PractitionerRole-Identifier-Employee Number |
PractitionerRole-Identifier-EmployeeNumber |
AU Employee Number |
PractitionerRole-Identifier-National Provider Identifier At Organisation |
PractitionerRole-Identifier-NationalProviderIdentifierAtOrganisation |
AU National Provider Identifier At Organisation |
Resource flavours
The following flavours of the RelatedPerson resource are supported:
Identifier types
All of the Australian context Patient related Identifier types can also be used in RelatedPerson resources. See above.