0.2.2 - ci-build
FastAccessControl, published by MITRE. This guide is not an authorized publication; it is the continuous build for version 0.2.2 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/awatson1978/fhir-access-control-ig/ and changes regularly. See the Directory of published versions
Official URL: http:// | Version: 0.2.2 | |||
Draft as of 2022-06-14 | Computable Name: Scenario 2C |
Generated Narrative: TestScript TestScript-Scenario2C
url: PolstToConsent
version: 0.2.2
name: Scenario 2C
title: R4 TestScript - PHI System - Patient Multi-User Access
status: Draft
date: 2022-06-14 23:19:30+0000
publisher: MITRE
contact: MITRE: https://www.mitre.org
fixture
id
73594318-988d-5647-b3d8-1f1841578c27autocreate: true
autodelete: true
resource: OrgA CT Location 2
test
id
3823df50-2a7e-48e7-8f70-921067974a05name: 0.1 Create hospital organization
action
Operations
Type Resource Label Description Accept EncodeRequestUrl Method Url Test script operation code update: Update Organization Hospital Organization PUT /baseR4/Organization/J4aabjHFaXv73ZvME json true PUT /baseR4/Organization/J4aabjHFaXv73ZvME action
Asserts
Description Response WarningOnly Confirm that the returned HTTP status is 201(Success). created false
test
id
80ca8957-a591-4a3c-835e-7018bf03660bname: 0.2 Create Jane Doe patient
action
Operations
Type Resource Label Description Accept EncodeRequestUrl Method Url Test script operation code update: Update Patient Jane Doe - Patient PUT /baseR4/Patient/6kKu6iPnJtMozpaBp json true PUT /baseR4/Patient/6kKu6iPnJtMozpaBp action
Asserts
Description Response WarningOnly Confirm that the returned HTTP status is 201(Success). created false
test
id
ef27765c-a138-5669-b255-17bb91d30cc0name: 0.3 Create Katie Klepto patient
action
Operations
Type Resource Label Description Accept EncodeRequestUrl Method Url Test script operation code update: Update Patient Katie Klepto PUT /baseR4/Patient/qirz9TRTPfkDgBSs8 json true PUT /baseR4/Patient/qirz9TRTPfkDgBSs8 action
Asserts
Description Response WarningOnly Confirm that the returned HTTP status is 201(Success). created false
test
id
ed7f8206-22ad-4bce-b3d8-83980dc0af5ename: 0.5 Create Susan social worker
action
Operations
Type Resource Label Description Accept EncodeRequestUrl Method Url Test script operation code update: Update Practitioner Susan Social PUT /baseR4/Practitioner json true PUT /baseR4/Practitioner action
Asserts
Description Response WarningOnly Confirm that the returned HTTP status is 201(Success). created false
test
id
309ca261-92bf-5063-ba69-77f29c52c671name: 0.6 Create consent records on accessing patient data.
action
Operations
Type Label Description Accept EncodeRequestUrl Method Url Test script operation code update: Update Restriction on accessing other patients data PUT /baseR4/Consent/cotkDnGQjpHijDsRR json true PUT /baseR4/Consent/cotkDnGQjpHijDsRR action
Asserts
Description Response WarningOnly Confirm that the returned HTTP status is 201(Success). created false
test
id
ed7f8206-22ad-4bce-b3d8-83980dc0af5ename: 1.1.1 Jane authenticates
action
Operations
Type Resource Label Description Accept EncodeRequestUrl Method Url Test script operation code read: Read Basic 1.1.1 GET /oauth/token json true GET /oauth/token action
Asserts
Description Response WarningOnly Confirm that the returned HTTP status is 200(OK). okay false
test
id
93751460-d513-4b6c-bcc1-1239227c725fname: 1.1.1 Jane tries to access her own records
action
Operations
Type Resource Label Description Accept EncodeRequestUrl Method Url Test script operation code read: Read Binary 1.1.1 GET /baseR4/Patient/6kKu6iPnJtMozpaBp json true GET /baseR4/Patient/6kKu6iPnJtMozpaBp action
Asserts
Description Response WarningOnly Confirm that the returned HTTP status is 200(OK). okay false
test
id
f93da593-133a-4ab5-9a15-6919a9646e2dname: 1.1.1 Jane logs out
action
Operations
Type Resource Label Description Accept EncodeRequestUrl Method Url Test script operation code read: Read OAuth 1.1.1 POST /authorizations/revoke json true POST /authorizations/revoke action
Asserts
Description Response WarningOnly Confirm that the returned HTTP status is 200(OK). okay false
test
id
f5e23c2f-3b0a-4994-a5e2-26ee6598cfdbname: 1.2.1 Katie Klepto authenticates
action
Operations
Type Resource Label Description Accept EncodeRequestUrl Method Url Test script operation code read: Read Basic 1.1.1 GET /oauth/token json true GET /oauth/token action
Asserts
Description Response WarningOnly Confirm that the returned HTTP status is 200(OK). okay false
test
id
417b8dd4-082b-44a7-8642-7ce48193f5bdname: 1.2.2 Katie Klepto tries to access her own records
action
Operations
Type Resource Label Description Accept EncodeRequestUrl Method Url Test script operation code read: Read Binary 1.1.1 GET /baseR4/Patient/qirz9TRTPfkDgBSs8 json true GET /baseR4/Patient/qirz9TRTPfkDgBSs8 action
Asserts
Description Response WarningOnly Confirm that the returned HTTP status is 200(OK). okay false
test
id
8ddcbc24-563a-490e-b902-ee28e720ed41name: 1.2.3 Katie Klepto tries to access Jane's records
action
Operations
Type Resource Label Description Accept EncodeRequestUrl Method Url Test script operation code read: Read Binary 1.1.1 GET /baseR4/Patient/6kKu6iPnJtMozpaBp json true GET /baseR4/Patient/6kKu6iPnJtMozpaBp action
Asserts
Description Response WarningOnly Confirm that the returned HTTP status is 200(OK). bad false
test
id
125fc5fe-6165-4085-bb71-9cf34fb3f174name: 1.2.4 Katie Klepto logs out
action
Operations
Type Resource Label Description Accept EncodeRequestUrl Method Url Test script operation code read: Read OAuth 1.1.1 POST /authorizations/revoke json true POST /authorizations/revoke action
Asserts
Description Response WarningOnly Confirm that the returned HTTP status is 200(OK). okay false
test
id
bd6d83d9-0a6f-47c2-a39e-e393fa1cac54name: 1.3.1 Susan Social authenticates
action
Operations
Type Resource Label Description Accept EncodeRequestUrl Method Url Test script operation code read: Read Basic 1.1.1 GET /oauth/token json true GET /oauth/token action
Asserts
Description Response WarningOnly Confirm that the returned HTTP status is 200(OK). okay false
test
id
19f22d84-4715-4bf8-8c96-35586ac19d66name: 1.3.2 Susan Social accesses Katie's chart
action
Operations
Type Resource Label Description Accept EncodeRequestUrl Method Url Test script operation code read: Read Binary 1.1.1 GET /baseR4/Patient/qirz9TRTPfkDgBSs8 json true GET /baseR4/Patient/qirz9TRTPfkDgBSs8 action
Asserts
Description Response WarningOnly Confirm that the returned HTTP status is 200(OK). okay false
test
id
fcacd7d3-190e-4565-93e2-a4c2ff0123a2name: 1.3.3 Susan Social accesses Jane's chart
action
Operations
Type Resource Label Description Accept EncodeRequestUrl Method Url Test script operation code read: Read Binary 1.1.1 GET /baseR4/Patient/6kKu6iPnJtMozpaBp json true GET /baseR4/Patient/6kKu6iPnJtMozpaBp action
Asserts
Description Response WarningOnly Confirm that the returned HTTP status is 200(OK). bad false
test
id
568eb07e-6c81-48e7-b8e6-79c01f103061name: 1.2.4 Susan Social logs out
action
Operations
Type Resource Label Description Accept EncodeRequestUrl Method Url Test script operation code read: Read OAuth 1.1.1 POST /authorizations/revoke json true POST /authorizations/revoke action
Asserts
Description Response WarningOnly Confirm that the returned HTTP status is 200(OK). okay false