TEST: OHIE-CR-05-FHIR
Last updated
Was this helpful?
Last updated
Was this helpful?
This test ensures that the receiver can create a record with minimally useful information linked to another person/patient. This is often useful when registering an infant demographic record where only date of birth, gender and mother's information is known.
A master patient index/client registry is often tasked with the storage of partial registration records and/or records which are only identifiable by their mother's information.
Whereas this information can be registered in one message in HL7v2 (using mother's name and mother's identifier), this test requires the use of either:
A FHIR transaction bundle to register a related person (the mother) and patient
Two FHIR operations to register the patient and the related person (the mother)
A PMIR message with the related person (the mother) and patient.
SanteMPI supports robust relationships between entities which cannot be easily expressed in FHIR. For example, there may be use cases where the mother is a patient (via delivery) at a hospital and the child is also a patient (receiving care at a NICU). Unfortunately, this type of relationship in FHIR is represented as the following structure:
Unfortunately in SanteMPI this type of relationship can only be established when:
The three resources are submitted as part of an entire bundle (such as a transaction bundle or PMIR operation)
The Registration occurs on the REST interface such that:
Mother Patient is registered first with a concrete identifier in the identifier
property
Baby Patient is registered next with a concrete identifier in the identifier
property
Mother RelatedPerson is registered using the same concrete identifier
as that used in step .
This test suite tests both methods of creating a mother/child relationship
The test harness authenticates against the SanteMPI IdP using a client_credentials grant for the test-harness-a account.
The test harness sends an authenticated request to create a child record with a mother's demographics as a simple related person.
Identifier FHR-050 in http://ohie.org/test/test with use official
Name: WIN MINH
Gender: Male
DOB: 2017-04-03
The mother is a simple Related Person with name SU MYAT LWIN.
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 the RelatedPerson entry which was created
SHOULD
Include a link to the master identity with code refer
The test harness executes a query against the receiver to ensure the record was created domain
Requirement
Option
Description
MUST
Accept the message with HTTP 200 OK
MUST
Include a bundle with exactly 1 patient result
MUST
Include a bundle with exactly 1 RelatedPerson result
MUST
Contain a patient for WIN MINH
MUST
Have an identifier for FHR-050 in system http://ohie.org/test/test
MUST
Contain a RelatedPerson with name SU MYAT LWIN
SHOULD
Contain one or more link entries with type seealso pointing to local records
The test harness sends an authenticated request to create a newborn record with the mother's demographics. This test mimics registering a patient (the Mother) and a nameless newborn (the Baby) in one transaction.
Patient (Mother) details:
Identifier FHR-052
in http://ohie.org/test/test
with use official
Name: SARAH ABELS
Gender: Female
DOB: 1984-05-25
Newborn information:
Identifier FHR-051
in http://ohie.org/test/test
Gender: Female
DOB: 2021-04-25
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 patients for
the newborn and mother.
SHOULD
Include a link to the master identity with code refer
The test harness executes a query against the receiver to ensure the record was created domain
Requirement
Option
Description
MUST
Accept the message with HTTP 200 OK
MUST
Include a bundle with exactly 1 patient result.
MUST
Contain the nameless newborn patient details (validated by Gender and DOB)
MUST
Have an identifier for FHR-051 in system http://ohie.org/test/test
MUST
Have a RelatedPerson with identifier FHR-052 for SARAH ABELS
SHOULD
Contain one or more link entries with type seealso pointing to local records
The test harness will query by the identifier of the mother to validate that the receiver created the mother record for a patient.
Requirement
Option
Description
MUST
Accept the message with HTTP 200 OK
MUST
Include a bundle with exactly 1 patient result.
MUST
Contain the mother patient details (name of SARAH ABELS)
MUST
Have an identifier for FHR-052 in system http://ohie.org/test/test
SHOULD
Contain one or more link entries with type seealso pointing to local records
The test harness will execute a query on the patient resource and will validate that the client registry understands the extended mothersMaidenName
parameter supplied.
Requirement
Option
Description
MUST
Accept the message with HTTP 200 OK
MUST
Include a bundle with exactly 1 patient result.
MUST
Contain the child patient details
MUST
Have an identifier for FHR-051 in system http://ohie.org/test/test
SHOULD
Contain one or more link entries with type seealso pointing to local records
Ensure that all pre-conditions for have been completed.