Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.79 KB | None | 0 0
  1. # Use this for the HIPAA form questions
  2. ---
  3. objects:
  4. - doc_type: DAList
  5. - studentattorney: Individual
  6. - client: Individual
  7. - parent: Individual
  8. - hospital: DAObject
  9. - court: DAObject
  10. - defender: DAObject
  11. - accelerator: DAObject
  12. ---
  13. mandatory: True
  14. code: |
  15. if not user_logged_in():
  16. require_login_screen
  17. ok_to_finish = True
  18. doc_select
  19. studentattorney.name.first
  20. client.name.first
  21. client.dob
  22. if "jdc" in doc_select.true_values():
  23. parent.name.first
  24. if "defenders" in doc_select.true_values():
  25. hospital.name
  26. court.name
  27. defender.disclose
  28. if "a2p" in doc_select.true_values():
  29. hospital.name
  30. accelerator.beginning
  31. accelerator.permission
  32. client.event
  33. client.initials
  34. client.signature
  35. if "jdc" in doc_select.true_values():
  36. parent.signature
  37. ---
  38. event: require_login_screen
  39. question: |
  40. You need to log in to finish this interview.
  41. buttons:
  42. - Log in: leave
  43. url: ${ url_of('login', next=interview_url()) }
  44. ---
  45. question: |
  46. [BR]Welcome to the HIPAA Realese of Information App. You may fax the form to local hospitals indicated, or email a secure PDF to yourself.[BR]
  47.  
  48. [BR]Signing this form hereby authorizes and permits the Suffolk Univerisity Law School Clinic student attorney, attorney, investigator, or expert defense witness to inspect and/or copy any and all documents pertaining to me which are in custody or control of the entity or institution named below. This includes the release of my complete medical, mental health, educational, employment, and other institutional records, including but not limited to any records of psychiatric examination, counseling, treatment for drug and/or alcohol abuse, or HIV/Aids treatment from any public or private entity at which the records are held.[BR]
  49.  
  50. [BR]Pursuant to HIPAA Standards of April 14, 2003 (See 45 CFR 164.508(c))[BR]
  51.  
  52. field: welcome
  53. ---
  54. question: |
  55. Which HIPAA form would you like to fill out?
  56. fields:
  57. - no label: doc_select
  58. datatype: checkboxes
  59. choices:
  60. - JDC HIPAA: jdc
  61. - Defenders HIPAA: defenders
  62. - Accelerator to Practice HIPAA: a2p
  63. none of the above: False
  64. ---
  65. question: |
  66. Student Attorney Information
  67. fields:
  68. - First name: studentattorney.name.first
  69. - Last name: studentattorney.name.last
  70. - Email: studentattorney.email
  71. ---
  72. question: |
  73. Client Information
  74. fields:
  75. - First name: client.name.first
  76. - Last name: client.name.last
  77. - Birthday: client.dob
  78. datatype: date
  79. ---
  80. question: |
  81. Parent/Guardian Information
  82. fields:
  83. - First name: parent.name.first
  84. - Last name: parent.name.last
  85. ---
  86. question: |
  87. What date/event will this HIPAA form expire?
  88. fields:
  89. - Date / Event: client.event
  90. ---
  91. question: |
  92. Hospital Information
  93. fields:
  94. - Name of Hospital/Medical Institution: hospital.name
  95. - Street: hospital.street
  96. - City: hospital.city
  97. - Zip Code: hospital.zip
  98. - Hospital fax number: hospital.fax
  99. required: False
  100. #defenders and accelarator
  101. ---
  102. question: |
  103. Court Information
  104. fields:
  105. - Name of Court with pending case: court.name
  106. #defenders
  107. ---
  108. question: |
  109. Disclosure Authorization
  110. fields:
  111. - "I authorize disclosure of (check one)": defender.disclose
  112. datatype: checkboxes
  113. choices:
  114. - All Information: all.info
  115. - Records: records_def
  116. none of the above: False
  117. required: False
  118. - "If Records, please specify what the records relate to": relates_to
  119. required: False
  120. #defenders, having some trouble with the "if, then" with this
  121. ---
  122. question: |
  123. Permission Authorization
  124. fields:
  125. - "I give permission to disclose the following information": accelerator.permission
  126. datatype: checkboxes
  127. choices:
  128. - "Records, opinions, reports, X-rays, lab test results, information relating to testing, diagnosis or treatment, and any other information or documents relating to services provided from dates provided": defender_records
  129. - "Psychotherapy records, reports, notes, and information relating to diagnosis and treatment. (Note, Permission to release psychotherapy notes must be on a separate form.)": defender_psych
  130. - "Any and all information and records about testing, diagnosis or treatment for HIV/ AIDS or sexually transmitted diseases it may contain.": defender_hiv
  131. - "Any and all information and records about drug or alcohol use, testing, diagnosis or treatment it may contain, which are protected by federal confidentiality rules 42 CFR Part 2 (FEDERAL RULES PROHIBIT ANY FURTHER DISCLOSURE OF THIS INFORMATION UNLESS FURTHER DISCLOSURE IS EXPRESSLY PERMITTED OR WRITTEN CONSENT OF THE PERSON TO WHOM IT PERTAINS OR AS OTHERWISE PERMITTED BY 42 CFR PART 2.)": defender_abuse
  132. - Other: defender_other
  133. none of the above: False
  134. - "If other, please specify": accel_other
  135. required: False
  136. ---
  137. question: |
  138. If requesting Records, please provide the start date
  139. fields:
  140. - Beginning date: accelerator.beginning
  141. datatype: date
  142. #accelerator, having some trouble with the "if, then" with this
  143. ---
  144. question: |
  145. Please sign your name below.
  146. signature: client.signature
  147. under: |
  148. ${ client }
  149. ---
  150. question: |
  151. Please sign parent name below.
  152. signature: parent.signature
  153. under: |
  154. ${ parent }
  155. ---
  156. question: |
  157. Please sign your initials.
  158. signature: client.initials
  159.  
  160. under: |
  161. ${ client }
  162. #accelarator
  163. ---
  164. comment: |
  165. We can use reconsider here to make sure the selection is updated
  166. if the person uses the back button
  167. reconsider: True
  168. code: |
  169. # Docassemble stops running a code block after variable it's seeking is defined.
  170. # So we start with a temp variable, and don't define our real variable name
  171. # until we finish building it
  172. form_to_use_temp = []
  173. if "jdc" in doc_select.true_values():
  174. form_to_use_temp.append(JDCHIPAA)
  175. if "a2p" in doc_select.true_values():
  176. form_to_use_temp.append(A2PHIPAA)
  177. if "defenders" in doc_select.true_values():
  178. form_to_use_temp.append(DEFHIPAA)
  179.  
  180. form_to_use = form_to_use_temp
  181. ---
  182. question: |
  183. Here are your PDF forms
  184. mandatory: True
  185. attachment code: form_to_use
  186. ---
  187. attachment:
  188. variable name: JDCHIPAA
  189. name: HIPAA JDC
  190. filename: HIPAA JDC
  191. pdf template file: JDC_HIPAA_Improved.pdf
  192. fields:
  193. - client.name: |
  194. ${ client.name }
  195. - studentattorney.name: |
  196. ${ studentattorney.name }
  197. - client.dob: |
  198. ${ client.dob }
  199. - todays.date: |
  200. ${ today() }
  201. - date_event: |
  202. ${ client.event }
  203. - client.signature: |
  204. ${ client.signature }
  205. - parent.name: |
  206. ${ parent.name }
  207. - parent.signature: |
  208. ${ parent.signature }
  209. ---
  210. attachment:
  211. variable name: A2PHIPAA
  212. name: HIPAA Accelerator
  213. filename: HIPAA Accelerator
  214. pdf template file: A2P_HIPAA.pdf
  215. fields:
  216. - Name Organization: |
  217. ${ hospital.name }
  218. - Address: |
  219. ${ hospital.street } ${ hospital.city }, MA ${ hospital.zip }
  220. - client.name: |
  221. ${ client.name }
  222. - studentattorney.name: |
  223. ${ studentattorney.name }
  224. - client.dob: |
  225. ${ client.dob }
  226. - todays.date: |
  227. ${ today() }
  228. - records.date: |
  229. ${ accelerator.beginning }
  230. - date_event: |
  231. ${ client.event }
  232. - client.signature: |
  233. ${ client.signature }
  234. - client.initial.records: |
  235. if defender_records
  236. ${ client.initials }
  237. - client.initial.psych: |
  238. if defender_psych
  239. ${ client.initials }
  240. - client.initial.hiv: |
  241. if defender_hiv
  242. ${ client.initials }
  243. - client.initial.abuse: |
  244. if defender_abuse
  245. ${ client.initials }
  246. - client.other: |
  247. ${ accel_other }
  248. ---
  249. attachment:
  250. variable name: DEFHIPAA
  251. name: HIPAA Defenders
  252. filename: HIPAA Defenders
  253. pdf template file: Defenders_HIPAA_Redone.pdf
  254. fields:
  255. - client.name: |
  256. ${ client.name }
  257. - studentattorney.name: |
  258. ${ studentattorney.name }
  259. - client.dob: |
  260. ${ client.dob }
  261. - todays.date: |
  262. ${ today() }
  263. - today.year: |
  264. ${ format_date( today() + date_interval(years=1) ) }.
  265. - court: |
  266. ${ court.name }
  267. - all.info: |
  268. ${yesno(defender.disclose['all.info'])}
  269. - records: |
  270. ${yesno(defender.disclose['records_def'])}
  271. - relates_to: |
  272. ${ relates_to }
  273. - client.signature: |
  274. ${ client.signature }
  275. ---
  276. question: |
  277. What is your fax number?
  278. fields:
  279. - Fax: fax_number
  280. ---
  281. question: |
  282. What file would you like
  283. me to fax?
  284. fields:
  285. - File: document
  286. datatype: file
  287. ---
  288. code: |
  289. fax_result = send_fax(user, document)
  290. ---
  291. mandatory: True
  292. question: |
  293. % if fax_result.received():
  294. The fax was received.
  295. % else:
  296. The status of the fax is
  297. ${ fax_result.status() }.
  298. % endif
  299. reload: True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement