andy_ife

Fingerprint config for registration app

Apr 17th, 2026
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 4.09 KB | Source Code | 0 0
  1. {
  2.   "id": "referenceapplication.registerPatient.slBiometrics",
  3.   "instanceOf": "registrationapp.registerPatient",
  4.   "label": "Register Patient",
  5.   "description": "Create a new Patient Record",
  6.   "extensions": [
  7.     {
  8.       "id": "referenceapplication.registrationapp.registerPatient.homepageLink",
  9.       "extensionPointId": "org.openmrs.referenceapplication.homepageLink",
  10.       "type": "link",
  11.       "label": "referenceapplication.app.registerPatient.label",
  12.       "url": "registrationapp/registerPatient.page?appId=referenceapplication.registerPatient.slBiometrics",
  13.       "icon": "icon-user",
  14.       "order": 1,
  15.       "requiredPrivilege": "App: registrationapp.registerPatient"
  16.     },
  17.     {
  18.       "id": "application.registrationapp.summary.editPatientLink",
  19.       "extensionPointId": "patientDashboard.overallActions",
  20.       "type": "link",
  21.       "label": "referenceapplication.app.editRegistrationInfo.label",
  22.       "url": "registrationapp/registrationSummary.page?patientId={{patient.uuid}}&appId=referenceapplication.registerPatient.slBiometrics",
  23.       "icon": "icon-pencil",
  24.       "order": 25,
  25.       "requiredPrivilege": "App: registrationapp.registerPatient"
  26.     }
  27.   ],
  28.   "config": {
  29.     "afterCreatedUrl": "/coreapps/clinicianfacing/patient.page?patientId={{patientId}}",
  30.     "sections": [
  31.       {
  32.         "id": "contactInfo",
  33.         "label": "registrationapp.patient.contactInfo.label",
  34.         "questions": [
  35.           {
  36.             "legend": "Person.address",
  37.             "fields": [
  38.               {
  39.                 "type": "personAddress",
  40.                 "label": "registrationapp.patient.address.question",
  41.                 "widget": {
  42.                   "providerName": "uicommons",
  43.                   "fragmentId": "field/personAddress"
  44.                 }
  45.               }
  46.             ]
  47.           },
  48.           {
  49.             "legend": "registrationapp.patient.phone.label",
  50.             "id": "phoneNumberLabel",
  51.             "fields": [
  52.               {
  53.                 "type": "personAttribute",
  54.                 "label": "registrationapp.patient.phone.question",
  55.                 "formFieldName": "phoneNumber",
  56.                 "uuid": "14d4f066-15f5-102d-96e4-000c29c2a5d7",
  57.                 "widget": {
  58.                   "providerName": "uicommons",
  59.                   "fragmentId": "field/text"
  60.                 },
  61.                 "cssClasses": [
  62.                   "phone"
  63.                 ]
  64.               }
  65.             ]
  66.           }
  67.         ]
  68.       },
  69.       {
  70.         "id": "relationships-info",
  71.         "label": "registrationapp.person.relationship",
  72.         "questions": [
  73.           {
  74.             "legend": "registrationapp.person.relationship.label",
  75.             "header": "registrationapp.person.relationship.question",
  76.             "fields": [
  77.               {
  78.                 "type": "personRelationships",
  79.                 "widget": {
  80.                   "providerName": "registrationapp",
  81.                   "fragmentId": "field/personRelationship"
  82.                 }
  83.               }
  84.             ]
  85.           }
  86.         ]
  87.       },
  88.       {
  89.         "id": "biometricInfo",
  90.         "label": "Biometric Data",
  91.         "questions": [
  92.           {
  93.             "legend": "Capture and enrol fingerprints",
  94.             "id": "fingerprintLabel",
  95.             "fields": [
  96.               {
  97.                 "type": "fingerprint",
  98.                 "uuid": "f5e197cf-1200-421a-8ca8-24a97f28d85e",
  99.                 "widget": {
  100.                   "providerName": "registrationapp",
  101.                   "fragmentId": "field/fingerprint",
  102.                   "config": {
  103.                     "format": "SG400",
  104.                     "scanUrl": "localhost:8081/scan",
  105.                     "devicesUrl": "localhost:8081/devices",
  106.                     "fingers": [
  107.                       {
  108.                         "formFieldName": "leftIndexTemplate",
  109.                         "label": "Left Index Finger",
  110.                         "type": "7"
  111.                       }
  112.                     ]
  113.                   }
  114.                 }
  115.               }
  116.             ]
  117.           }
  118.         ]
  119.       }
  120.     ]
  121.   }
  122. }
Advertisement
Add Comment
Please, Sign In to add comment