185 lines
5.4 KiB
JSON
185 lines
5.4 KiB
JSON
![]() |
{
|
||
|
"id": "bahmni.registration",
|
||
|
"instanceOf": "bahmni.template.registration",
|
||
|
"description": "Bahmni Patient Registration App",
|
||
|
"extensionPoints": [
|
||
|
{
|
||
|
"id": "org.bahmni.registration.patient.search.result.action",
|
||
|
"description": "Bahmni Patient Search Result Action"
|
||
|
},
|
||
|
{
|
||
|
"id": "org.bahmni.registration.patient.edit.action",
|
||
|
"description": "Bahmni Patient Edit Page Action"
|
||
|
},
|
||
|
{
|
||
|
"id": "org.bahmni.registration.patient.create.action",
|
||
|
"description": "Bahmni Patient Create Page Action"
|
||
|
}
|
||
|
],
|
||
|
"contextModel": [
|
||
|
"patientUuid",
|
||
|
"activeVisitUuid"
|
||
|
],
|
||
|
"config": {
|
||
|
"autoCompleteFields": [
|
||
|
"familyName"
|
||
|
],
|
||
|
"patientInformation": {
|
||
|
"otherInformation": {
|
||
|
"title": "Other Information",
|
||
|
"attributes": [
|
||
|
"email",
|
||
|
"fatherName",
|
||
|
"spouseName",
|
||
|
"motherName",
|
||
|
"education",
|
||
|
"birthRegistrationId",
|
||
|
"occupation",
|
||
|
"RelativeName",
|
||
|
"relativeMobileNumber",
|
||
|
"relativeAddress",
|
||
|
"religion",
|
||
|
"passportNumber",
|
||
|
"householdCode"
|
||
|
],
|
||
|
"order": 1,
|
||
|
"expanded": false
|
||
|
},
|
||
|
"hidden": {
|
||
|
"attributes": [
|
||
|
"phoneNumber"
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"prepopulateFields": [
|
||
|
"Division",
|
||
|
"Zilla",
|
||
|
"Upazilla"
|
||
|
],
|
||
|
"searchByIdForwardUrl": "/patient/{{patientUuid}}",
|
||
|
"showLastName": false,
|
||
|
"showMiddleName": false,
|
||
|
"showBirthTime": false,
|
||
|
"checkedBirthDateEstimated": true,
|
||
|
"addressHierarchy": {
|
||
|
"showAddressFieldsTopDown": false,
|
||
|
"strictAutocompleteFromLevel": "address2"
|
||
|
},
|
||
|
"printOptions": [
|
||
|
{
|
||
|
"translationKey": "REGISTRATION_PRINT_REG_CARD_LOCAL_KEY2",
|
||
|
"templateUrl": "/bahmni_config/openmrs/apps/registration/oldRegistrationForm3/print.html",
|
||
|
"shortcutKey": "1"
|
||
|
},
|
||
|
{
|
||
|
"translationKey": "REGISTRATION_PRINT_REG_CARD_LOCAL_KEY3",
|
||
|
"templateUrl": "/bahmni_config/openmrs/apps/registration/healthIDCardLayout/ninsHealthID.html",
|
||
|
"shortcutKey": "2"
|
||
|
}
|
||
|
],
|
||
|
"conceptSetUI": {
|
||
|
"Fee Category": {
|
||
|
"required": true
|
||
|
},
|
||
|
"Registration Patient Category": {
|
||
|
"required": true
|
||
|
},
|
||
|
"Patient Visit Type": {
|
||
|
"required": true
|
||
|
},
|
||
|
"Ticket Type": {
|
||
|
"required": true
|
||
|
},
|
||
|
"defaults": {
|
||
|
"Registration Patient Category": "Patient Category, General",
|
||
|
"Patient Visit Type": "Patient Visit Type, New Patient",
|
||
|
"Ticket Type": "Ticket Type, Paid"
|
||
|
}
|
||
|
},
|
||
|
"fieldValidation": {
|
||
|
"givenName": {
|
||
|
"pattern": "^[a-zA-Z \\-\\.]{1,50}$",
|
||
|
"errorMessage": "Given name should only have alphabets, '-', '.' and spaces. Max length is 50"
|
||
|
},
|
||
|
"familyName": {
|
||
|
"pattern": "^([A-Za-z]{1,25})$",
|
||
|
"errorMessage": "Family name should only have alphabets, not even space. Max length is 25"
|
||
|
},
|
||
|
"nationalId": {
|
||
|
"pattern": "^(\\d{10}|\\d{13}|\\d{17})$",
|
||
|
"errorMessage": "National ID should be 10 or 13 or 17 digits"
|
||
|
},
|
||
|
"birthRegistrationId": {
|
||
|
"pattern": "^\\d{17}$",
|
||
|
"errorMessage": "Birth Registration Number should be 17 digits"
|
||
|
},
|
||
|
"phoneNumber": {
|
||
|
"pattern": "^(\\d{3,12})$",
|
||
|
"errorMessage": "Phone Number should be between 3 to 12 digits"
|
||
|
},
|
||
|
"relativeMobileNumber": {
|
||
|
"pattern": "^(\\d{3,12})$",
|
||
|
"errorMessage": "Phone Number should be between 3 to 12 digits"
|
||
|
},
|
||
|
"healthId": {
|
||
|
"pattern": "^[9][1-9][0-9]{9}$",
|
||
|
"errorMessage": "Please enter a valid HID"
|
||
|
},
|
||
|
"address1": {
|
||
|
"pattern": "^(\\s*[^\\s]\\s*){3,255}$",
|
||
|
"errorMessage": "Should have minimum 3 characters"
|
||
|
},
|
||
|
"householdCode": {
|
||
|
"pattern": "^\\d{1,50}$",
|
||
|
"errorMessage": "Should contain only digits, not even space. Max length is 50"
|
||
|
},
|
||
|
"fatherName": {
|
||
|
"pattern": "(^([a-zA-Z\\.\\s]{1,100}) ([a-zA-Z]{0,25})$)|(^([a-zA-Z\\.]{1,100})$)",
|
||
|
"errorMessage": "Should contain only alphabets, dots and spaces"
|
||
|
},
|
||
|
"motherName": {
|
||
|
"pattern": "(^([a-zA-Z\\.\\s]{1,100}) ([a-zA-Z]{0,25})$)|(^([a-zA-Z\\.]{1,100})$)",
|
||
|
"errorMessage": "Should contain only alphabets, dots and spaces"
|
||
|
},
|
||
|
"spouseName": {
|
||
|
"pattern": "(^([a-zA-Z\\.\\s]{1,100}) ([a-zA-Z]{0,25})$)|(^([a-zA-Z\\.]{1,100})$)",
|
||
|
"errorMessage": "Should contain only alphabets, dots and spaces"
|
||
|
}
|
||
|
},
|
||
|
"patientSearch": {
|
||
|
"address": {
|
||
|
"label": "Address/Village",
|
||
|
"placeholder": "Address/Village",
|
||
|
"field": "address1"
|
||
|
},
|
||
|
"customAttributes": {
|
||
|
"label": "ID/Relative Name/Phone",
|
||
|
"placeholder": "ID/Relative Name/Phone",
|
||
|
"fields": [
|
||
|
"nationalId",
|
||
|
"healthId",
|
||
|
"birthRegistrationId",
|
||
|
"phoneNumber",
|
||
|
"fatherName",
|
||
|
"spouseName"
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"afterSavePrint": {
|
||
|
"print": true,
|
||
|
"templateUrl": "/bahmni_config/openmrs/apps/registration/oldRegistrationForm3/print.html",
|
||
|
"createNew": true,
|
||
|
"forwardUrl": "/bahmni/registration/index.html#/patient/new"
|
||
|
},
|
||
|
"healthIdEnable": true,
|
||
|
"eAppointmentEnable": true,
|
||
|
"opdRoom": {
|
||
|
"isMandatory": true,
|
||
|
"conceptName": "Opd Consultation Room"
|
||
|
},
|
||
|
"queueManagement": {
|
||
|
"willUse": true
|
||
|
}
|
||
|
}
|
||
|
}
|