I am currently linking the REST Api to the Patient Registration page in the OpenMRS Android Client.
The Patient creation REST Api takes in two inputs…a person field, which is what takes in the form inputs from the user, and an identifier field, of the following form:
"identifiers": [{
"identifierType": "05a29f94-c0ed-11e2-94be-8c13b969e334",
"identifier": "9AW2N9PHC7WJ2FC7YLV",
"location": "8d6c993e-c2cc-11de-8d13-0010c6dffd0f"
}]
In case of the Android app, what should I fill this field with?
GET
http://devtest04.openmrs.org:8080/openmrs/ws/rest/v1/patientidentifiertype
Returns
{
"results": [{
"uuid": "05a29f94-c0ed-11e2-94be-8c13b969e334",
"display": "OpenMRS ID",
"links": [{
"rel": "self",
"uri": "http://devtest04.openmrs.org:8080/openmrs/ws/rest/v1/patientidentifiertype/05a29f94-c0ed-11e2-94be-8c13b969e334"
}]
}, {
"uuid": "8d79403a-c2cc-11de-8d13-0010c6dffd0f",
"display": "Old Identification Number",
"links": [{
"rel": "self",
"uri": "http://devtest04.openmrs.org:8080/openmrs/ws/rest/v1/patientidentifiertype/8d79403a-c2cc-11de-8d13-0010c6dffd0f"
}]
}, {
"uuid": "8d793bee-c2cc-11de-8d13-0010c6dffd0f",
"display": "OpenMRS Identification Number",
"links": [{
"rel": "self",
"uri": "http://devtest04.openmrs.org:8080/openmrs/ws/rest/v1/patientidentifiertype/8d793bee-c2cc-11de-8d13-0010c6dffd0f"
}]
}]
}
Should this be user selectable?
Tagging @raff for comments.