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

TestScript: Scenario 2C

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-1f1841578c27

autocreate: true

autodelete: true

resource: OrgA CT Location 2

test

id

3823df50-2a7e-48e7-8f70-921067974a05

name: 0.1 Create hospital organization

action

Operations

-TypeResourceLabelDescriptionAcceptEncodeRequestUrlMethodUrl
*Test script operation code update: UpdateOrganizationHospital OrganizationPUT /baseR4/Organization/J4aabjHFaXv73ZvMEjsontruePUT/baseR4/Organization/J4aabjHFaXv73ZvME

action

Asserts

-DescriptionResponseWarningOnly
*Confirm that the returned HTTP status is 201(Success).createdfalse

test

id

80ca8957-a591-4a3c-835e-7018bf03660b

name: 0.2 Create Jane Doe patient

action

Operations

-TypeResourceLabelDescriptionAcceptEncodeRequestUrlMethodUrl
*Test script operation code update: UpdatePatientJane Doe - PatientPUT /baseR4/Patient/6kKu6iPnJtMozpaBpjsontruePUT/baseR4/Patient/6kKu6iPnJtMozpaBp

action

Asserts

-DescriptionResponseWarningOnly
*Confirm that the returned HTTP status is 201(Success).createdfalse

test

id

ef27765c-a138-5669-b255-17bb91d30cc0

name: 0.3 Create Katie Klepto patient

action

Operations

-TypeResourceLabelDescriptionAcceptEncodeRequestUrlMethodUrl
*Test script operation code update: UpdatePatientKatie KleptoPUT /baseR4/Patient/qirz9TRTPfkDgBSs8jsontruePUT/baseR4/Patient/qirz9TRTPfkDgBSs8

action

Asserts

-DescriptionResponseWarningOnly
*Confirm that the returned HTTP status is 201(Success).createdfalse

test

id

ed7f8206-22ad-4bce-b3d8-83980dc0af5e

name: 0.5 Create Susan social worker

action

Operations

-TypeResourceLabelDescriptionAcceptEncodeRequestUrlMethodUrl
*Test script operation code update: UpdatePractitionerSusan SocialPUT /baseR4/PractitionerjsontruePUT/baseR4/Practitioner

action

Asserts

-DescriptionResponseWarningOnly
*Confirm that the returned HTTP status is 201(Success).createdfalse

test

id

309ca261-92bf-5063-ba69-77f29c52c671

name: 0.6 Create consent records on accessing patient data.

action

Operations

-TypeLabelDescriptionAcceptEncodeRequestUrlMethodUrl
*Test script operation code update: UpdateRestriction on accessing other patients dataPUT /baseR4/Consent/cotkDnGQjpHijDsRRjsontruePUT/baseR4/Consent/cotkDnGQjpHijDsRR

action

Asserts

-DescriptionResponseWarningOnly
*Confirm that the returned HTTP status is 201(Success).createdfalse

test

id

ed7f8206-22ad-4bce-b3d8-83980dc0af5e

name: 1.1.1 Jane authenticates

action

Operations

-TypeResourceLabelDescriptionAcceptEncodeRequestUrlMethodUrl
*Test script operation code read: ReadBasic1.1.1GET /oauth/tokenjsontrueGET/oauth/token

action

Asserts

-DescriptionResponseWarningOnly
*Confirm that the returned HTTP status is 200(OK).okayfalse

test

id

93751460-d513-4b6c-bcc1-1239227c725f

name: 1.1.1 Jane tries to access her own records

action

Operations

-TypeResourceLabelDescriptionAcceptEncodeRequestUrlMethodUrl
*Test script operation code read: ReadBinary1.1.1GET /baseR4/Patient/6kKu6iPnJtMozpaBpjsontrueGET/baseR4/Patient/6kKu6iPnJtMozpaBp

action

Asserts

-DescriptionResponseWarningOnly
*Confirm that the returned HTTP status is 200(OK).okayfalse

test

id

f93da593-133a-4ab5-9a15-6919a9646e2d

name: 1.1.1 Jane logs out

action

Operations

-TypeResourceLabelDescriptionAcceptEncodeRequestUrlMethodUrl
*Test script operation code read: ReadOAuth1.1.1POST /authorizations/revokejsontruePOST/authorizations/revoke

action

Asserts

