Smart Health Checks
0.4.0 - ci-build

Smart Health Checks, published by AEHRC CSIRO. This guide is not an authorized publication; it is the continuous build for version 0.4.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/aehrc/smart-forms-ig/ and changes regularly. See the Directory of published versions

## Extension: Template Extract Extension Patch Request URL

Official URL: https://smartforms.csiro.au/ig/StructureDefinition/TemplateExtractExtensionPatchRequestUrl | Version: 0.4.0
Draft as of 2025-12-18 | Computable Name: TemplateExtractExtensionPatchRequestUrl
Copyright/Legal: Copyright © 2022+ Australian Government Department of Health and Aged Care - All rights reserved. This content is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. See https://creativecommons.org/licenses/by-sa/4.0/.

This extension is used to specify the value of the request URL for a bundle entry containing a Parameters resource for a PATCH method. It identifies the resource instance being patched and will specify both the resource type and the resource Id. It is to be used as a sub-extension of the Extract Template - Resource extension.

Context of Use

This extension may be used on the following element(s)

- Extension: Extract Template - Resource

Usage info

Usages:

- Examples for this Extension: AboriginalTorresStraitIslanderHealthCheck, AllergiesAdverseReactions, MedicalHistoryCurrentProblems and RegularMedications

You can also check for usages in the FHIR IG Statistics

### Formal Views of Extension Content

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

- Differential Table
- Snapshot Table
- Statistics/References
- All

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | A FHIRPath expression to evaluate the bundle entry request URL for a PATCH entry (string result). E.g. 'AllergyIntolerance/' + item.where(linkId='allergyIntoleranceId').answer.value
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "https://smartforms.csiro.au/ig/StructureDefinition/TemplateExtractExtensionPatchRequestUrl"
value[x] |  | 1..1 | string | Value of extension
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | A FHIRPath expression to evaluate the bundle entry request URL for a PATCH entry (string result). E.g. 'AllergyIntolerance/' + item.where(linkId='allergyIntoleranceId').answer.value
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://smartforms.csiro.au/ig/StructureDefinition/TemplateExtractExtensionPatchRequestUrl"
value[x] |  | 1..1 | string | Value of extension
Documentation for this format

This structure is derived from Extension

Summary

Simple Extension with the type string: This extension is used to specify the value of the request URL for a bundle entry containing a Parameters resource for a PATCH method. It identifies the resource instance being patched and will specify both the resource type and the resource Id. It is to be used as a sub-extension of the Extract Template - Resource extension.

Differential View

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | A FHIRPath expression to evaluate the bundle entry request URL for a PATCH entry (string result). E.g. 'AllergyIntolerance/' + item.where(linkId='allergyIntoleranceId').answer.value
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "https://smartforms.csiro.au/ig/StructureDefinition/TemplateExtractExtensionPatchRequestUrl"
value[x] |  | 1..1 | string | Value of extension
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | A FHIRPath expression to evaluate the bundle entry request URL for a PATCH entry (string result). E.g. 'AllergyIntolerance/' + item.where(linkId='allergyIntoleranceId').answer.value
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "https://smartforms.csiro.au/ig/StructureDefinition/TemplateExtractExtensionPatchRequestUrl"
value[x] |  | 1..1 | string | Value of extension
Documentation for this format

This structure is derived from Extension

Summary

Simple Extension with the type string: This extension is used to specify the value of the request URL for a bundle entry containing a Parameters resource for a PATCH method. It identifies the resource instance being patched and will specify both the resource type and the resource Id. It is to be used as a sub-extension of the Extract Template - Resource extension.

Other representations of profile: CSV, Excel, Schematron

#### Constraints

Id | Grade | Path(s) | Description | Expression
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`