HL7® Austria FHIR® Core Implementation Guide
1.1.0 - STU2

HL7® Austria FHIR® Core Implementation Guide - Local Development build (v1.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

TestScript: HL7® AT Core TestScript - Patient Update

Official URL: http://hl7.at/fhir/HL7ATCoreProfiles/4.0.1/TestScript/testscript-patient-update-at-core Version: 1.1.0
Active as of 2023-02-21 Responsible: HL7® Austria Computable Name: HL7® AT Core TestScript - Patient Update

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. FHIR Client may use any input patient resource, but the script can provide an example patient: Andreas Bucher - HL7ATCorePatientExample04 with an updated PI value of “11-22-33-44”. Expected Result: Server accepts update of Patient resource that is conformant to the AT Core Patient profile. The testscript uses a variable for the resource ID value which should match the Id of the resource being updated.

Generated Narrative: TestScript

Resource TestScript "testscript-patient-update-at-core"

url: http://hl7.at/fhir/HL7ATCoreProfiles/4.0.1/TestScript/testscript-patient-update-at-core

version: 1.1.0

name: HL7® AT Core TestScript - Patient Update

title: HL7® AT Core TestScript - Patient Update

status: active

date: 2023-02-21

publisher: HL7® Austria

contact: 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. FHIR Client may use any input patient resource, but the script can provide an example patient: Andreas Bucher - HL7ATCorePatientExample04 with an updated PI value of “11-22-33-44”. Expected Result: Server accepts update of Patient resource that is conformant to the AT Core Patient profile. The testscript uses a variable for the resource ID value which should match the Id of the resource being updated.

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

Origins

-IndexProfile
*1FHIR Client (Details: http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types code FHIR-Client = 'FHIR Client', stated as 'null')

Destinations

-IndexProfile
*1FHIR Server (Details: http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types code FHIR-Server = 'FHIR Server', stated as 'null')

fixture

id

patient-update

autocreate: false

autodelete: false

resource: Patient-HL7ATCorePatientUpdateTestExample.html

profile: http://hl7.at/fhir/HL7ATCoreProfiles/4.0.1/StructureDefinition/at-core-patient "HL7ATCorePatient"

Variables

-NameDescriptionHint
*patientResourceIdEnter the patient FHIR resource id the FHIR Client will send to the FHIR Server.[Resource Id]

test

id

Step1-UpdatePatient

name: UpdatePatient

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

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParamsResponseIdSourceId
*Update (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code update = 'Update', stated as 'null')PatientUpdate patient resource.jsonjson1true1/${patientResourceId}create-responsepatient-update

action

Asserts

-DescriptionDirectionValidateProfileIdWarningOnly
*Validate that the returned resource conforms to the base FHIR Patient profile.requestat-core-patient-profilefalse

action

Asserts

-DescriptionDirectionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is 200(OK).responseequals200false