From 4fd49c6a540b168df0ac75805e093c33aaafd7e2 Mon Sep 17 00:00:00 2001 From: Brian Postlethwaite Date: Fri, 22 Sep 2023 12:58:31 -0700 Subject: [PATCH] Make resources valid without violating the intent of the unit test that uses them --- r4b/explanationofbenefit-example.json | 51 ++++++++++++++++++--------- r4b/patient-container-example.json | 5 +-- 2 files changed, 37 insertions(+), 19 deletions(-) diff --git a/r4b/explanationofbenefit-example.json b/r4b/explanationofbenefit-example.json index fdb9c3d3..cd1ef424 100644 --- a/r4b/explanationofbenefit-example.json +++ b/r4b/explanationofbenefit-example.json @@ -1,40 +1,57 @@ { - "resourceType" : "ExplanationOfBenefit", + "resourceType": "ExplanationOfBenefit", "id": "example", - "supportingInfo" : [ + "status": "active", + "type": { "text": "type" }, + "use": "preauthorization", + "patient": { "display": "Mr not so good today sir" }, + "created": "2023-09", + "insurer": { "display": "insurer" }, + "provider": { "display": "provider" }, + "outcome": "queued", + "insurance": [ { - "sequence" : 1, - "category" : { - "coding" : [ + "focal": true, + "coverage": { "display": "coverage" }, + "preAuthRef": "ref#1" + } + ], + "supportingInfo": [ + { + "sequence": 1, + "category": { + "coding": [ { - "system" : "http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBSupportingInfoType", - "code" : "additionalbodysite" + "system": "http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBSupportingInfoType", + "code": "additionalbodysite" } ] } }, { - "sequence" : 2, - "category" : { - "coding" : [ + "sequence": 2, + "category": { + "coding": [ { - "system" : "http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBSupportingInfoType", - "code" : "additionalbodysite" + "system": "http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBSupportingInfoType", + "code": "additionalbodysite" } ] } } ], - "item" : [ + "item": [ { - "sequence" : 1, - "informationSequence" : [ + "sequence": 1, + "productOrService": { "text": "item 1" }, + "informationSequence": [ 2 ] }, { - "sequence" : 2, - "informationSequence" : [ + "sequence": 2, + "productOrService": { "text": "item 2" }, + "informationSequence": [ 1 ] } diff --git a/r4b/patient-container-example.json b/r4b/patient-container-example.json index b4b94610..0fe8a872 100644 --- a/r4b/patient-container-example.json +++ b/r4b/patient-container-example.json @@ -3,13 +3,14 @@ "id" : "example-container", "contained" : [{ "resourceType" : "Organization", - "id" : "1" + "id" : "1", + "name" : "Gastroenterology" }], "name" : [{ "text" : "some-name" }], "managingOrganization" : { - "reference" : "1", + "reference" : "#1", "display" : "Gastroenterology" } } \ No newline at end of file