WildFHIR R4 Enterprise Edition Implementation Guide
1.0.0 - current International flag

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

Official URL: http://wildfhir4.aegis.net/ig/wildfhir/TestScript/wildfhirr4patientpurgeusageexamplejson Version: 1.0.0
Active as of 2025-03-26 Computable Name: WildFHIRR4PatientPurgeUsageExampleJSON

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

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

Generated Narrative: TestScript wildfhirr4patientpurgeusageexamplejson

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

version: 1.0.0

name: WildFHIRR4PatientPurgeUsageExampleJSON

title: WildFHIR R4 TestScript Patient/[id]/$purge Usage Example 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:

Example TestScript to illustrate the use of the WildFHIR R4 Patient/[id]/$purge operation using JSON Format. Data for the known Patient id 'wildfhir-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-wildfhir-patient-purge.json

fixture

id

observation-update

autocreate: false

autodelete: false

resource: ./Observation-wildfhir-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 'wildfhir-patient-purge' to insure all history and current instances are removedjsonjson1true1/${patientId}/$purge

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 'wildfhir-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