{
"description": "TestScript example resource the demonstrates the use of the artifact-effectivePeriod extenstion. There is a single test for a Patient read operation. The effective period range represents the period of use for the FHIR R4 v4.0.1 specification starting from its release date on Oct 30, 2019 with no expiration.",
"_filename": "example/TestScript-testscript-example-effective-period.json",
"package_name": "hl7.fhir.uv.testing",
"date": "2025-07-29",
"variable": [ {
"name": "KnownPatientResourceId",
"defaultValue": "example"
} ],
"publisher": "HL7 International / FHIR Infrastructure",
"purpose": "Demonstrate use of artifact-effectivePeriod extension",
"resourceDefinition": "http://hl7.org/fhir/StructureDefinition/TestScript|0.1.0-snapshot1",
"name": "TestScriptExampleEffectivePeriodTest",
"copyright": "© HL7.org 2011+",
"type": null,
"experimental": "false",
"resourceType": "TestScript",
"scope": [ {
"phase": {
"coding": [ {
"code": "unit",
"system": "http://hl7.org/fhir/testscript-scope-phase-codes"
} ]
},
"artifact": "http://hl7.org/fhir/StructureDefinition/Patient",
"conformance": {
"coding": [ {
"code": "optional",
"system": "http://hl7.org/fhir/testscript-scope-conformance-codes"
} ]
}
} ],
"title": "TestScript Example Effective Period Test",
"_profile": [ {
"id": "patient-profile"
} ],
"package_version": "0.1.0-snapshot1",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/artifact-effectivePeriod",
"valuePeriod": {
"start": "2019-10-30"
}
} ],
"status": "draft",
"id": "ff18bc38-5e0a-4053-a602-bbe67cc21a2f",
"kind": null,
"url": "http://hl7.org/fhir/TestScript/testscript-example-effective-period",
"identifier": [ {
"value": "urn:oid:2.16.840.1.113883.4.642.12.9",
"system": "urn:ietf:rfc:3986"
} ],
"version": "1.0",
"contact": [ {
"name": "Support",
"telecom": [ {
"use": "work",
"value": "support@HL7.org",
"system": "email"
} ]
} ],
"test": [ {
"id": "PatientRead",
"name": "Patient Read Test",
"action": [ {
"operation": {
"type": {
"code": "read",
"system": "http://hl7.org/fhir/restful-interaction"
},
"accept": "xml",
"params": "/${KnownPatientResourceId}",
"resource": "Patient",
"description": "Read the known Patient resource on the destination test system using the user defined dynamic variable ${KnownPatientResourceId}.",
"encodeRequestUrl": true
}
}, {
"assert": {
"response": "okay",
"description": "Confirm that the returned HTTP status is 200(OK).",
"warningOnly": false,
"stopTestOnFail": false
}
}, {
"assert": {
"contentType": "xml",
"description": "Confirm that the returned format is XML.",
"warningOnly": false,
"stopTestOnFail": false
}
}, {
"assert": {
"description": "Confirm that the returned Patient conforms to the base FHIR specification.",
"warningOnly": false,
"stopTestOnFail": false,
"validateProfileId": "patient-profile"
}
} ],
"description": "Read a known Patient and validate response."
} ],
"profile": [ "http://hl7.org/fhir/StructureDefinition/Patient" ]
}