Advertisement
Guest User

Ankit

a guest
Feb 3rd, 2021
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.23 KB | None | 0 0
  1. {
  2. "id": "referenceapplication.registrationapp.myRegisterPat",
  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.registrationapp.myRegisterPat",
  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.registrationapp.myRegisterPat",
  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" : "patient-ids",
  33. "label" : "Patient-identifier",
  34. "questions" : [
  35. {
  36. "legend": "Aadhar Number",
  37. "id": "aadharNumberLabel",
  38. "fields": [
  39. {
  40. "type": "patientIdentifier",
  41. "label": "Aadhar Number",
  42. "formFieldName": "aadharNumber",
  43. "uuid": "65536393-e4ef-4c25-a99b-219eff66b324",
  44. "widget": {
  45. "providerName": "uicommons",
  46. "fragmentId": "field/text"
  47. },
  48. "cssClasses": ["required"]
  49. }
  50. ]
  51. },
  52. {
  53. "legend": "Ayushman Number",
  54. "id": "ayushmanNumberLabel",
  55. "fields": [
  56. {
  57. "type": "patientIdentifier",
  58. "label": "Ayushman Number",
  59. "formFieldName": "ayushmanNumber",
  60. "uuid": "43769e1b-2917-4e9d-a3eb-cad4eedb3d60",
  61. "widget": {
  62. "providerName": "uicommons",
  63. "fragmentId": "field/text"
  64. },
  65. "cssClasses": ["required"]
  66. }
  67. ]
  68. }
  69. ]
  70. },
  71. {
  72. "id": "contactInfo",
  73. "label": "registrationapp.patient.contactInfo.label",
  74. "questions": [
  75. {
  76. "legend": "Person.address",
  77. "fields": [
  78. {
  79. "type": "personAddress",
  80. "label": "registrationapp.patient.address.question",
  81. "widget": {
  82. "providerName": "uicommons",
  83. "fragmentId": "field/personAddress"
  84. }
  85. }
  86. ]
  87. },
  88. {
  89. "legend": "registrationapp.patient.phone.label",
  90. "id": "phoneNumberLabel",
  91. "fields": [
  92. {
  93. "type": "personAttribute",
  94. "label": "registrationapp.patient.phone.question",
  95. "formFieldName": "phoneNumber",
  96. "uuid": "14d4f066-15f5-102d-96e4-000c29c2a5d7",
  97. "widget": {
  98. "providerName": "uicommons",
  99. "fragmentId": "field/text"
  100. },
  101. "cssClasses": ["phone"]
  102. }
  103. ]
  104. }
  105.  
  106. ]
  107. },
  108. {
  109. "id": "relationships-info",
  110. "label": "registrationapp.person.relationship",
  111. "questions": [
  112. {
  113. "legend": "registrationapp.person.relationship.label",
  114. "header": "registrationapp.person.relationship.question",
  115. "fields": [
  116. {
  117. "type": "personRelationships",
  118. "widget": {
  119. "providerName": "registrationapp",
  120. "fragmentId": "field/personRelationship"
  121. }
  122. }
  123. ]
  124. }
  125. ]
  126. }
  127. ]
  128. }
  129. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement