Logo

HL7® Austria FHIR® Core Implementation Guide
2.1.0 - STU3

HL7® Austria FHIR® Core Implementation Guide, published by HL7® Austria, TC FHIR®. This guide is not an authorized publication; it is the continuous build for version 2.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7Austria/HL7-AT-FHIR-Core-R5/ and changes regularly. See the Directory of published versions

TestScript: HL7® AT Core TestScript - Patient Update

Official URL: https://fhir.hl7.at/core/r5/TestScript/testscript-patient-update-at-core Version: 2.1.0
Active as of 2026-09-15 Computable Name: TestScriptATCorePatientUpdate

Copyright/Legal: This FHIR Test Script is licensed under Creative Commons (CC0) 'No Rights Reserved'. Learn more at https://creativecommons.org/licenses

TestScript updating an existing patient resource conformant to the AT Core Patient profile on a FHIR Server using the JSON format. The FHIR Client may use any input patient resource, but the script provides an example patient: Andreas Bucher - HL7ATCorePatientUpdateTestExample with an updated PI value of “11-22-33-44”. Expected Result: the server accepts the update of a Patient resource that is conformant to the AT Core Patient profile. Precondition: the target resource already exists on the server; the setup phase establishes this itself by PUTting the fixture to the same id first, so the test can assert a strict 200 regardless of what ran before it. The patientResourceId variable MUST carry the same value as Patient.id inside the fixture body.

Language: en

url: TestScript HL7® AT Core TestScript - Patient Update

version: 2.1.0

name: TestScriptATCorePatientUpdate

title: HL7® AT Core TestScript - Patient Update

status: Active

experimental: false

date: 2026-09-15

publisher: HL7® Austria, TC FHIR®

contact: HL7® Austria, TC FHIR®: https://hl7.at/technische-komitees/tc-fhir/, Technical Committee for FHIR® at HL7® Austria: mailto:tc-fhir@hl7.at

description:

TestScript updating an existing patient resource conformant to the AT Core Patient profile on a FHIR Server using the JSON format. The FHIR Client may use any input patient resource, but the script provides an example patient: Andreas Bucher - HL7ATCorePatientUpdateTestExample with an updated PI value of “11-22-33-44”. Expected Result: the server accepts the update of a Patient resource that is conformant to the AT Core Patient profile. Precondition: the target resource already exists on the server; the setup phase establishes this itself by PUTting the fixture to the same id first, so the test can assert a strict 200 regardless of what ran before it. The patientResourceId variable MUST carry the same value as Patient.id inside the fixture body.

jurisdiction:

copyright:

This FHIR Test Script is licensed under Creative Commons (CC0) 'No Rights Reserved'. Learn more at https://creativecommons.org/licenses

fixture

id

patient-update

autocreate: false

autodelete: false

resource: Andreas Bucher Male, DoB: 1961-12-24 ( Social Security Number: 1111241261 (use: official))

profile: HL7® AT Core Patient Profile

Variables

-NameDefaultValueDescriptionHint
*patientResourceIdHL7ATCorePatientUpdateTestExampleEnter the patient FHIR resource id the FHIR Client will send to the FHIR Server. It MUST be identical to Patient.id inside the fixture body, otherwise the server returns HTTP 400 Bad Request.[Resource Id]

setup

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParamsResponseIdSourceId
*Test script operation code: update (Update)http://hl7.org/fhir/StructureDefinition/PatientPUT the Patient fixture to [base]/Patient/${patientResourceId} so the resource exists before the update test runs. This relies on the FHIR 'update as create' interaction and therefore succeeds whether or not the resource was already present on the server. Without it the test operation would create the resource itself and the server would answer 201 instead of 200.application/fhir+jsonapplication/fhir+json1true1/${patientResourceId}setup-responsepatient-update

action

Asserts

-DescriptionDirectionOperatorResponseCodeStopTestOnFailWarningOnly
*Confirm the server accepted the setup resource: 200(OK) if it already existed, 201(Created) if it was created by this setup action.responsein200,201truefalse

test

id

Step1-UpdatePatient

name: UpdatePatient

description: Update a patient resource conformant to the AT Core Patient profile.

action

operation

type: Test script operation code: update (Update)

resource: http://hl7.org/fhir/StructureDefinition/Patient

description: PUT the Patient fixture to [base]/Patient/${patientResourceId}.

accept: application/fhir+json

contentType: application/fhir+json

destination: 1

encodeRequestUrl: true

origin: 1

params: /${patientResourceId}

RequestHeaders

-FieldValue
*Preferreturn=representation

responseId: update-response

sourceId: patient-update

action

Asserts

-DescriptionDirectionOperatorResponseCodeStopTestOnFailWarningOnly
*Confirm that the returned HTTP status is 200(OK).responseequals200truefalse

action

Asserts

-DescriptionDirectionStopTestOnFailValidateProfileIdWarningOnly
*Validate that the returned resource conforms to the HL7 AT Core Patient profile.responsetrueat-core-patient-profilefalse