WildFHIR Community Edition Implementation Guide
0.5.0 - current International flag

WildFHIR Community Edition Implementation 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 Usage Example JSON

Official URL: http://wildfhir.aegis.net/ig/wildfhirce/TestScript/wildfhircer4patientpurgeusageexamplejson Version: 0.5.0
Active as of 2025-03-24 Computable Name: WildFHIRCER4PatientPurgeUsageExampleJSON

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

Example TestScript to illustrate the use of the WildFHIR CE R4 Patient/[id]/$purge operation using JSON Format. Data for the known Patient id 'wildfhirce-patient-purge' is purged in the setup followed by a single test that recreates the original data via PUT update/create operations.

url: TestScript WildFHIR CE R4 TestScript Patient/[id]/$purge Usage Example JSON

version: 0.5.0

name: WildFHIRCER4PatientPurgeUsageExampleJSON

title: WildFHIR CE R4 TestScript Patient/[id]/$purge Usage Example JSON

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:

Example TestScript to illustrate the use of the WildFHIR CE R4 Patient/[id]/$purge operation using JSON Format. Data for the known Patient id 'wildfhirce-patient-purge' is purged in the setup followed by a single test that recreates the original data via PUT update/create operations.

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.json

fixture

id

observation-update

autocreate: false

autodelete: false

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

variable

name: patientId

path: .id

sourceId: patient-update

variable

name: observationId

path: .id

sourceId: observation-update

setup

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code process-message: $process-messagePatientPurge all data for the known Patient id 'wildfhirce-patient-purge' to insure all history and current instances are removedjsonjson1true1/${patientId}

action

Asserts

-DescriptionDirectionValueWarningOnly
*Confirm that the returned HTTP response code is success.response200false

test

id

RecreatePatientData

name: RecreatePatientData

description: Recreate the original data for the Patient id 'wildfhirce-patient-purge' using JSON Format on destination server.

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParamsSourceId
*Test script operation code update: UpdatePatientCreate the known Patient via an update, order matters for referential integrityjsonjson1true1/${patientId}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/${observationId}observation-update

action

Asserts

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