WildFHIR R4 Enterprise Edition Testing Guide
1.0.0 - current
WildFHIR R4 Enterprise Edition Testing Guide - Local Development build (v1.0.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
Official URL: http://wildfhir4.aegis.net/tg/wildfhir/TestScript/wildfhirr4patientpurgejson | Version: 1.0.0 | |||
Active as of 2025-03-26 | Computable Name: WildFHIRR4PatientPurgeJSON | |||
Copyright/Legal: (c) AEGIS.net, Inc. 2025 |
Test the WildFHIR R4 Patient/[id]/$purge operation using JSON Format
Generated Narrative: TestScript wildfhirr4patientpurgejson
org/fhir/StructureDefinition/scope: http://wildfhir4.aegis.net/ig/wildfhir/ActorDefinition/wildfhir-responder
org/fhir/StructureDefinition/scope: AEGIS WildFHIR R4 Patient Purge
url: TestScript WildFHIR R4 TestScript Patient/[id]/$purge JSON
version: 1.0.0
name: WildFHIRR4PatientPurgeJSON
title: WildFHIR R4 TestScript Patient/[id]/$purge JSON
status: Active
date: 2025-03-26
publisher: AEGIS.net, Inc.
contact: AEGIS.net, Inc.: https://www.aegis.net, Richard Ettema: mailto:richard.ettema@aegis.net
description:
Test the WildFHIR R4 Patient/[id]/$purge operation using JSON Format
jurisdiction: World
copyright:
(c) AEGIS.net, Inc. 2025
Index | Profile |
1 | Test script profile origin type FHIR-Client: FHIR Client |
Index | Profile |
1 | Test script profile destination type FHIR-Server: FHIR Server |
fixture
id
patient-updateautocreate: false
autodelete: false
resource:
./Patient-wildfhir-patient-purge.json
fixture
id
observation-updateautocreate: false
autodelete: false
resource:
./Observation-wildfhir-observation-purge.json
variable
name: updatePatientId
path: .id
sourceId: patient-update
variable
name: updateObservationId
path: .id
sourceId: observation-update
setup
action
Operations
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params Test script operation code delete: Delete Observation Delete the known Observation to insure it does not exist, order matters for referential integrity json json 1 true 1 [[/${updateObservationId}]] action
Asserts
Description Direction Operator Value WarningOnly Confirm that the returned HTTP response code is success. response in 200,204,404 false action
Operations
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params Test script operation code delete: Delete Patient Delete the known Patient to insure it does not exist json json 1 true 1 /${updatePatientId} action
Asserts
Description Direction Operator Value WarningOnly Confirm that the returned HTTP response code is success. response in 200,204,404 false action
Operations
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params SourceId Test script operation code update: Update Patient Create the known Patient via an update, order matters for referential integrity json json 1 true 1 /${updatePatientId} patient-update action
Asserts
Description Direction Operator Value WarningOnly Confirm that the returned HTTP response code is success. response in 200,201 false action
Operations
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params SourceId Test script operation code update: Update Observation Create the known Observation via an update, order matters for referential integrity json json 1 true 1 /${updateObservationId} observation-update action
Asserts
Description Direction Operator Value WarningOnly Confirm that the returned HTTP response code is success. response in 200,201 false
test
id
PatientPurgename: PatientPurge
description: Test the Patient/[id]/$purge operation using JSON Format on destination server and assert successful response.
action
Operations
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params Test script operation code process-message: $process-message Patient Patient $purge operation json json 1 true 1 /${updatePatientId}/$purge action
Asserts
Description Direction ResponseCode WarningOnly Confirm that the returned response code is 200 OK. response 200 false action
Asserts
Description Direction Resource WarningOnly Confirm that the returned response payload is an OperationOutcome resource. response OperationOutcome false action
Asserts
Description Direction Expression WarningOnly Confirm that the returned OperationOutcome contains an infomation issue. response OperationOutcome.issue.where(severity = 'infomation').exists() false action
Operations
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params Test script operation code read: Read Observation Attempt to read purged Observation json json 1 true 1 /${updateObservationId} action
Asserts
Description Direction ResponseCode WarningOnly Confirm that the returned response code is 404 Not Found. response 404 false action
Operations
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params Test script operation code read: Read Patient Attempt to read purged Patient json json 1 true 1 /${updatePatientId} action
Asserts
Description Direction ResponseCode WarningOnly Confirm that the returned response code is 404 Not Found. response 404 false