We've recently discovered that Centricity does not export the patient's contacts in the order seen in Registration > Contacts via the Common Event Model. After extensive research, it looks like Centricity exports the contacts based on the RelationshipTypeMId assigned to a contact when it was first set up in Centricity. Contacts should be exported based on the ListOrder (PatientRelationship table in SQL).
For example: In Registration>Contacts patient has contacts in the following order:
- Person A: relationship = mother (relationshiptypemID 10)
- Person B: relationship = father (relationshiptypemID 9)
- Person C: relationship = grandmother (relationshiptypemID 3)
When the Common Event Model exports this patient's information, it is exported in the following order:
- Person C: relationship = grandmother (relationshiptypemID 3)
- Person B: relationship = father (relationshiptypemID 9)
- Person A: relationship = mother (relationshiptypemID 10)
This affects how the State Immunization Registry receives and displays this information in their system. In the example above, the patient's grandmother displays as the primary guardian in AlertIIS when it should be the mother.
We've been advised by athenahealth that this is how the Common Event Model was designed to work, which makes no sense. We've also been advised to purchase the Qvera Interface Engine to manipulate the order of contacts before being sent to the registry which we are not willing to do since we already paid for a solution with the expectation of accuracy. This should be fixed at the source. According to athenahealth, we are the first customer to discover this issue and therefore additional customers must report it before they look at fixing it.
Please review your immunizations export and report it to athenahealth.
I'm not familiar with the CEM, and I haven't had to deal with immunization exports. However, I have done a lot of HL7 interfaces, and I'm playing with FHIR a bit (pun might be intended).
While I see your point that you might expect the contacts to export in the order they are displayed, it seems presumptuous of the state (which state?) to assume the primary guardian would be sent to them as the first contact in a list of contacts.
If you ran the interface through QIE, how would QIE know what order the contacts should be in? Is there a value in the data that indicates primary guardian? If not, I think you would have to query the database to determine the order of the contacts. That seems unnecessarily complex. I've done similar with Mirth to manipulate HL7, but it can be rather time consuming to set up and validate.
-dp