OpenMRS Reference Application Version: 2.5 Registration App Version: 1.7-SNAPSHOT
I saw this commit in August that allows you to collect patient identifiers in the registration app. I built the code and am running it on Reference Application v2.5 for testing. I’m trying to build the app.json section and fields to be able to collect the identifiers and get an error when trying to save the form.
Here’s the app configuration I’m pasting into the Manage Apps page:
{
"id": "testregistrationapp.basicRegisterPatient",
"instanceOf": "registrationapp.registerPatient",
"label": "Register Patient",
"description": "Create a new Patient Record",
"extensions": [
{
"id": "registrationapp.basicRegisterPatient.homepageLink",
"extensionPointId": "org.openmrs.referenceapplication.homepageLink",
"type": "link",
"label": "registrationapp.app.registerPatient.label",
"url": "registrationapp/registerPatient.page?appId=testregistrationapp.basicRegisterPatient",
"icon": "icon-user",
"order": 1,
"requiredPrivilege": "App: registrationapp.registerPatient"
}
],
"config": {
"afterCreatedUrl": "/coreapps/clinicianfacing/patient.page?patientId={{patientId}}",
"sections": [
{
"id": "contactInfo",
"label": "registrationapp.patient.contactInfo.label",
"questions": [
{
"legend": "registrationapp.patient.phone.label",
"id": "phoneNumberLabel",
"fields": [
{
"type": "personAttribute",
"label": "registrationapp.patient.phone.question",
"formFieldName": "phoneNumber",
"uuid": "14d4f066-15f5-102d-96e4-000c29c2a5d7",
"widget": {
"providerName": "uicommons",
"fragmentId": "field/text"
},
"cssClasses": ["phone"]
}
]
}
]
},
{
"id": "patient-identification",
"label": "Patient-Identifier(s)",
"questions": [
{
"legend": "Old Identification Number",
"id": "Old_Identification_Number_patientIdentifier",
"fields": [
{
"type": "patientIdentifier",
"label": "Old Identification Number",
"formFieldName": "oldIdentificationNumber",
"uuid": "8d79403a-c2cc-11de-8d13-0010c6dffd0f",
"widget": {
"providerName": "uicommons",
"fragmentId": "field/text"
}
}
]
}
]
}
]
}
}
Questions:
- Is it correct to assume that I could collect multiple patient identifiers in this way?
- Are there any fields I can add to the patient-identifier(s) question set that would automatically capture the current login location?
FYI: @mogoodrich, @jmaxy, @arbaughj