WildFHIR Community Edition Testing Guide
0.5.0 - current International flag

WildFHIR Community Edition Testing Guide - Local Development build (v0.5.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

TestScript: WildFHIR CE R4 TestScript Patient/[id]/$purge XML

Official URL: http://wildfhir.aegis.net/tg/wildfhirce/TestScript/wildfhircer4patientpurgexml Version: 0.5.0
Active as of 2025-03-24 Computable Name: WildFHIRCER4PatientPurgeXML

Copyright/Legal: (c) AEGIS.net, Inc. 2025

Test the WildFHIR CE R4 Patient/[id]/$purge operation using XML Format

Generated Narrative: TestScript wildfhircer4patientpurgexml

org/fhir/StructureDefinition/scope: http://wildfhir.aegis.net/ig/wildfhirce/ActorDefinition/wildfhirce-responder

org/fhir/StructureDefinition/scope: AEGIS WildFHIR Community Edition R4 Patient Purge

url: TestScript WildFHIR CE R4 TestScript Patient/[id]/$purge XML

version: 0.5.0

name: WildFHIRCER4PatientPurgeXML

title: WildFHIR CE R4 TestScript Patient/[id]/$purge XML

status: Active

date: 2025-03-24

publisher: AEGIS.net, Inc.

contact: AEGIS.net, Inc.: https://www.aegis.net, Richard Ettema: mailto:richard.ettema@aegis.net

description:

Test the WildFHIR CE R4 Patient/[id]/$purge operation using XML Format

jurisdiction: World

copyright:

(c) AEGIS.net, Inc. 2025

Origins

-IndexProfile
*1Test script profile origin type FHIR-Client: FHIR Client

Destinations

-IndexProfile
*1Test script profile destination type FHIR-Server: FHIR Server

fixture

id

patient-update

autocreate: false

autodelete: false

resource: ./Patient-wildfhirce-patient-purge.xml

fixture

id

observation-update

autocreate: false

autodelete: false

resource: ./Observation-wildfhirce-observation-purge.xml

variable

name: updatePatientId

path: /Patient/id

sourceId: patient-update

variable

name: updateObservationId

path: /Observation/id

sourceId: observation-update

setup

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code delete: DeleteObservationDelete the known Observation to insure it does not exist, order matters for referential integrityxmlxml1true1[[/${updateObservationId}]]

action

Asserts

-DescriptionDirectionOperatorValueWarningOnly
*Confirm that the returned HTTP response code is success.responsein200,204,404false

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code delete: DeletePatientDelete the known Patient to insure it does not exist, order matters for referential integrityxmlxml1true1[[/${updatePatientId}]]

action

Asserts

-DescriptionDirectionOperatorValueWarningOnly
*Confirm that the returned HTTP response code is success.responsein200,204,404false

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParamsSourceId
*Test script operation code update: UpdatePatientCreate the known Patient via an update, order matters for referential integrityxmlxml1true1[[/${updatePatientId}]]patient-update

action

Asserts

-DescriptionDirectionOperatorValueWarningOnly
*Confirm that the returned HTTP response code is success.responsein200,201false

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParamsSourceId
*Test script operation code update: UpdateObservationCreate the known Observation via an update, order matters for referential integrityxmlxml1true1[[/${updateObservationId}]]observation-update

action

Asserts

-DescriptionDirectionOperatorValueWarningOnly
*Confirm that the returned HTTP response code is success.responsein200,201false

test

id

PatientPurge

name: PatientPurge

description: Test the Patient/[id]/$purge operation using XML Format on destination server and assert successful response.

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code process-message: $process-messagePatientPatient $purge operationxmlxml1true1[[/${updatePatientId}/$purge]]

action

Asserts

-DescriptionDirectionResponseCodeWarningOnly
*Confirm that the returned response code is 200 OK.response200false

action

Asserts

-DescriptionDirectionResourceWarningOnly
*Confirm that the returned response payload is an OperationOutcome resource.responseOperationOutcomefalse

action

Asserts

-DescriptionDirectionExpressionWarningOnly
*Confirm that the returned OperationOutcome contains an infomation issue.responseOperationOutcome.issue.where(severity = 'infomation').exists()false

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code read: ReadObservationAttempt to read purged Observationxmlxml1true1[[/${updateObservationId}]]

action

Asserts

-DescriptionDirectionResponseCodeWarningOnly
*Confirm that the returned response code is 404 Not Found.response404false

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code read: ReadPatientAttempt to read purged Patientxmlxml1true1[[/${updatePatientId}]]

action

Asserts

-DescriptionDirectionResponseCodeWarningOnly
*Confirm that the returned response code is 404 Not Found.response404false