-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ref: #152
- Loading branch information
Showing
1 changed file
with
23 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |