Skip to content

Commit

Permalink
Pre-requisites corrections
Browse files Browse the repository at this point in the history
Ref: #152
  • Loading branch information
projkov committed Jul 22, 2024
1 parent 9f0aa1f commit 84ebfaf
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions docs/pre-requisites.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
# Pre-requisites
## Test Data
To pass tests, the demo data on the server should be consistent and valid according to the specifications.
# Pre-requisites and Test Suite dependencies
## Test Data Pre-requisites

**For all test groups/suites on Profiles:**
* Each *Must Support* element/reference is populated in at least one resource from the set of resources being tested. In other words, the set of resources being tested has coverage of the Must Support elements; otherwise the test will be failed.
**For ALL test groups/suites on Profiles:**
* Each *Must Support* element/reference is populated in at least one resource from the set of resources being tested. In other words, the set of resources being tested has coverage of the *Must Support* elements; otherwise the test will be skipped.

**You can test a specific resource with these test groups by running them separately and using the ID's input field:**
## Additional Pre-requisites and Test Suite Dependencies

**If running all tests, please note the following additional pre-requisites due to dependecies between test suites:**

* ### Condition
* Use a reference to the **Practitioner** resource in the **asserter** attribute in at least one resource. This is necessary for the **Practitioner** test group.

* ### Encounter
* Use a reference to the **Organization** resource in the **serviceProvider** attribute in at least one resource. This is necessary for the **Organization** test group.
* Use a reference to the **Location** resource in the **location** attribute in at least one resource. This is necessary for the **Location** test group.

* ### MedicationRequest
* Use a reference to the **PractitionerRole** resource in the **requester** attribute in at least one resource. This is necessary for the **PractitionerRole** test group.

***

**Test groups/suites you can run independently to avoid the dependencies:**

You can run the following test groups separately and provide the resource IDs in the input field:
* Patient
* Location
* Organization
* Practitioner
* PractitionerRole

### Patient
* Patients whose IDs are used as input shall exist on the FHIR server.

### Condition
* Use a reference to the **Practitioner** resource in the **asserter** attribute in at least one resource. This is necessary for the **Practitioner** test group.

### Encounter
* Use a reference to the **Organization** resource in the **serviceProvider** attribute in at least one resource. This is necessary for the **Organization** test group.
* Use a reference to the **Location** resource in the **location** attribute in at least one resource. This is necessary for the **Location** test group.

### MedicationRequest
* Use a reference to the **PractitionerRole** resource in the **requester** attribute in at least one resource. This is necessary for the **PractitionerRole** test group.

0 comments on commit 84ebfaf

Please sign in to comment.