-DescriptionResponseWarningOnly
*Confirm that the returned HTTP status is 200(OK).okayfalse

test

id

f5e23c2f-3b0a-4994-a5e2-26ee6598cfdb

name: 1.2.1 Katie Klepto authenticates

action

Operations

-TypeResourceLabelDescriptionAcceptEncodeRequestUrlMethodUrl
*Test script operation code read: ReadBasic1.1.1GET /oauth/tokenjsontrueGET/oauth/token

action

Asserts

-DescriptionResponseWarningOnly
*Confirm that the returned HTTP status is 200(OK).okayfalse

test

id

417b8dd4-082b-44a7-8642-7ce48193f5bd

name: 1.2.2 Katie Klepto tries to access her own records

action

Operations

-TypeResourceLabelDescriptionAcceptEncodeRequestUrlMethodUrl
*Test script operation code read: ReadBinary1.1.1GET /baseR4/Patient/qirz9TRTPfkDgBSs8jsontrueGET/baseR4/Patient/qirz9TRTPfkDgBSs8

action

Asserts

-DescriptionResponseWarningOnly
*Confirm that the returned HTTP status is 200(OK).okayfalse

test

id

8ddcbc24-563a-490e-b902-ee28e720ed41

name: 1.2.3 Katie Klepto tries to access Jane's records

action

Operations

-TypeResourceLabelDescriptionAcceptEncodeRequestUrlMethodUrl
*Test script operation code read: ReadBinary1.1.1GET /baseR4/Patient/6kKu6iPnJtMozpaBpjsontrueGET/baseR4/Patient/6kKu6iPnJtMozpaBp

action

Asserts

-DescriptionResponseWarningOnly
*Confirm that the returned HTTP status is 200(OK).badfalse

test

id

125fc5fe-6165-4085-bb71-9cf34fb3f174

name: 1.2.4 Katie Klepto logs out

action

Operations

-TypeResourceLabelDescriptionAcceptEncodeRequestUrlMethodUrl
*Test script operation code read: ReadOAuth1.1.1POST /authorizations/revokejsontruePOST/authorizations/revoke

action

Asserts

-DescriptionResponseWarningOnly
*Confirm that the returned HTTP status is 200(OK).okayfalse

test

id

bd6d83d9-0a6f-47c2-a39e-e393fa1cac54

name: 1.3.1 Susan Social authenticates

action

Operations

-TypeResourceLabelDescriptionAcceptEncodeRequestUrlMethodUrl
*Test script operation code read: ReadBasic1.1.1GET /oauth/tokenjsontrueGET/oauth/token

action

Asserts

-DescriptionResponseWarningOnly
*Confirm that the returned HTTP status is 200(OK).okayfalse

test

id

19f22d84-4715-4bf8-8c96-35586ac19d66

name: 1.3.2 Susan Social accesses Katie's chart

action

Operations

-TypeResourceLabelDescriptionAcceptEncodeRequestUrlMethodUrl
*Test script operation code read: ReadBinary1.1.1GET /baseR4/Patient/qirz9TRTPfkDgBSs8jsontrueGET/baseR4/Patient/qirz9TRTPfkDgBSs8

action

Asserts

-DescriptionResponseWarningOnly
*Confirm that the returned HTTP status is 200(OK).okayfalse

test

id

fcacd7d3-190e-4565-93e2-a4c2ff0123a2

name: 1.3.3 Susan Social accesses Jane's chart

action

Operations

-TypeResourceLabelDescriptionAcceptEncodeRequestUrlMethodUrl
*Test script operation code read: ReadBinary1.1.1GET /baseR4/Patient/6kKu6iPnJtMozpaBpjsontrueGET/baseR4/Patient/6kKu6iPnJtMozpaBp

action

Asserts

-DescriptionResponseWarningOnly
*Confirm that the returned HTTP status is 200(OK).badfalse

test

id

568eb07e-6c81-48e7-b8e6-79c01f103061

name: 1.2.4 Susan Social logs out

action

Operations

-TypeResourceLabelDescriptionAcceptEncodeRequestUrlMethodUrl
*Test script operation code read: ReadOAuth1.1.1POST /authorizations/revokejsontruePOST/authorizations/revoke

action

Asserts

-DescriptionResponseWarningOnly
*Confirm that the returned HTTP status is 200(OK).okayfalse