National Healthcare Directory Attestation and Verification
1.0.0-ballot - ballot

National Healthcare Directory Attestation and Verification, published by HL7 Patient Administration Working Group. This is not an authorized publication; it is the continuous build for version 1.0.0-ballot). This version is based on the current content of https://github.com/HL7/fhir-directory-attestation/ and changes regularly. See the Directory of published versions

## TestScript: Restricted Access

Official URL: http:// | Version: 1.0.0-ballot
Draft as of 2022-06-14 | Computable Name: Tiered_OAuth_Restricted_Data

Generated Narrative: TestScript

Resource TestScript "XA9eSGbRZR7Nrz2Gd"

url: `http://`

version: 1.0.0-ballot

name: Tiered_OAuth_Restricted_Data

title: Tiered OAuth - Restricted Access to Womens Shelters

status: draft

date: 2022-06-14 23:19:30+0000

publisher: HL7 Patient Administration Working Group

contact: HL7 Patient Administration Working Group: https://www.hl7.org/Special/committees/pafm,pafm@lists.HL7.org

jurisdiction: United States of America (ISO 3166-1 Codes for the representation of names of countries and their subdivisions — Part 1: Country code#US)

> fixture

> autocreate: true

> autodelete: true

> resource: Location/lyW5mPW2nf3DHC7h6: OrgA CT Location 2 "OrgA CT Location 2"

> fixture

> autocreate: true

> autodelete: true

> resource: ExampleScenario/5psortwYNqr2vLNwQ

> test

> name: Social Worker - Access Role

> > action

> > ### Operations

> > - | Type | Label | Description | Accept | EncodeRequestUrl | Method | Url
> > * | Update (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code update = 'Update', stated as 'null') | Social Worker - Access Role | PUT {{hostname}}/baseR4/PractitionerRole/rCY6ePpLywTbfx3yp | json | true | put | {{hostname}}/baseR4/PractitionerRole/rCY6ePpLywTbfx3yp

> > action

> > ### Asserts

> > - | Description | Response | WarningOnly
> > * | Confirm that the returned HTTP status is 201(Success). | created | false

> test

> name: Women's Shelter Location

> > action

> > ### Operations

> > - | Type | Resource | Label | Description | Accept | EncodeRequestUrl | Method | Url
> > * | Update (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code update = 'Update', stated as 'null') | Location | Women's Shelter Location | PUT {{hostname}}/baseR4/Location/lyW5mPW2nf3DHC7h6 | json | true | put | {{hostname}}/baseR4/Location/lyW5mPW2nf3DHC7h6

> > action

> > ### Asserts

> > - | Description | Response | WarningOnly
> > * | Confirm that the returned HTTP status is 201(Success). | created | false

> test

> name: Restriction on accessing Women's Shelters

> > action

> > ### Operations

> > - | Type | Label | Description | Accept | EncodeRequestUrl | Method | Url
> > * | Update (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code update = 'Update', stated as 'null') | Restriction on accessing Women's Shelters | PUT {{hostname}}/baseR4/Restriction/cotkDnGQjpHijDsRR | json | true | put | {{hostname}}/baseR4/Restriction/cotkDnGQjpHijDsRR

> > action

> > ### Asserts

> > - | Description | Response | WarningOnly
> > * | Confirm that the returned HTTP status is 201(Success). | created | false

> test

> name: Betty Busybody

> > action

> > ### Operations

> > - | Type | Resource | Label | Description | Accept | EncodeRequestUrl | Method | Url
> > * | Update (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code update = 'Update', stated as 'null') | Practitioner | Betty Busybody | PUT {{hostname}}/baseR4/Practitioner | json | true | put | {{hostname}}/baseR4/Practitioner

> > action

> > ### Asserts

> > - | Description | Response | WarningOnly
> > * | Confirm that the returned HTTP status is 201(Success). | created | false