FHIR Testing
0.1.0 - ci-build
FHIR Testing, published by NHO. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/costateixeira/fhirtesting and changes regularly. See the Directory of published versions
{
"resourceType" : "Bundle",
"id" : "testbundle0",
"type" : "transaction",
"entry" : [
{
"fullUrl" : "urn:uuid:05350493-265e-4f8d-87b3-549b19bd5c9d",
"resource" : {
"resourceType" : "TestPlan",
"id" : "testplan1",
"text" : {
"status" : "empty",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">No text</div>"
},
"title" : "Gherkin test plan",
"status" : "active",
"description" : "Test Plan - Simple content testing",
"testCase" : [
{
"sequence" : 1,
"testRun" : [
{
"narrative" : "**Test Measure**\n * Populate the server with some data and a Measure\n * call the $eval operation\n * Use JSONpath to check that the measure evaluates correctly",
"script" : {
"language" : {
"coding" : [
{
"code" : "gherkin"
}
]
},
"sourceReference" : {
🔗 "reference" : "Binary/ghript-measure"
}
}
}
]
},
{
"sequence" : 2,
"testRun" : [
{
"narrative" : "**Test Summary**\n * Populate the server with some data\n * call the $summary operation\n * check that the summary is generated\n * check that the summary was not persisted",
"script" : {
"language" : {
"coding" : [
{
"code" : "gherkin"
}
]
},
"sourceReference" : {
🔗 "reference" : "Binary/ghript-summary"
}
}
}
]
}
]
},
"request" : {
"method" : "PUT",
"url" : "TestPlan"
}
},
{
"fullUrl" : "urn:uuid:05350493-265e-4f8d-87b3-549b19bd5c9e",
"resource" : {
"resourceType" : "Binary",
"id" : "ghript-measure",
"contentType" : "text/x-gherkin",
"data" : "RmVhdHVyZTogVGVzdCBGSElSIEludGVyZmFjZQ0KDQpCYWNrZ3JvdW5kOg0KICAgICogdXJsICdodHRwOi8vbG9jYWxob3N0OjgwODAvZmhpcicNCiAgICAqIGhlYWRlciBBY2NlcHQgPSAnYXBwbGljYXRpb24vZmhpcitqc29uO2ZoaXJWZXJzaW9uPTQuMCcNCiAgICAqIGhlYWRlci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BlDQogICAgKiBtYXRjaCByZXNvdXJjZVR5cGUgPT0gJ01lYXN1cmVSZXBvcnQnDQoNCg=="
},
"request" : {
"method" : "PUT",
"url" : "Binary"
}
},
{
"fullUrl" : "urn:uuid:05350493-265e-4f8d-87b3-549b19bd5c9f",
"resource" : {
"resourceType" : "Binary",
"id" : "ghript-summary",
"contentType" : "text/x-gherkin",
"data" : "RmVhdHVyZTogVGVzdCBGSElSIEludGVyZmFjZQ0KDQpCYWNrZ3JvdW5kOg0KICAgICogdXJsICdodHRwOi8vbG9jYWxob3N0OjgwODAvZmhpcicNCiAgICAqIGhlYWRlciBBY2NlcHQgPSAnYXBwbGljYXRpb24vZmhpcitqc29uO2ZoaXJWZXJzaW9uPTQuMCcNCiAgICAqIGhlYWRlciBDb250ZW50LVR5cGUgPSAnYXBwbGljYXRpb24vZmhpcitqc29uO2ZoaXJWZXJzaW9uPTQuMCcNCg0KDQpTY2VuYXJpbzogU2VuZCBUcmFuc2FjdGlvbiB3aXRoIHRoZSByYXcgcGF0aWVudCBkYXRhIC0gUGF0aWVudCwgTWVkaWNhdGlvblN0YXRlbWVudHMuLi4NCiAgICBHaXZlbiBwYXRoICcnDQogICAgQW5kIHJlcXVlc3QgcmVhZCgnLi4vdGVzdGRhdGEvaXBzLWRhdGEuanNvbicpDQogICAgV2hlbiBtZXRob2QgcG9zdA0KICAgIFRoZW4gc3RhdHVzIDIwMA0KDQpTY2VuYXJpbzogQ3JlYXRlIGFuIElQUyBvbiB0aGUgZmx5IHVzaW5nIHRoZSAkc3VtbWFyeSBvcGVyYXRpb24NCiAgICBHaXZlbiBwYXRoICdQYXRpZW50LzJiOTBkZDJiLTJkYWItNGM3NS05YmI5LWEzNTVlMDc0MDFlOC8kc3VtbWFyeScNCiAgICBXaGVuIG1ldGhvZCBnZXQNCiAgICBUaGVuIHN0YXR1cyAyMDANCiAgICBBbmQgbWF0Y2ggcmVzcG9uc2UuZW50cnlbMF0ucmVzb3VyY2UucmVzb3VyY2VUeXB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