smaiya

Untitled

Sep 17th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.88 KB | None | 0 0
  1. {
  2. "id": "referenceapplication.registrationapp.myRegisterPat",
  3. "instanceOf": "registrationapp.registerPatient",
  4. "label": "My Register Patient",
  5. "description": "Create MY new Patient Record",
  6. "extensions": [
  7. {
  8. "id": "referenceapplication.registrationapp.myRegisterPat.homepageLink",
  9. "extensionPointId": "org.openmrs.referenceapplication.homepageLink",
  10. "type": "link",
  11. "label": "My Register Patient",
  12. "url": "registrationapp/registerPatient.page?appId=referenceapplication.registrationapp.myRegisterPat",
  13. "icon": "icon-user",
  14. "order": 1,
  15. "requiredPrivilege": "App: registrationapp.registerPatient"
  16. }
  17. ],
  18. "config": {
  19. "afterCreatedUrl": "/coreapps/clinicianfacing/patient.page?patientId={{patientId}}",
  20. "sections": [
  21. {
  22. "id": "demographics",
  23. "questions": [
  24. {
  25. "legend": "Pre-existing conditions",
  26. "fields": [
  27. {
  28. "type": "personAttribute",
  29. "label": "registrationapp.patient.preConditions.question",
  30. "formFieldName": "preExixtingConditions",
  31. "uuid": "8d871d18-c2cc-11de-8d13-0010c6dffd0f",
  32. "widget": {
  33. "providerName": "uicommons",
  34. "fragmentId": "field/text"
  35. }
  36. }
  37. ]
  38. },
  39.  
  40. {
  41. "legend": "Blood Group",
  42. "fields": [
  43. {
  44. "type": "personAttribute",
  45. "label": "registrationapp.patient.preConditions.question",
  46. "formFieldName": "bloodGroup",
  47. "uuid": "02793cdb-7fde-461a-a4f4-21dd56e159f6",
  48. "widget": {
  49. "providerName": "uicommons",
  50. "fragmentId": "field/text"
  51. }
  52. }
  53. ]
  54. },
  55.  
  56. {
  57. "legend": "Rh typing",
  58. "fields": [
  59. {
  60. "type": "personAttribute",
  61. "label": "registrationapp.patient.preConditions.question",
  62. "formFieldName": "rhTyping",
  63. "uuid": "146b69ae-8203-41ea-9b87-435b245199ee",
  64. "widget": {
  65. "providerName": "uicommons",
  66. "fragmentId": "field/text"
  67. }
  68. }
  69. ]
  70. },
  71.  
  72. {
  73. "legend": "Patient Habits",
  74. "fields": [
  75. {
  76. "type": "personAttribute",
  77. "label": "registrationapp.patient.preConditions.question",
  78. "formFieldName": "patientHabits",
  79. "uuid": "91366b64-2a7c-4f8b-b28f-5fe3fa83ee2a",
  80. "widget": {
  81. "providerName": "uicommons",
  82. "fragmentId": "field/text"
  83. }
  84. }
  85. ]
  86. },
  87.  
  88. {
  89. "legend": "Ethnicity",
  90. "fields": [
  91. {
  92. "type": "personAttribute",
  93. "label": "registrationapp.patient.preConditions.question",
  94. "formFieldName": "ethnicity",
  95. "uuid": "fcd90109-6c55-4f07-a9af-beb58d2e6d8e",
  96. "widget": {
  97. "providerName": "uicommons",
  98. "fragmentId": "field/text"
  99. }
  100. }
  101. ]
  102. }
  103. ]
  104. },
  105. {
  106. "id": "contactInfo",
  107. "label": "registrationapp.patient.contactInfo.label",
  108. "questions": [
  109. {
  110. "legend": "Person.address",
  111. "fields": [
  112. {
  113. "type": "personAddress",
  114. "label": "registrationapp.patient.address.question",
  115. "widget": {
  116. "providerName": "uicommons",
  117. "fragmentId": "field/personAddress"
  118. }
  119. }
  120. ]
  121. },
  122. {
  123. "legend": "registrationapp.patient.phone.label",
  124. "id": "phoneNumberLabel",
  125. "fields": [
  126. {
  127. "type": "personAttribute",
  128. "label": "registrationapp.patient.phone.question",
  129. "formFieldName": "phoneNumber",
  130. "uuid": "14d4f066-15f5-102d-96e4-000c29c2a5d7",
  131. "widget": {
  132. "providerName": "uicommons",
  133. "fragmentId": "field/text"
  134. },
  135. "cssClasses": ["phone"]
  136. }
  137. ]
  138. }
  139. ]
  140. }
  141. ]
  142. }
  143. }
Add Comment
Please, Sign In to add comment