new-patient.blade.php 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. @extends ('layouts.template')
  2. @section('content')
  3. <?php $patients = [1,2,3,4]; ?>
  4. <div class="p-3 mcp-theme-1" id="newPatientContainer">
  5. <div class="col-12 col-lg-6 px-0">
  6. <div class="card d-block mb-3" moe="">
  7. <div class="card-header">
  8. <strong>
  9. <i class="fas fa-user-plus"></i>
  10. New Patient
  11. </strong>
  12. </div>
  13. <div class="card-body">
  14. <form show url="/api/client/create" class="px-3 pt-3 pb-1 primary-form" redir="patients/view/[data]">
  15. @if (session('message'))
  16. <div class="alert alert-danger">{{ session('message') }}</div>
  17. @endif
  18. <div class='form-group mb-3'>
  19. <label class='control-label'>First Name *</label>
  20. <input class='form-control' type='text' name='nameFirst' required>
  21. </div>
  22. <div class='form-group mb-3'>
  23. <label class='control-label'>Last Name *</label>
  24. <input class='form-control' type='text' name='nameLast' value='' required>
  25. </div>
  26. @if($pro->pro_type === 'ADMIN')
  27. <div class='form-group mb-3'>
  28. <label class='control-label'>MCP Pro</label>
  29. <select name="mcpProUid" class="form-control" provider-search provider-type="hcp">
  30. <option value="">--select--</option>
  31. </select>
  32. </div>
  33. <div class='form-group mb-3'>
  34. <label class='control-label'>Default NA Pro</label>
  35. <select name="defaultNaProUid" class="form-control" provider-search provider-type="default-na">
  36. <option value="">--select--</option>
  37. </select>
  38. </div>
  39. @elseif($pro->is_hcp === true)
  40. <div class='form-group mb-3'>
  41. <label class='control-label'>MCP Pro</label>
  42. <input type="text" class="form-control" readonly value="{{$pro->displayName()}}">
  43. <input type="hidden" name="mcpProUid" value="{{$pro->uid}}">
  44. </div>
  45. @elseif($pro->isDefaultNA())
  46. <div class='form-group mb-3'>
  47. <label class='control-label'>MCP Pro</label>
  48. <?php $teams = $pro->teamsWhereAssistant; ?>
  49. <select name="mcpProUid" class="form-control">
  50. <option value="">--select--</option>
  51. @foreach($teams as $team)
  52. <option value="{{$team->mcp->uid}}">{{$team->mcp->displayName()}}</option>
  53. @endforeach
  54. </select>
  55. </div>
  56. <div class='form-group mb-3'>
  57. <label class='control-label'>Default NA Pro</label>
  58. <input type="text" class="form-control" readonly value="{{$pro->displayName()}}">
  59. <input type="hidden" name="defaultNaProUid" value="{{$pro->uid}}">
  60. </div>
  61. @endif
  62. <div class='form-group mb-3'>
  63. <label class='control-label'>Sex</label>
  64. <select class='form-control' name='sex' value='' >
  65. <option value=''>-- Select --</option>
  66. <option value='M'>M</option>
  67. <option value='F'>F</option>
  68. </select>
  69. </div>
  70. <div class='form-group mb-3'>
  71. <label class='control-label'>Date Of Birth *</label>
  72. <input class='form-control' type='date' name='dateOfBirth' max="{{ date('Y-m-d') }}" required>
  73. </div>
  74. <div class='form-group mb-3'>
  75. <label class='control-label d-flex align-items-center'>
  76. <span>Home Phone Number</span>
  77. <a href="#"
  78. class="ml-2 px-1 on-hover-opaque hpn-to-cpn">
  79. <i class="fa fa-arrow-down"></i>
  80. </a>
  81. <a href="#"
  82. class="ml-2 px-1 on-hover-opaque swap-pns">
  83. <i class="fa fa-retweet"></i>
  84. </a>
  85. </label>
  86. <input class='form-control' stag-input-phone type='tel' name='homeNumber'>
  87. </div>
  88. <div class='form-group mb-3'>
  89. <label class='control-label d-flex align-items-center'>
  90. <span>Cell Phone Number</span>
  91. <a href="#"
  92. class="ml-2 px-1 on-hover-opaque cpn-to-hpn">
  93. <i class="fa fa-arrow-up"></i>
  94. </a>
  95. </label>
  96. <input class='form-control' stag-input-phone type='tel' name='cellNumber'>
  97. </div>
  98. <div class='form-group mb-3'>
  99. <label class='control-label'>Email Address </label>
  100. <input class='form-control' type='email' name='emailAddress'>
  101. </div>
  102. <hr class="m-neg-4">
  103. <div class='form-group mb-3'>
  104. <label class='mb-3 control-label'>Type of Insurance Card </label>
  105. <div class="d-inline-flex align-items-center">
  106. <label class="my-0 mr-4 d-inline-flex align-items-center">
  107. <input class='insurance' type='radio' name='insurance' v-model="insuranceType" value="MEDICARE">
  108. <span class="ml-1">Medicare Part B (Primary)</span>
  109. </label>
  110. <label class="my-0 mr-4 d-inline-flex align-items-center">
  111. <input class='insurance' type='radio' name='insurance' v-model="insuranceType" value="MEDICAID">
  112. <span class="ml-1">Medicaid (Primary)</span>
  113. </label>
  114. <label class="my-0 mr-4 d-inline-flex align-items-center">
  115. <input class='insurance' type='radio' name='insurance' v-model="insuranceType" value="COMMERCIAL">
  116. <span class="ml-1">Commercial / Third Party (Primary)</span>
  117. </label>
  118. </div>
  119. </div>
  120. <div v-if="insuranceType == 'COMMERCIAL'">
  121. <div class='form-group mb-3'>
  122. <label class='control-label d-block'>Commercial Payer</label>
  123. <input name="commercialPayerUidSuggest" class="form-control input-sm" value="" stag-suggest stag-suggest-ep="/search-payer/json" />
  124. <input type="hidden" name="commercialPayerUid" />
  125. </div>
  126. <div class='form-group mb-3'>
  127. <label class='control-label'>Patient Member ID</label>
  128. <input class='form-control' type='text' name='commercialMemberIdentifier'>
  129. </div>
  130. <div class='form-group mb-3'>
  131. <label class='control-label'>Patient Group Number</label>
  132. <input class='form-control' type='text' name='commercialGroupNumber'>
  133. </div>
  134. <p>Does the patient also have either a Medicare or Medicaid #? (optional)</p>
  135. </div>
  136. <div v-if="insuranceType == 'MEDICARE' || insuranceType == 'COMMERCIAL'">
  137. <div class="mb-3 p-2 bg-light">
  138. <h6 class="font-weight-bold m-0">Medicare Information</h6>
  139. </div>
  140. <div class='form-group mb-3'>
  141. <label class='control-label'>Medicare Number</label>
  142. <input class='form-control' type='text' name='medicareNumber'>
  143. </div>
  144. </div>
  145. <div v-if="insuranceType == 'MEDICAID' || insuranceType == 'COMMERCIAL'">
  146. <div class="mb-3 p-2 bg-light">
  147. <h6 class="font-weight-bold m-0">Medicaid Information</h6>
  148. </div>
  149. <div class="form-group">
  150. <label for="" class="control-label">Medicaid State</label>
  151. <input class="form-control input-sm" list="mcdPayer" name="mcdPayerUid" id="mcdPayerUid">
  152. <datalist id="mcdPayer">
  153. <option value="">--</option>
  154. <option>MEDICAID ALABAMA</option>
  155. <option>MEDICAID ALASKA</option>
  156. <option>MEDICAID ARIZONA</option>
  157. <option>MEDICAID ARKANSAS</option>
  158. <option>MEDICAID CALIFORNIA MEDI-CAL</option>
  159. <option>MEDICAID COLORADO</option>
  160. <option>MEDICAID CONNECTICUT</option>
  161. <option>MEDICAID DELAWARE</option>
  162. <option>MEDICAID DISTRICT OF COLUMBIA</option>
  163. <option>MEDICAID FLORIDA</option>
  164. <option>MEDICAID GEORGIA</option>
  165. <option>MEDICAID HAWAII</option>
  166. <option>MEDICAID IDAHO</option>
  167. <option>MEDICAID ILLINOIS</option>
  168. <option>MEDICAID INDIANA</option>
  169. <option>MEDICAID IOWA</option>
  170. <option>MEDICAID KANSAS</option>
  171. <option>MEDICAID KENTUCKY</option>
  172. <option>MEDICAID LOUISIANA</option>
  173. <option>MEDICAID MAINE</option>
  174. <option>MEDICAID MARYLAND</option>
  175. <option>MEDICAID MARYLAND DHMH</option>
  176. <option>MEDICAID MASSACHUSETTS</option>
  177. <option>MEDICAID MICHIGAN</option>
  178. <option>MEDICAID MINNESOTA</option>
  179. <option>MEDICAID MISSISSIPPI</option>
  180. <option>MEDICAID MISSISSIPPI</option>
  181. <option>MEDICAID MISSOURI</option>
  182. <option>MEDICAID MONTANA</option>
  183. <option>MEDICAID NEBRASKA</option>
  184. <option>MEDICAID NEVADA</option>
  185. <option>MEDICAID NEW HAMPSHIRE</option>
  186. <option>MEDICAID NEW JERSEY</option>
  187. <option>MEDICAID NEW MEXICO</option>
  188. <option>MEDICAID NEW YORK</option>
  189. <option>MEDICAID NEW YORK</option>
  190. <option>MEDICAID NORTH CAROLINA</option>
  191. <option>MEDICAID NORTH DAKOTA</option>
  192. <option>MEDICAID OHIO</option>
  193. <option>MEDICAID OKLAHOMA</option>
  194. <option>MEDICAID OREGON</option>
  195. <option>MEDICAID OREGON (DHS OMAP)</option>
  196. <option>MEDICAID PENNSYLVANIA</option>
  197. <option>MEDICAID RHODE ISLAND</option>
  198. <option>MEDICAID SOUTH CAROLINA</option>
  199. <option>MEDICAID SOUTH DAKOTA</option>
  200. <option>MEDICAID TENNESSEE</option>
  201. <option>MEDICAID TEXAS</option>
  202. <option>MEDICAID TEXAS AND TEXAS HEALTH STEPS</option>
  203. <option>MEDICAID UTAH</option>
  204. <option>MEDICAID VERMONT</option>
  205. <option>MEDICAID VIRGINIA</option>
  206. <option>MEDICAID WASHINGTON (PROVIDER ONE)</option>
  207. <option>MEDICAID WEST VIRGINIA</option>
  208. <option>MEDICAID WISCONSIN</option>
  209. <option>MEDICAID WYOMING</option>
  210. </datalist>
  211. </div>
  212. <div class="form-group">
  213. <label class="control-label">Medicaid Number</label>
  214. <input type="text" name="mcdNumber" class="form-control input-sm">
  215. </div>
  216. </div>
  217. <hr class="m-neg-4">
  218. <div class='form-group mb-3'>
  219. <label class='control-label'>How did you hear about us?</label>
  220. <textarea class='form-control' type='text' required="" name='initiative'></textarea>
  221. </div>
  222. </form>
  223. </div>
  224. <div class="card-footer">
  225. <button class="btn btn-primary" submit>Create New Patient</button>
  226. </div>
  227. </div>
  228. </div>
  229. </div>
  230. <link href="/select2/select2.min.css" rel="stylesheet" />
  231. <script src="/select2/select2.min.js"></script>
  232. <script src="/inputmask-5.x/dist/inputmask.js"></script>
  233. <script>
  234. (function() {
  235. function init() {
  236. let im = new Inputmask("(999) 999-9999").mask('[stag-input-phone]');
  237. $(document)
  238. .off('click.hpn-to-cpn', '.hpn-to-cpn')
  239. .on('click.hpn-to-cpn', '.hpn-to-cpn', function() {
  240. $('[name="cellNumber"]').val($('[name="homeNumber"]').val());
  241. $('[name="homeNumber"]').val('');
  242. return false;
  243. });
  244. $(document)
  245. .off('click.cpn-to-hpn', '.cpn-to-hpn')
  246. .on('click.cpn-to-hpn', '.cpn-to-hpn', function() {
  247. $('[name="homeNumber"]').val($('[name="cellNumber"]').val());
  248. $('[name="cellNumber"]').val('');
  249. return false;
  250. });
  251. $(document)
  252. .off('click.swap-pns', '.swap-pns')
  253. .on('click.swap-pns', '.swap-pns', function() {
  254. let hpn = $('[name="homeNumber"]').val();
  255. $('[name="homeNumber"]').val($('[name="cellNumber"]').val());
  256. $('[name="cellNumber"]').val(hpn);
  257. return false;
  258. });
  259. $(document)
  260. .off('change.insurance', '.insurance')
  261. .on('change.insurance', '.insurance', function() {
  262. $('[data-insurance]').addClass('d-none');
  263. $('[data-insurance="' + $(this).val() + '"]').removeClass('d-none');
  264. $(this).closest('form').attr('url', '/api/client/' + ($(this).val() === 'medicare' ? 'create' : 'createNonMcn'))
  265. $(this).closest('[moe]').removeAttr('initialized');
  266. initMoes();
  267. return false;
  268. });
  269. $('.select2').select2({
  270. width: '100%'
  271. });
  272. function onCommercialPayerChange() {
  273. var input = $('input[name=commercialPayerUidSuggest]');
  274. var hiddenInput = $('input[name=commercialPayerUid]');
  275. input
  276. .off('stag-suggest-selected')
  277. .on('stag-suggest-selected', (e, input, _data) => {
  278. hiddenInput.val(_data.uid);
  279. });
  280. }
  281. onCommercialPayerChange();
  282. }
  283. addMCInitializer('new-patient', init, '#newPatientContainer');
  284. }).call(window);
  285. var newPatientContainer = new Vue({
  286. el: '#newPatientContainer',
  287. data: {
  288. insuranceType: 'MEDICARE'
  289. }
  290. })
  291. </script>
  292. @endsection