Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2021
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.17 KB | None | 0 0
  1. {
  2. "id": "testing.registrationapp.registerPatient",
  3. "instanceOf": "registrationapp.registerPatient",
  4. "label": "Create a new patient",
  5. "description": "Create a new Patient Record",
  6. "extensions": [
  7. {
  8. "id": "testing.registrationapp.registerPatient.homepageLink",
  9. "extensionPointId": "org.openmrs.referenceapplication.homepageLink",
  10. "type": "link",
  11. "label": "referenceapplication.app.registerPatient.label",
  12. "url": "registrationapp/registerPatient.page?appId=testing.registrationapp.registerPatient",
  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=testing.registrationapp.registerPatient",
  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. "config": {
  61. "regex": "^[0-9]{10}$|^$"
  62. }
  63. },
  64. "cssClasses": ["phone"]
  65.  
  66. }
  67. ]
  68. },
  69. {
  70. "id" : "EmailAddress",
  71. "legend" : "Email Address",
  72. "fields" : [
  73. {
  74. "type" : "personAttribute",
  75. "label" : "Email Address",
  76. "formFieldName" : "Email Address",
  77. "uuid" : "7d35a2d4-26a8-4917-86dc-5ac7b81ac541",
  78. "widget" : {
  79. "providerName" : "uicommons",
  80. "fragmentId" : "field/text"
  81. }
  82. }
  83. ]
  84. },
  85.  
  86. {
  87. "id" : "ID CARD",
  88. "legend" : "ID Number",
  89. "fields" : [
  90. {
  91. "type" : "personAttribute",
  92. "label" : "Identifier",
  93. "formFieldName" : "ID Number",
  94. "uuid" : "b8bed786-3d4f-4aef-945d-5db3d9e5c44f",
  95. "widget" : {
  96. "providerName" : "registrationapp",
  97. "fragmentId" : "field/text"
  98. },
  99. "cssClasses": ["number"]
  100. }
  101. ]
  102. },
  103. {
  104. "legend": "dhs.registrationapp.nationality",
  105. "fields": [
  106. {
  107. "type": "personAttribute",
  108. "label": "dhs.registrationapp.nationality.question",
  109. "formFieldName": "nationality",
  110. "uuid": "60393c0d-1511-4aa1-8627-7c63d3d072b0",
  111. "widget": {
  112. "providerName": "registrationapp",
  113. "fragmentId": "field/text"
  114. }
  115. }
  116. ]
  117. },
  118. {
  119. "legend": "RelationshipShips",
  120. "fields": [
  121. {
  122. "type": "Relationship",
  123. "label": "RelationShips",
  124. "formFieldName": "Relationship",
  125. "widget": {
  126. "providerName": "registrationapp",
  127. "fragmentId": "field/personRelationship"
  128. }
  129. }
  130. ]
  131. }
  132. ]
  133. }
  134. ]
  135. }
  136. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement