CareGroup.WS.CmiWS.CmiWS.LookupMrn Function
The LookupMrn method takes a request XML of string type and returns a reply XML of string type.

Public string LookupMrn (string, string)
  Type Name Description  
    string wmToken Web method token of string type  
    string requestXml XML of string type  
  Return Description  
    string XML of string type

 
Remarks:
The method attempts to match either a patient's demographics or local_id or ITS username to the Community Master Index(CMI) and returns all local_ids associated with the patient. A local_id is a pair of an institution ID and MRN.

The request XML is an XML instance document of http://schemas.caregroup.org/CmiWS/request_LookupMrn.xsd. The reply XML is an XML instance document of http://schemas.caregroup.org/CmiWS/reply_LookupMrn.xsd.

The reply XML has two elements to indicate query status:
status - contains descriptive error messages if any.
match - contains one of the following values:
-1 - No MetaDirectory record found
0 - No UID found
1 - One UID found
2 - Multiple UIDs found

Sample XML instance documents
Click here to view a sample request XML with demographics.
Click here to view a sample request XML with a local_id.
Click here to view a sample request XML with an ITS username.
Click here to view a sample reply XML.