[ { "id": "referenceapplication.registrationapp.registerPatient", "instanceOf": "registrationapp.registerPatient", "label": "Register Patient", "description": "Create a new Patient Record", "extensions": [ { "id": "referenceapplication.registrationapp.registerPatient.homepageLink", "extensionPointId": "org.openmrs.referenceapplication.homepageLink", "type": "link", "label": "referenceapplication.app.registerPatient.label", "url": "registrationapp/registerPatient.page?appId=referenceapplication.registrationapp.registerPatient", "icon": "icon-user", "order": 1, "requiredPrivilege": "App: registrationapp.registerPatient" }, { "id": "application.registrationapp.summary.editPatientLink", "extensionPointId": "patientDashboard.overallActions", "type": "link", "label": "referenceapplication.app.editRegistrationInfo.label", "url": "registrationapp/registrationSummary.page?patientId={{patient.uuid}}&appId=referenceapplication.registrationapp.registerPatient", "icon": "icon-pencil", "order": 25, "requiredPrivilege": "App: registrationapp.registerPatient" } ], "config": { "afterCreatedUrl": "/coreapps/clinicianfacing/patient.page?patientId={{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": "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": "relationships-info", "label": "registrationapp.person.relationship", "questions": [ { "legend": "registrationapp.person.relationship.label", "header": "registrationapp.person.relationship.question", "fields": [ { "type": "personRelationships", "widget": { "providerName": "registrationapp", "fragmentId": "field/personRelationship" } } ] } ] } ] } } ]