TEST: OHIE-CR-06-FHIR
Patient Identity Cross Referencing
This test ensures that the receiver registers patients in two different identity domains (TEST_A
and TEST_B
) and ensures that the receiver can appropriately cross reference the two identifiers in the identity domains using the IHE Patient Identity Cross Referencing (PIXm) transactions.
References
Discussion
The IHE PIXm transaction is used in scenarios where only cross-referenced identities are disclosed to callers. The transaction is implemented as an operation on the Client Registry and is invoked returning a collection of parameters which represent the cross referenced identities and no further patient information.
Pre-Conditions
Prior to running this test ensure that the pre-conditions from TEST: OHIE-CR-04 have been run.
Create NID Domain
The NID domain is a sample domain which is being used to simulate a globally assignable national identifier (such as a citizen card, etc.) which can be used by the receiver to eliminate fuzzy matching from this test case.
Authenticate as TEST_HARNESS_FHIR_A
The test harness authenticates against the SanteMPI IdP using a client_credentials grant for the test-harness-a account.
Execute PIXm Query for Non-Existent Patient in TEST_A
The test harness sends an IHE PIXm query for a patient with identifier FHIRA-8767 to the receiver.
Expected Behaviour
Requirement | Option | Description |
MUST | Return HTTP code of 404 NOT FOUND | |
MUST | Include an OperationOutcome entry in the response | |
MUST | Include have a detail with issue type not-found | |
SHOULD | Indicate the the identifier pair which is not found |
Register New Patient Identity in TEST_A
The test harness sends an authenticated request to create a new patient with a new identifier in TEST_A domain. Patient details:
Identifier
FHRA-061
inhttp://ohie.org/test/test_a
with useofficial
Identifier
NID061
inhttp://ohie.org/test/nid
Name: JIM SMITH
Gender: Male
DOB: 1984-05-25
Expected Behaviour
Requirement | Option | Description |
MUST | PMIR Only | Return MessageHeader with response.code = ok |
MUST | Return HTTP code of 201 Created | |
SHOULD | PMIR Only | Include an OperationOutcome entry in the response |
SHOULD | Include a Patient entry in response containing created patient | |
SHOULD | Include a link to the master identity with code refer |
Execute PIXm Query Patient in TEST_A
The test harness sends an IHE PIXm query for a patient with identifier FHRA-061 to the receiver.
Expected Behaviour
Requirement | Option | Description |
MUST | Return HTTP code of 200 OK | |
MUST | Include a Parameters resource in the response | |
MUST | Have two parameters carrying the identifier in TEST_A and NID with parameter name of targetIdentifier | |
MUST | Include a parameter with name targetId which has a resource link to the created resource from the previous step. |
Authenticate as TEST_HARNESS_FHIR_B
The test harness authenticates against the SanteMPI IdP using a client_credentials grant for the test-harness-a account.
Register New Patient Identity in TEST_B
The test harness sends an authenticated request to create a new patient with a new identifier in TEST_B domain. Patient details:
Identifier
FHRB-062
inhttp://ohie.org/test/test_b
with useofficial
Identifier
NID061
inhttp://ohie.org/test/nid
Name: JIM SMITH
Gender: Male
Expected Behaviour
Requirement | Option | Description |
MUST | PMIR Only | Return MessageHeader with response.code = ok |
MUST | Return HTTP code of 201 Created | |
SHOULD | PMIR Only | Include an OperationOutcome entry in the response |
SHOULD | Include a Patient entry in response containing created patient | |
SHOULD | Include a link to the master identity with code refer |
Execute PIXm Query Patient using NID for TEST_A
The test harness sends an IHE PIXm query for a patient with identifier NID061 to the receiver and explicitly requests a resolve to TEST_A.
Expected Behaviour
Requirement | Option | Description |
MUST | Return HTTP code of 200 OK | |
MUST | Include a Parameters resource in the response | |
MUST | Have one parameter carrying the identifier FHRA-061 in | |
MUST | Include a parameter with name targetId which has a resource link to the created resource from the previous step. |
Execute PIXm Query Patient using TEST_B for TEST_X
The test harness sends an IHE PIXm query for a patient with identifier FHRB-062 to the receiver asking for identities in TEST_X.
Expected Behaviour
Requirement | Option | Description |
MUST | Return HTTP code of 403 FORBIDDEN | |
MUST | Include an OperationOutcome resource in the response | |
MUST | Carry an issue type code-invalid | |
SHOULD | Include a description that indicates the domain which caused the error condition |
Last updated