openspecimen/rest/ng/participants/matchParticipantsmatch
Use this resource to create new participant in the OpenSpecimen application. Use HTTP POST method to call this API by passing the below details in JSON format.
Below are the attributes which need to be sent in the request body:
...
...
...
API to search the database that match one or more of the matching field. Typically, you should use this API is before adding a new participant to check if the participant is already present in the database.
Parameter | Details |
---|---|
lastName | Last name of the participant |
gender of the participant, permissible values are
{Male Gender, Female Gender, Unknown, Unspecified}
Patient's racial origination, permissible values are:
{American Indian or Alaska Native, Asian, Black or African American, Native Hawaiian or other Pacific Islander, Not Reported, Unknown, White}
Patient's ethnicity status. permissible values are:
{Hispanic or Latino, Not Hispanic or Latino, Not Reported, Unknown}
The genetic constitution of the individual; the characterization of the genes. Permissible values are:
{XX Genotype, XY Genotype, XXX, Klinefelter’s Syndrome, XXXY syndrome, XXYY syndrome, Mosaic including XXXXY, Penta X syndrome}
. Used in conjunction with birthDate. | |
uid | Country specific social security or national ID of the participant. For example, in US, this could be SSN. In India, this could be Aadhar number / PAN etc |
birthDate | Participant's date of birth. Used in conjunction with lastName. |
pmi | Participant's MRN and name of site that assigned the MRN. Refer below example for the field structure. |
empi | Enterprise wide unique ID assigned to the participant. |
reqRegInfo | Boolean specifying whether the registration details of matched participants needs to be populated in response. By default, the value of this flag is false. |
http[s]:<host>:<port>/openspecimen/rest/ng/participants/matchParticipantsmatch
Use this URL to add participant find matching participants in OpenSpecimen applicationdatabase.
Result:
The response of this request will contains the details of the created participantmatching request is either an empty array or list of matched participants.
Below is the example of the create participantmatch participants request-response:
URL | http[s]:<host>:<port>/openspecimen/rest/ng/participants/match |
Method | POST |
content-type | application/json |
Method | POST |
Body |
|
"ethnicity" : "Unknown",
"firstName" : "Jhon",
"gender" : "Male Gender",
"lastName" :
|
|
|
} ],
"race" : [ "Asian" ],
"ssn" :
|
| |||
Response |
|
"ethnicity" : "Unknown",
"firstName" : "Jhon",
"gender" : "Male Gender",
"lastName" : "Dep",
"pmiCollection" : [ { "mrn" : "324r6",
"siteName" : "Lab2"
} ],
"race" : [ "Asian" ],
"id" : "1",
"ssn" : "123-45-6789"
...
|
Note:
Error Cases :
code | Applies to | Status Message |
---|---|---|
200 | All resources |
Matching request executed successfully | ||
400 | All requests | Invalid |
input parameters. Retrying request with correct parameter values might succeed. | ||
401 | All requests | Authorization failed |
. User doesn’t have |
rights to find matching participants. | |
500 | All requests |
Server error. Retrying request might not succeed. |