{ "description": null, "_filename": "TestScript-XA9eSGbRZR7Nrz2Gd.json", "package_name": "hl7.fhir.us.directory-attestation", "date": "2022-06-14T23:19:30.696Z", "publisher": "HL7 Patient Administration Working Group", "jurisdiction": [ { "coding": [ { "code": "US", "system": "urn:iso:std:iso:3166" } ] } ], "name": "Tiered_OAuth_Restricted_Data", "type": null, "experimental": null, "resourceType": "TestScript", "title": "Tiered OAuth - Restricted Access to Womens Shelters", "package_version": "1.0.0-ballot", "status": "draft", "id": "8680f14d-22a3-44a3-998e-c517062f0021", "kind": null, "url": "http://", "fixture": [ { "id": "73594318-988d-5647-b3d8-1f1841578c27", "resource": { "type": "Location", "display": "OrgA CT Location 2", "reference": "Location/lyW5mPW2nf3DHC7h6" }, "autocreate": true, "autodelete": true }, { "id": "43552bb8-5e5e-58e2-b233-36727b1d9d87", "resource": { "type": "ExampleScenario", "reference": "ExampleScenario/5psortwYNqr2vLNwQ" }, "autocreate": true, "autodelete": true } ], "version": "1.0.0-ballot", "contact": [ { "name": "HL7 Patient Administration Working Group", "telecom": [ { "value": "https://www.hl7.org/Special/committees/pafm", "system": "url" }, { "value": "pafm@lists.HL7.org", "system": "email" } ] } ], "test": [ { "id": "4222467a-7bc0-54e4-9879-88fa0c05c412", "name": "Social Worker - Access Role", "action": [ { "operation": { "url": "{{hostname}}/baseR4/PractitionerRole/rCY6ePpLywTbfx3yp", "type": { "code": "update", "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes" }, "label": "Social Worker - Access Role", "accept": "json", "method": "put", "description": "PUT {{hostname}}/baseR4/PractitionerRole/rCY6ePpLywTbfx3yp", "encodeRequestUrl": true } }, { "assert": { "response": "created", "description": "Confirm that the returned HTTP status is 201(Success).", "warningOnly": false } } ] }, { "id": "ef27765c-a138-5669-b255-17bb91d30cc0", "name": "Women's Shelter Location", "action": [ { "operation": { "url": "{{hostname}}/baseR4/Location/lyW5mPW2nf3DHC7h6", "type": { "code": "update", "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes" }, "label": "Women's Shelter Location", "accept": "json", "method": "put", "resource": "Location", "description": "PUT {{hostname}}/baseR4/Location/lyW5mPW2nf3DHC7h6", "encodeRequestUrl": true } }, { "assert": { "response": "created", "description": "Confirm that the returned HTTP status is 201(Success).", "warningOnly": false } } ] }, { "id": "309ca261-92bf-5063-ba69-77f29c52c671", "name": "Restriction on accessing Women's Shelters", "action": [ { "operation": { "url": "{{hostname}}/baseR4/Restriction/cotkDnGQjpHijDsRR", "type": { "code": "update", "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes" }, "label": "Restriction on accessing Women's Shelters", "accept": "json", "method": "put", "description": "PUT {{hostname}}/baseR4/Restriction/cotkDnGQjpHijDsRR", "encodeRequestUrl": true } }, { "assert": { "response": "created", "description": "Confirm that the returned HTTP status is 201(Success).", "warningOnly": false } } ] }, { "id": "5fa71b21-0437-58c1-9110-2e19b3ada768", "name": "Betty Busybody", "action": [ { "operation": { "url": "{{hostname}}/baseR4/Practitioner", "type": { "code": "update", "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes" }, "label": "Betty Busybody", "accept": "json", "method": "put", "resource": "Practitioner", "description": "PUT {{hostname}}/baseR4/Practitioner", "encodeRequestUrl": true } }, { "assert": { "response": "created", "description": "Confirm that the returned HTTP status is 201(Success).", "warningOnly": false } } ] } ] }