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 Create

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

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

TestScript creating a patient resource conformant to the AT Core Patient profile on a FHIR Server. The FHIR Client may use any input patient resource, but the script provides an example patient: Andreas Bucher - HL7ATCorePatientCreateTestExample. Expected Result: the server accepts creation of a Patient resource that is conformant to the AT Core Patient profile. The server-assigned logical id is captured in the patientResourceId variable so it can be fed into the AT Core Patient Update test script.

Language: en

url: TestScript HL7® AT Core TestScript - Patient Create

version: 2.1.0

name: TestScriptATCorePatientCreate

title: HL7® AT Core TestScript - Patient Create

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 creating a patient resource conformant to the AT Core Patient profile on a FHIR Server. The FHIR Client may use any input patient resource, but the script provides an example patient: Andreas Bucher - HL7ATCorePatientCreateTestExample. Expected Result: the server accepts creation of a Patient resource that is conformant to the AT Core Patient profile. The server-assigned logical id is captured in the patientResourceId variable so it can be fed into the AT Core Patient Update test script.

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-create

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

-NameDescriptionExpressionSourceId
*patientResourceIdThe server-assigned logical id of the Patient created by this test script. It is read from the create response body, which is why the operation asks for 'Prefer: return=representation'.Patient.idcreate-response

test

id

Step1-RegisterNewPatient

name: RegisterNewPatient

description: Create a new patient conformant to the AT Core Patient profile. The server assigns the resource id.

action

operation

type: Test script operation code: create (Create)

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

description: POST the Patient fixture to [base]/Patient. The server assigns the resource id.

accept: application/fhir+json

contentType: application/fhir+json

destination: 1

encodeRequestUrl: true

origin: 1

RequestHeaders

-FieldValue
*Preferreturn=representation

responseId: create-response

sourceId: patient-create

action

Asserts

-DescriptionDirectionOperatorResponseCodeStopTestOnFailWarningOnly
*Confirm that the returned HTTP status is 200(OK) or 201(Created).responsein200,201truefalse

action

Asserts

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