Registeration App

Hi Team,

I want to add person attributes, and various drop down in patient registeration page like (Rank will be a drop down option with vlaues (I, II, III… etc), City list).

So I have added city, rank in person attributes from administration. Now to display them I am changing in “referenceapplication.registrationapp.registerPatient” json file.

What I want to ask is how will the city, rank list will get populated in registeration page?

Hi Team,

I am trying to add extra field in patient registeration, check the below json file.

{ “id”: “referenceapplication.registrationapp.myRegisterPat”, “instanceOf”: “registrationapp.registerPatient”, “label”: “My Register Patient”, “description”: “Create MY new Patient Record”, “extensions”: [ { “id”: “referenceapplication.registrationapp.myRegisterPat.homepageLink”, “extensionPointId”: “org.openmrs.referenceapplication.homepageLink”, “type”: “link”, “label”: “My Register Patient”, “url”: “registrationapp/”, “icon”: “icon-user”, “order”: 1, “requiredPrivilege”: “App: registrationapp.registerPatient” } ], “config”: { “afterCreatedUrl”: “/coreapps/clinicianfacing/{{patientId}}”, “sections”: [ { “id”: “contactInfo”, “label”: “registrationapp.patient.contactInfo.label”, “questions”: [ { “legend”: “Person.address”, “fields”: [ { “type”: “personAddress”, “label”: “registrationapp.patient.address.question”, “widget”: { “providerName”: “uicommons”, “fragmentId”: “field/personAddress” } } ] }, { “legend”: “”, “id”: “phoneNumberLabel”, “fields”: [ { “type”: “personAttribute”,

                                "formFieldName": "phoneNumber",
                                "uuid": "14d4f066-15f5-102d-96e4-000c29c2a5d7",
                                "widget": {
                                    "providerName": "uicommons",
                                    "fragmentId": "field/text"
                                "cssClasses": ["phone"]

{ “legend”: “Patient Personal Details”, “id”: “myPersonAttributeLabel”, “fields”: [ { “type”: “personAttribute”, “label”: “Rank”, “formFieldName”: “rank”, “uuid”: “2b287b52-6321-496d-b387-41b70688851e”, “widget”: { “providerName”: “uicommons”, “fragmentId”: “field/text” } }, { “type”: “personAttribute”, “label”: "Police ID Card ", “formFieldName”: “policeIdCard”, “uuid”: “acbca60e-51f1-4eee-8d92-999a236f8893”, “widget”: { “providerName”: “uicommons”, “fragmentId”: “field/text” } }, { “type”: “personAttribute”, “label”: “Place Of Birth”, “formFieldName”: “birthPlace”, “uuid”: “8d8718c2-c2cc-11de-8d13-0010c6dffd0f”, “widget”: { “providerName”: “uicommons”, “fragmentId”: “field/text” } }, { “type”: “personAttribute”, “label”: “Marital Status”, “formFieldName”: “maritalStatus”, “uuid”: “8d871f2a-c2cc-11de-8d13-0010c6dffd0f”, “widget”: { “providerName”: “uicommons”, “fragmentId”: “field/dropDown”, “config”:{ “options” : [“single”, “married”] } } } ] }, { “legend”: “Patient Family Details”, “id”: “patientFamilyDetails”, “fields”: [ { “type”: “personAttribute”, “label”: “Grandfather’s Name”, “formFieldName”: “grandfatherName”, “uuid”: “8383a71e-5172-459a-9aff-2f572f0662a6”, “widget”: { “providerName”: “uicommons”, “fragmentId”: “field/text” } }, { “type”: “personAttribute”, “label”: “Father’s Name”, “formFieldName”: “fathersName”, “uuid”: “56401440-d517-430b-bb0e-4cce741bb215”, “widget”: { “providerName”: “uicommons”, “fragmentId”: “field/text” } }, { “type”: “personAttribute”, “label”: “Mother’s Name”, “formFieldName”: “mothersName”, “uuid”: “8d871d18-c2cc-11de-8d13-0010c6dffd0f”, “widget”: { “providerName”: “uicommons”, “fragmentId”: “field/text” } }


} ] } ] } }

there is one field in this json :-

“type”: “personAttribute”, “label”: “Marital Status”, “formFieldName”: “maritalStatus”, “uuid”: “8d871f2a-c2cc-11de-8d13-0010c6dffd0f”, “widget”: { “providerName”: “uicommons”, “fragmentId”: “field/dropDown”, “config”:{ “options” : [“single”, “married”] } } }

in which I am using drop down fragment. I am getting the below error error while rendering the page.

org.openmrs.ui.framework.ViewException: *** In view ‘field/dropDown’, could not find property ‘selected’.