Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

openspecimen/rest/ng/participants/match

Use this resource to get matching participants in the OpenSpecimen application. Use HTTP POST method to call this API by passing the below details in JSON format. This will match against the below attributes only.

Below are the attributes which need to be sent in the request body:

 

Parameter
Details
lastNameLast name of the participant
uidSocial security number of participant
birthDatedate of birth of participant
pmiscollection of Participant's medical record number used in their medical treatment.
mrnParticipant's medical record number used in their medical treatment.
siteNameName of the physical location.
empiAny other unique identifier for patient, like enterprise master patient index number

 

http[s]:<host>:<port>/openspecimen/rest/ng/participants/match

Use this URL to add participant in OpenSpecimen application.

Result:

The response of this request will contains the details of the created participant.

Below is the example of the create participant:

 

 

URLhttp[s]:<host>:<port>/openspecimen/rest/ng/participants/match
MethodPOST
content-typeapplication/json
MethodPOST
json

{

  "lastName" : "Dep",

  "pmis" : [ { "mrn" : "324r6",

        "siteName" : "Lab2"

      } ],

  "uid" : "123-45-6789"

}

Response

[
1]
0:  
{
"matchedAttrs": [1]
  0: "pmi"
"participant":{

  "lastName" : "Dep",

  "pmis" : [ { "mrn" : "324r6",

        "siteName" : "Lab2"

      } ],

   "id" : "1",

  "uid" : "123-45-6789"

}

}

Note:

matchedAttrs contains list of input attributes against which matching participant was found. The values could any of these ["empi" | "uid" | "pmi" | "lnameAndDob"]

Error Cases :

code
Applies to
Status Message
200All resourcesParticipant registered successfully
400All requestsInvalid parameters, e.g  duplicate SSN, duplicate MRN, invalid race etc
401All requestsAuthorization failed, User doesn’t have privileges to register Participants
500All requestsInternal server error, Encountered server error while performing operations
  • No labels