WildFHIR R4 Enterprise Edition Testing Guide
1.0.0 - current International flag

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

TestScript: WildFHIR R4 TestScript Patient/[id]/$purge JSON

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

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-wildfhir-patient-purge.json

fixture

id

observation-update

autocreate: 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

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code delete: DeleteObservationDelete the known Observation to insure it does not exist, order matters for referential integrityjsonjson1true1[[/${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 existjsonjson1true1/${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 integrityjsonjson1true1/${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 integrityjsonjson1true1/${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 JSON Format on destination server and assert successful response.

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code process-message: $process-messagePatientPatient $purge operationjsonjson1true1/${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 Observationjsonjson1true1/${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 Patientjsonjson1true1/${updatePatientId}

action

Asserts

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