Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "id": "registrationapp.registerPatient.wAddHierarchy",
- "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": "Enregistrer un patient",
- "url": "registrationapp/registerPatient.page?appId=referenceapplication.registrationapp.registerPatient",
- "icon": "icon-user",
- "order": 1,
- "requiredPrivilege": "App: registrationapp.registerPatient"
- }
- ],
- "config": {
- "afterCreatedUrl": "/coreapps/clinicianfacing/patient.page?patientId={{patientId}}",
- "allowRetrospectiveEntry":true,
- "sections": [
- {
- "id": "contactInfo",
- "label": "registrationapp.patient.contactInfo.label",
- "questions": [
- {
- "legend": "Person.address",
- "fields": [
- {
- "type": "personAddress",
- "label": "registrationapp.patient.address.question",
- "widget": {
- "providerName": "registrationapp",
- "fragmentId": "field/personAddressWithHierarchy",
- "config" : {
- "shortcutFor": "address1",
- "manualFields": ["address2"]
- }
- }
- }
- ]
- },
- {
- "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"]
- }
- ]
- },
- {
- "legend": "Next of Kin",
- "id": "nokLabel",
- "fields": [
- {
- "type": "personAttribute",
- "label": "Next of Kin Name",
- "formFieldName": "nextOfKinName",
- "uuid": "8d871d18-c2cc-11de-8d13-0010c6dffd0f",
- "widget": {
- "providerName": "uicommons",
- "fragmentId": "field/text"
- }
- },
- {
- "type": "personAttribute",
- "label": "Next of Kin Phone Number",
- "formFieldName": "nextOfKinPhone",
- "uuid": "8d871386-c2cc-11de-8d13-0010c6dffd0f",
- "widget": {
- "providerName": "uicommons",
- "fragmentId": "field/text"
- },
- "cssClasses": ["number"]
- }
- ]
- }
- ]
- }
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement