@awell-health/awell-extensions 2.0.150 → 2.0.152

Sign up to get free protection for your applications and to get access to all the features.
Files changed (225) hide show
  1. package/dist/extensions/cerner/actions/createPatient/__testdata__/CreateFhirPatient.mock.d.ts +8 -0
  2. package/dist/extensions/cerner/actions/createPatient/__testdata__/CreateFhirPatient.mock.js +12 -0
  3. package/dist/extensions/cerner/actions/createPatient/__testdata__/CreateFhirPatient.mock.js.map +1 -0
  4. package/dist/extensions/cerner/actions/createPatient/config/datapoints.d.ts +6 -1
  5. package/dist/extensions/cerner/actions/createPatient/config/datapoints.js +6 -1
  6. package/dist/extensions/cerner/actions/createPatient/config/datapoints.js.map +1 -1
  7. package/dist/extensions/cerner/actions/createPatient/config/fields.d.ts +70 -2
  8. package/dist/extensions/cerner/actions/createPatient/config/fields.js +61 -2
  9. package/dist/extensions/cerner/actions/createPatient/config/fields.js.map +1 -1
  10. package/dist/extensions/cerner/actions/createPatient/createPatient.js +61 -1
  11. package/dist/extensions/cerner/actions/createPatient/createPatient.js.map +1 -1
  12. package/dist/extensions/cerner/actions/getPatient/__testdata__/PatientRead.mock.d.ts +37 -0
  13. package/dist/extensions/cerner/actions/getPatient/__testdata__/PatientRead.mock.js +55 -0
  14. package/dist/extensions/cerner/actions/getPatient/__testdata__/PatientRead.mock.js.map +1 -0
  15. package/dist/extensions/cerner/actions/getPatient/config/datapoints.d.ts +6 -1
  16. package/dist/extensions/cerner/actions/getPatient/config/datapoints.js +6 -1
  17. package/dist/extensions/cerner/actions/getPatient/config/datapoints.js.map +1 -1
  18. package/dist/extensions/cerner/actions/getPatient/config/fields.d.ts +17 -2
  19. package/dist/extensions/cerner/actions/getPatient/config/fields.js +13 -2
  20. package/dist/extensions/cerner/actions/getPatient/config/fields.js.map +1 -1
  21. package/dist/extensions/cerner/actions/getPatient/getPatient.js +33 -2
  22. package/dist/extensions/cerner/actions/getPatient/getPatient.js.map +1 -1
  23. package/dist/extensions/cerner/actions/index.d.ts +31 -4
  24. package/dist/extensions/cerner/actions/index.js +2 -6
  25. package/dist/extensions/cerner/actions/index.js.map +1 -1
  26. package/dist/extensions/cerner/index.js +1 -1
  27. package/dist/extensions/cerner/index.js.map +1 -1
  28. package/dist/extensions/cerner/lib/api/FhirR4/FhirR4client-backup.d.ts +0 -0
  29. package/dist/extensions/cerner/lib/api/FhirR4/FhirR4client-backup.js +172 -0
  30. package/dist/extensions/cerner/lib/api/FhirR4/FhirR4client-backup.js.map +1 -0
  31. package/dist/extensions/cerner/lib/api/FhirR4/FhirR4client.d.ts +19 -0
  32. package/dist/extensions/cerner/lib/api/FhirR4/FhirR4client.js +45 -0
  33. package/dist/extensions/cerner/lib/api/FhirR4/FhirR4client.js.map +1 -0
  34. package/dist/extensions/cerner/lib/api/FhirR4/cacheService.d.ts +11 -0
  35. package/dist/extensions/cerner/lib/api/FhirR4/cacheService.js +15 -0
  36. package/dist/extensions/cerner/lib/api/FhirR4/cacheService.js.map +1 -0
  37. package/dist/extensions/cerner/lib/api/FhirR4/index.d.ts +1 -0
  38. package/dist/extensions/cerner/lib/api/FhirR4/index.js +18 -0
  39. package/dist/extensions/cerner/lib/api/FhirR4/index.js.map +1 -0
  40. package/dist/extensions/cerner/lib/api/FhirR4/schema/AppointmentRead.schema.d.ts +9 -0
  41. package/dist/extensions/cerner/lib/api/FhirR4/schema/AppointmentRead.schema.js +6 -0
  42. package/dist/extensions/cerner/lib/api/FhirR4/schema/AppointmentRead.schema.js.map +1 -0
  43. package/dist/extensions/cerner/lib/api/FhirR4/schema/DocumentReferenceCreate.schema.d.ts +7 -0
  44. package/dist/extensions/cerner/lib/api/FhirR4/schema/DocumentReferenceCreate.schema.js +3 -0
  45. package/dist/extensions/cerner/lib/api/FhirR4/schema/DocumentReferenceCreate.schema.js.map +1 -0
  46. package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientCreate.schema.d.ts +7 -0
  47. package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientCreate.schema.js +3 -0
  48. package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientCreate.schema.js.map +1 -0
  49. package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientMatch.schema.d.ts +37 -0
  50. package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientMatch.schema.js +3 -0
  51. package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientMatch.schema.js.map +1 -0
  52. package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientRead.schema.d.ts +9 -0
  53. package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientRead.schema.js +6 -0
  54. package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientRead.schema.js.map +1 -0
  55. package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientSearch.schema.d.ts +8 -0
  56. package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientSearch.schema.js +3 -0
  57. package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientSearch.schema.js.map +1 -0
  58. package/dist/extensions/cerner/lib/api/FhirR4/schema/index.d.ts +6 -0
  59. package/dist/extensions/cerner/lib/api/FhirR4/schema/index.js +23 -0
  60. package/dist/extensions/cerner/lib/api/FhirR4/schema/index.js.map +1 -0
  61. package/dist/extensions/cerner/lib/api/auth/constructCernerUrls.d.ts +4 -0
  62. package/dist/extensions/cerner/lib/api/auth/constructCernerUrls.js +11 -0
  63. package/dist/extensions/cerner/lib/api/auth/constructCernerUrls.js.map +1 -0
  64. package/dist/extensions/cerner/lib/api/auth/index.d.ts +1 -0
  65. package/dist/extensions/cerner/lib/api/auth/index.js +18 -0
  66. package/dist/extensions/cerner/lib/api/auth/index.js.map +1 -0
  67. package/dist/extensions/cerner/lib/validatePayloadAndCreateSdks.d.ts +18 -0
  68. package/dist/extensions/cerner/lib/validatePayloadAndCreateSdks.js +41 -0
  69. package/dist/extensions/cerner/lib/validatePayloadAndCreateSdks.js.map +1 -0
  70. package/dist/extensions/cerner/settings.d.ts +36 -2
  71. package/dist/extensions/cerner/settings.js +28 -2
  72. package/dist/extensions/cerner/settings.js.map +1 -1
  73. package/dist/extensions/dockHealth/lib/dock.types.d.ts +2 -2
  74. package/dist/extensions/elation/validation/referralOrder.zod.d.ts +17 -17
  75. package/dist/extensions/epic/actions/createClinicalNote/config/fields.js +1 -1
  76. package/dist/extensions/epic/actions/createClinicalNote/config/fields.js.map +1 -1
  77. package/dist/extensions/epic/actions/createClinicalNote/createClinicalNote.js +1 -1
  78. package/dist/extensions/epic/actions/createClinicalNote/createClinicalNote.js.map +1 -1
  79. package/dist/extensions/epic/actions/createPatient/config/fields.js +1 -1
  80. package/dist/extensions/epic/actions/createPatient/config/fields.js.map +1 -1
  81. package/dist/extensions/epic/actions/findPatientByMRN/__testdata__/FhirPatientMatch.mock.d.ts +137 -0
  82. package/dist/extensions/epic/actions/findPatientByMRN/__testdata__/FhirPatientMatch.mock.js +284 -0
  83. package/dist/extensions/epic/actions/findPatientByMRN/__testdata__/FhirPatientMatch.mock.js.map +1 -0
  84. package/dist/extensions/epic/actions/findPatientByMRN/__testdata__/FhirPatientNoMatch.mock.d.ts +30 -0
  85. package/dist/extensions/epic/actions/findPatientByMRN/__testdata__/FhirPatientNoMatch.mock.js +42 -0
  86. package/dist/extensions/epic/actions/findPatientByMRN/__testdata__/FhirPatientNoMatch.mock.js.map +1 -0
  87. package/dist/extensions/epic/actions/findPatientByMRN/__testdata__/index.d.ts +2 -0
  88. package/dist/extensions/epic/actions/findPatientByMRN/__testdata__/index.js +19 -0
  89. package/dist/extensions/epic/actions/findPatientByMRN/__testdata__/index.js.map +1 -0
  90. package/dist/extensions/epic/actions/findPatientByMRN/config/datapoints.d.ts +6 -0
  91. package/dist/extensions/epic/actions/findPatientByMRN/config/datapoints.js +10 -0
  92. package/dist/extensions/epic/actions/findPatientByMRN/config/datapoints.js.map +1 -0
  93. package/dist/extensions/epic/actions/findPatientByMRN/config/fields.d.ts +18 -0
  94. package/dist/extensions/epic/actions/findPatientByMRN/config/fields.js +21 -0
  95. package/dist/extensions/epic/actions/findPatientByMRN/config/fields.js.map +1 -0
  96. package/dist/extensions/{cerner/actions/getAppointment → epic/actions/findPatientByMRN}/config/index.js.map +1 -1
  97. package/dist/extensions/{cerner/actions/getAppointment/getAppointment.d.ts → epic/actions/findPatientByMRN/findPatientByMRN.d.ts} +1 -1
  98. package/dist/extensions/epic/actions/findPatientByMRN/findPatientByMRN.js +55 -0
  99. package/dist/extensions/epic/actions/findPatientByMRN/findPatientByMRN.js.map +1 -0
  100. package/dist/extensions/epic/actions/findPatientByMRN/index.d.ts +1 -0
  101. package/dist/extensions/epic/actions/findPatientByMRN/index.js +6 -0
  102. package/dist/extensions/epic/actions/findPatientByMRN/index.js.map +1 -0
  103. package/dist/extensions/epic/actions/index.d.ts +38 -0
  104. package/dist/extensions/epic/actions/index.js +2 -0
  105. package/dist/extensions/epic/actions/index.js.map +1 -1
  106. package/dist/extensions/epic/actions/matchPatient/config/fields.js +1 -1
  107. package/dist/extensions/epic/actions/matchPatient/config/fields.js.map +1 -1
  108. package/dist/extensions/epic/lib/api/FhirR4/FhirR4client.d.ts +2 -1
  109. package/dist/extensions/epic/lib/api/FhirR4/FhirR4client.js +6 -1
  110. package/dist/extensions/epic/lib/api/FhirR4/FhirR4client.js.map +1 -1
  111. package/dist/extensions/epic/lib/api/FhirR4/schema/PatientSearch.schema.d.ts +8 -0
  112. package/dist/extensions/epic/lib/api/FhirR4/schema/PatientSearch.schema.js +3 -0
  113. package/dist/extensions/epic/lib/api/FhirR4/schema/PatientSearch.schema.js.map +1 -0
  114. package/dist/extensions/epic/lib/api/FhirR4/schema/index.d.ts +1 -0
  115. package/dist/extensions/epic/lib/api/FhirR4/schema/index.js +1 -0
  116. package/dist/extensions/epic/lib/api/FhirR4/schema/index.js.map +1 -1
  117. package/dist/extensions/epic/lib/api/customFhirSchemas/DocumentReference/Status.schema.js.map +1 -0
  118. package/dist/extensions/epic/lib/api/customFhirSchemas/DocumentReference/Type.schema.js.map +1 -0
  119. package/dist/extensions/epic/lib/api/{schemas → customFhirSchemas}/DocumentReference/index.js +1 -1
  120. package/dist/extensions/epic/lib/api/customFhirSchemas/DocumentReference/index.js.map +1 -0
  121. package/dist/extensions/markdown.json +2 -2
  122. package/dist/extensions/medplum/actions/createServiceRequest/config/fields.js +4 -6
  123. package/dist/extensions/medplum/actions/createServiceRequest/config/fields.js.map +1 -1
  124. package/dist/extensions/medplum/actions/createTask/config/fields.js +4 -6
  125. package/dist/extensions/medplum/actions/createTask/config/fields.js.map +1 -1
  126. package/dist/extensions/medplum/fhir/schemas/resources/patient.schema.js +2 -2
  127. package/dist/extensions/medplum/fhir/schemas/resources/patient.schema.js.map +1 -1
  128. package/dist/extensions/medplum/fhir/schemas/resources/serviceRequest.schema.js +5 -5
  129. package/dist/extensions/medplum/fhir/schemas/resources/serviceRequest.schema.js.map +1 -1
  130. package/dist/extensions/medplum/fhir/schemas/resources/task.schema.js +4 -4
  131. package/dist/extensions/medplum/fhir/schemas/resources/task.schema.js.map +1 -1
  132. package/dist/extensions/zendesk/v1/actions/createTask/config/fields.d.ts +2 -2
  133. package/dist/src/lib/fhir/schemas/Appointment/Status.schema.js.map +1 -0
  134. package/dist/src/lib/fhir/schemas/Appointment/index.js.map +1 -0
  135. package/dist/src/lib/fhir/schemas/Patient/Gender.schema.js.map +1 -0
  136. package/dist/src/lib/fhir/schemas/Patient/index.js.map +1 -0
  137. package/dist/{extensions/medplum/fhir/schemas/atoms/IntentSchema.d.ts → src/lib/fhir/schemas/ServiceRequest/Intent.schema.d.ts} +0 -1
  138. package/dist/{extensions/medplum/fhir/schemas/atoms/IntentSchema.js → src/lib/fhir/schemas/ServiceRequest/Intent.schema.js} +2 -13
  139. package/dist/src/lib/fhir/schemas/ServiceRequest/Intent.schema.js.map +1 -0
  140. package/dist/{extensions/medplum/fhir/schemas/atoms/PrioritySchema.js → src/lib/fhir/schemas/ServiceRequest/Priority.schema.js} +1 -1
  141. package/dist/src/lib/fhir/schemas/ServiceRequest/Priority.schema.js.map +1 -0
  142. package/dist/src/lib/fhir/schemas/ServiceRequest/Status.schema.d.ts +2 -0
  143. package/dist/src/lib/fhir/schemas/ServiceRequest/Status.schema.js +14 -0
  144. package/dist/src/lib/fhir/schemas/ServiceRequest/Status.schema.js.map +1 -0
  145. package/dist/src/lib/fhir/schemas/ServiceRequest/index.d.ts +3 -0
  146. package/dist/src/lib/fhir/schemas/ServiceRequest/index.js +20 -0
  147. package/dist/src/lib/fhir/schemas/ServiceRequest/index.js.map +1 -0
  148. package/dist/src/lib/fhir/schemas/Shared/PeriodSchema.js.map +1 -0
  149. package/dist/src/lib/fhir/schemas/Shared/index.d.ts +1 -0
  150. package/dist/src/lib/fhir/schemas/Shared/index.js +18 -0
  151. package/dist/src/lib/fhir/schemas/Shared/index.js.map +1 -0
  152. package/dist/src/lib/fhir/schemas/Task/IntentSchema.d.ts +2 -0
  153. package/dist/src/lib/fhir/schemas/Task/IntentSchema.js +16 -0
  154. package/dist/src/lib/fhir/schemas/Task/IntentSchema.js.map +1 -0
  155. package/dist/src/lib/fhir/schemas/Task/Priority.schema.d.ts +2 -0
  156. package/dist/src/lib/fhir/schemas/Task/Priority.schema.js +6 -0
  157. package/dist/src/lib/fhir/schemas/Task/Priority.schema.js.map +1 -0
  158. package/dist/{extensions/medplum/fhir/schemas/atoms/StatusSchema.d.ts → src/lib/fhir/schemas/Task/Status.schema.d.ts} +0 -1
  159. package/dist/{extensions/medplum/fhir/schemas/atoms/StatusSchema.js → src/lib/fhir/schemas/Task/Status.schema.js} +2 -11
  160. package/dist/src/lib/fhir/schemas/Task/Status.schema.js.map +1 -0
  161. package/dist/src/lib/fhir/schemas/Task/index.d.ts +3 -0
  162. package/dist/src/lib/fhir/schemas/Task/index.js +20 -0
  163. package/dist/src/lib/fhir/schemas/Task/index.js.map +1 -0
  164. package/package.json +1 -1
  165. package/dist/extensions/cerner/actions/createClinicalNote/config/datapoints.d.ts +0 -1
  166. package/dist/extensions/cerner/actions/createClinicalNote/config/datapoints.js +0 -5
  167. package/dist/extensions/cerner/actions/createClinicalNote/config/datapoints.js.map +0 -1
  168. package/dist/extensions/cerner/actions/createClinicalNote/config/fields.d.ts +0 -3
  169. package/dist/extensions/cerner/actions/createClinicalNote/config/fields.js +0 -10
  170. package/dist/extensions/cerner/actions/createClinicalNote/config/fields.js.map +0 -1
  171. package/dist/extensions/cerner/actions/createClinicalNote/config/index.js.map +0 -1
  172. package/dist/extensions/cerner/actions/createClinicalNote/createClinicalNote.d.ts +0 -4
  173. package/dist/extensions/cerner/actions/createClinicalNote/createClinicalNote.js +0 -18
  174. package/dist/extensions/cerner/actions/createClinicalNote/createClinicalNote.js.map +0 -1
  175. package/dist/extensions/cerner/actions/createClinicalNote/index.d.ts +0 -1
  176. package/dist/extensions/cerner/actions/createClinicalNote/index.js +0 -6
  177. package/dist/extensions/cerner/actions/createClinicalNote/index.js.map +0 -1
  178. package/dist/extensions/cerner/actions/getAppointment/config/datapoints.d.ts +0 -1
  179. package/dist/extensions/cerner/actions/getAppointment/config/datapoints.js +0 -5
  180. package/dist/extensions/cerner/actions/getAppointment/config/datapoints.js.map +0 -1
  181. package/dist/extensions/cerner/actions/getAppointment/config/fields.d.ts +0 -3
  182. package/dist/extensions/cerner/actions/getAppointment/config/fields.js +0 -10
  183. package/dist/extensions/cerner/actions/getAppointment/config/fields.js.map +0 -1
  184. package/dist/extensions/cerner/actions/getAppointment/config/index.d.ts +0 -2
  185. package/dist/extensions/cerner/actions/getAppointment/config/index.js +0 -9
  186. package/dist/extensions/cerner/actions/getAppointment/getAppointment.js +0 -18
  187. package/dist/extensions/cerner/actions/getAppointment/getAppointment.js.map +0 -1
  188. package/dist/extensions/cerner/actions/getAppointment/index.d.ts +0 -1
  189. package/dist/extensions/cerner/actions/getAppointment/index.js +0 -6
  190. package/dist/extensions/cerner/actions/getAppointment/index.js.map +0 -1
  191. package/dist/extensions/epic/lib/api/schemas/Appointment/Status.schema.js.map +0 -1
  192. package/dist/extensions/epic/lib/api/schemas/Appointment/index.js.map +0 -1
  193. package/dist/extensions/epic/lib/api/schemas/DocumentReference/Status.schema.js.map +0 -1
  194. package/dist/extensions/epic/lib/api/schemas/DocumentReference/Type.schema.js.map +0 -1
  195. package/dist/extensions/epic/lib/api/schemas/DocumentReference/index.js.map +0 -1
  196. package/dist/extensions/epic/lib/api/schemas/Patient/Gender.schema.js.map +0 -1
  197. package/dist/extensions/epic/lib/api/schemas/Patient/index.js.map +0 -1
  198. package/dist/extensions/medplum/fhir/schemas/atoms/GenderSchema.d.ts +0 -2
  199. package/dist/extensions/medplum/fhir/schemas/atoms/GenderSchema.js +0 -6
  200. package/dist/extensions/medplum/fhir/schemas/atoms/GenderSchema.js.map +0 -1
  201. package/dist/extensions/medplum/fhir/schemas/atoms/IntentSchema.js.map +0 -1
  202. package/dist/extensions/medplum/fhir/schemas/atoms/PeriodSchema.js.map +0 -1
  203. package/dist/extensions/medplum/fhir/schemas/atoms/PrioritySchema.js.map +0 -1
  204. package/dist/extensions/medplum/fhir/schemas/atoms/StatusSchema.js.map +0 -1
  205. package/dist/extensions/medplum/fhir/schemas/atoms/index.d.ts +0 -5
  206. package/dist/extensions/medplum/fhir/schemas/atoms/index.js +0 -16
  207. package/dist/extensions/medplum/fhir/schemas/atoms/index.js.map +0 -1
  208. package/dist/extensions/{cerner/actions/createClinicalNote → epic/actions/findPatientByMRN}/config/index.d.ts +0 -0
  209. package/dist/extensions/{cerner/actions/createClinicalNote → epic/actions/findPatientByMRN}/config/index.js +0 -0
  210. package/dist/extensions/epic/lib/api/{schemas → customFhirSchemas}/DocumentReference/Status.schema.d.ts +0 -0
  211. package/dist/extensions/epic/lib/api/{schemas → customFhirSchemas}/DocumentReference/Status.schema.js +0 -0
  212. package/dist/extensions/epic/lib/api/{schemas → customFhirSchemas}/DocumentReference/Type.schema.d.ts +0 -0
  213. package/dist/extensions/epic/lib/api/{schemas → customFhirSchemas}/DocumentReference/Type.schema.js +0 -0
  214. package/dist/extensions/epic/lib/api/{schemas → customFhirSchemas}/DocumentReference/index.d.ts +1 -1
  215. /package/dist/{extensions/epic/lib/api → src/lib/fhir}/schemas/Appointment/Status.schema.d.ts +0 -0
  216. /package/dist/{extensions/epic/lib/api → src/lib/fhir}/schemas/Appointment/Status.schema.js +0 -0
  217. /package/dist/{extensions/epic/lib/api → src/lib/fhir}/schemas/Appointment/index.d.ts +0 -0
  218. /package/dist/{extensions/epic/lib/api → src/lib/fhir}/schemas/Appointment/index.js +0 -0
  219. /package/dist/{extensions/epic/lib/api → src/lib/fhir}/schemas/Patient/Gender.schema.d.ts +0 -0
  220. /package/dist/{extensions/epic/lib/api → src/lib/fhir}/schemas/Patient/Gender.schema.js +0 -0
  221. /package/dist/{extensions/epic/lib/api → src/lib/fhir}/schemas/Patient/index.d.ts +0 -0
  222. /package/dist/{extensions/epic/lib/api → src/lib/fhir}/schemas/Patient/index.js +0 -0
  223. /package/dist/{extensions/medplum/fhir/schemas/atoms/PrioritySchema.d.ts → src/lib/fhir/schemas/ServiceRequest/Priority.schema.d.ts} +0 -0
  224. /package/dist/{extensions/medplum/fhir/schemas/atoms → src/lib/fhir/schemas/Shared}/PeriodSchema.d.ts +0 -0
  225. /package/dist/{extensions/medplum/fhir/schemas/atoms → src/lib/fhir/schemas/Shared}/PeriodSchema.js +0 -0
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PatientSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const extensions_core_1 = require("@awell-health/extensions-core");
6
- const atoms_1 = require("../atoms");
6
+ const Patient_1 = require("../../../../../src/lib/fhir/schemas/Patient");
7
7
  exports.PatientSchema = zod_1.z.object({
8
8
  firstName: zod_1.z.string().optional(),
9
9
  lastName: zod_1.z.string().optional(),
10
10
  email: zod_1.z.string().email().optional(),
11
11
  mobilePhone: extensions_core_1.E164PhoneValidationOptionalSchema,
12
12
  birthDate: extensions_core_1.DateOnlyOptionalSchema,
13
- gender: atoms_1.GenderSchema.optional(),
13
+ gender: Patient_1.GenderSchema.optional(),
14
14
  address: zod_1.z.string().optional(),
15
15
  city: zod_1.z.string().optional(),
16
16
  state: zod_1.z.string().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"patient.schema.js","sourceRoot":"","sources":["../../../../../../extensions/medplum/fhir/schemas/resources/patient.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,mEAGsC;AACtC,oCAAuC;AAE1B,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACpC,WAAW,EAAE,mDAAiC;IAC9C,SAAS,EAAE,wCAAsB;IACjC,MAAM,EAAE,oBAAY,CAAC,QAAQ,EAAE;IAC/B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAA"}
1
+ {"version":3,"file":"patient.schema.js","sourceRoot":"","sources":["../../../../../../extensions/medplum/fhir/schemas/resources/patient.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,mEAGsC;AACtC,yEAA0E;AAE7D,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACpC,WAAW,EAAE,mDAAiC;IAC9C,SAAS,EAAE,wCAAsB;IACjC,MAAM,EAAE,sBAAY,CAAC,QAAQ,EAAE;IAC/B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAA"}
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateServiceRequestSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- const atoms_1 = require("../atoms");
5
+ const ServiceRequest_1 = require("../../../../../src/lib/fhir/schemas/ServiceRequest");
6
6
  exports.CreateServiceRequestSchema = zod_1.z.object({
7
- patientId: zod_1.z.string().nonempty('Missing Medplum patient ID'),
8
- status: atoms_1.ServiceRequestStatusSchema,
9
- intent: atoms_1.ServiceRequestIntentSchema,
10
- priority: atoms_1.PrioritySchema.optional(),
7
+ patientId: zod_1.z.string().min(1, 'Missing Medplum patient ID'),
8
+ status: ServiceRequest_1.ServiceRequestStatusSchema,
9
+ intent: ServiceRequest_1.ServiceRequestIntentSchema,
10
+ priority: ServiceRequest_1.PrioritySchema.optional(),
11
11
  });
12
12
  //# sourceMappingURL=serviceRequest.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"serviceRequest.schema.js","sourceRoot":"","sources":["../../../../../../extensions/medplum/fhir/schemas/resources/serviceRequest.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,oCAIiB;AAEJ,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAC5D,MAAM,EAAE,kCAA0B;IAClC,MAAM,EAAE,kCAA0B;IAClC,QAAQ,EAAE,sBAAc,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAA"}
1
+ {"version":3,"file":"serviceRequest.schema.js","sourceRoot":"","sources":["../../../../../../extensions/medplum/fhir/schemas/resources/serviceRequest.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,uFAI2D;AAE9C,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,4BAA4B,CAAC;IAC1D,MAAM,EAAE,2CAA0B;IAClC,MAAM,EAAE,2CAA0B;IAClC,QAAQ,EAAE,+BAAc,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAA"}
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateTaskSchema = void 0;
4
4
  const extensions_core_1 = require("@awell-health/extensions-core");
5
5
  const zod_1 = require("zod");
6
- const atoms_1 = require("../atoms");
6
+ const Task_1 = require("../../../../../src/lib/fhir/schemas/Task");
7
7
  exports.CreateTaskSchema = zod_1.z.object({
8
8
  patientId: zod_1.z.string().nonempty('Missing Medplum patient ID'),
9
9
  taskTitle: zod_1.z.string().nonempty('Missing Task title'),
10
10
  description: zod_1.z.string().optional(),
11
- status: atoms_1.TaskStatusSchema,
12
- intent: atoms_1.TaskIntentSchema,
13
- priority: atoms_1.PrioritySchema.optional(),
11
+ status: Task_1.TaskStatusSchema,
12
+ intent: Task_1.TaskIntentSchema,
13
+ priority: Task_1.PrioritySchema.optional(),
14
14
  dueDate: extensions_core_1.DateOnlyOptionalSchema,
15
15
  performerType: zod_1.z.string().optional(),
16
16
  });
@@ -1 +1 @@
1
- {"version":3,"file":"task.schema.js","sourceRoot":"","sources":["../../../../../../extensions/medplum/fhir/schemas/resources/task.schema.ts"],"names":[],"mappings":";;;AAAA,mEAAsE;AACtE,6BAAuB;AACvB,oCAA6E;AAEhE,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAC5D,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IACpD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,MAAM,EAAE,wBAAgB;IACxB,MAAM,EAAE,wBAAgB;IACxB,QAAQ,EAAE,sBAAc,CAAC,QAAQ,EAAE;IACnC,OAAO,EAAE,wCAAsB;IAC/B,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAA"}
1
+ {"version":3,"file":"task.schema.js","sourceRoot":"","sources":["../../../../../../extensions/medplum/fhir/schemas/resources/task.schema.ts"],"names":[],"mappings":";;;AAAA,mEAAsE;AACtE,6BAAuB;AACvB,mEAIiD;AAEpC,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAC5D,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IACpD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,MAAM,EAAE,uBAAgB;IACxB,MAAM,EAAE,uBAAgB;IACxB,QAAQ,EAAE,qBAAc,CAAC,QAAQ,EAAE;IACnC,OAAO,EAAE,wCAAsB;IAC/B,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAA"}
@@ -65,16 +65,16 @@ export declare const FieldsValidationSchema: z.ZodObject<{
65
65
  content: string;
66
66
  completed?: boolean | undefined;
67
67
  resourceType?: ResourceType | undefined;
68
- dueDate?: string | undefined;
69
68
  resourceId?: number | undefined;
69
+ dueDate?: string | undefined;
70
70
  ownerId?: number | undefined;
71
71
  remindAt?: string | undefined;
72
72
  }, {
73
73
  content: string;
74
74
  completed?: boolean | undefined;
75
75
  resourceType?: "" | ResourceType | undefined;
76
- dueDate?: "" | Date | undefined;
77
76
  resourceId?: number | "" | undefined;
77
+ dueDate?: "" | Date | undefined;
78
78
  ownerId?: number | "" | undefined;
79
79
  remindAt?: "" | Date | undefined;
80
80
  }>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Status.schema.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/Appointment/Status.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,YAAY,GAAG,OAAC,CAAC,IAAI,CAAC;IACjC,UAAU;IACV,SAAS;IACT,QAAQ;IACR,SAAS;IACT,WAAW;IACX,WAAW;IACX,QAAQ;IACR,kBAAkB;IAClB,YAAY;IACZ,UAAU;CACX,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/Appointment/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA+B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Gender.schema.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/Patient/Gender.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,YAAY,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/Patient/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA+B"}
@@ -1,3 +1,2 @@
1
1
  import { z } from 'zod';
2
2
  export declare const ServiceRequestIntentSchema: z.ZodEnum<["proposal", "plan", "directive", "order", "original-order", "reflex-order", "filler-order", "instance-order", "option"]>;
3
- export declare const TaskIntentSchema: z.ZodEnum<["unknown", "proposal", "plan", "order", "original-order", "reflex-order", "filler-order", "instance-order", "option"]>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TaskIntentSchema = exports.ServiceRequestIntentSchema = void 0;
3
+ exports.ServiceRequestIntentSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.ServiceRequestIntentSchema = zod_1.z.enum([
6
6
  'proposal',
@@ -13,15 +13,4 @@ exports.ServiceRequestIntentSchema = zod_1.z.enum([
13
13
  'instance-order',
14
14
  'option',
15
15
  ]);
16
- exports.TaskIntentSchema = zod_1.z.enum([
17
- 'unknown',
18
- 'proposal',
19
- 'plan',
20
- 'order',
21
- 'original-order',
22
- 'reflex-order',
23
- 'filler-order',
24
- 'instance-order',
25
- 'option',
26
- ]);
27
- //# sourceMappingURL=IntentSchema.js.map
16
+ //# sourceMappingURL=Intent.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Intent.schema.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/ServiceRequest/Intent.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,0BAA0B,GAAG,OAAC,CAAC,IAAI,CAAC;IAC/C,UAAU;IACV,MAAM;IACN,WAAW;IACX,OAAO;IACP,gBAAgB;IAChB,cAAc;IACd,cAAc;IACd,gBAAgB;IAChB,QAAQ;CACT,CAAC,CAAA"}
@@ -3,4 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PrioritySchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.PrioritySchema = zod_1.z.enum(['routine', 'urgent', 'asap', 'stat']);
6
- //# sourceMappingURL=PrioritySchema.js.map
6
+ //# sourceMappingURL=Priority.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Priority.schema.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/ServiceRequest/Priority.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,cAAc,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { z } from 'zod';
2
+ export declare const ServiceRequestStatusSchema: z.ZodEnum<["draft", "active", "on-hold", "revoked", "completed", "entered-in-error", "unknown"]>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceRequestStatusSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.ServiceRequestStatusSchema = zod_1.z.enum([
6
+ 'draft',
7
+ 'active',
8
+ 'on-hold',
9
+ 'revoked',
10
+ 'completed',
11
+ 'entered-in-error',
12
+ 'unknown',
13
+ ]);
14
+ //# sourceMappingURL=Status.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Status.schema.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/ServiceRequest/Status.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,0BAA0B,GAAG,OAAC,CAAC,IAAI,CAAC;IAC/C,OAAO;IACP,QAAQ;IACR,SAAS;IACT,SAAS;IACT,WAAW;IACX,kBAAkB;IAClB,SAAS;CACV,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './Intent.schema';
2
+ export * from './Priority.schema';
3
+ export * from './Status.schema';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Intent.schema"), exports);
18
+ __exportStar(require("./Priority.schema"), exports);
19
+ __exportStar(require("./Status.schema"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/ServiceRequest/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA+B;AAC/B,oDAAiC;AACjC,kDAA+B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PeriodSchema.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/Shared/PeriodSchema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,YAAY,GAAG,OAAC,CAAC,MAAM,CAAC;IACnC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ export * from './PeriodSchema';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./PeriodSchema"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/Shared/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B"}
@@ -0,0 +1,2 @@
1
+ import { z } from 'zod';
2
+ export declare const TaskIntentSchema: z.ZodEnum<["unknown", "proposal", "plan", "order", "original-order", "reflex-order", "filler-order", "instance-order", "option"]>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TaskIntentSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.TaskIntentSchema = zod_1.z.enum([
6
+ 'unknown',
7
+ 'proposal',
8
+ 'plan',
9
+ 'order',
10
+ 'original-order',
11
+ 'reflex-order',
12
+ 'filler-order',
13
+ 'instance-order',
14
+ 'option',
15
+ ]);
16
+ //# sourceMappingURL=IntentSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IntentSchema.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/Task/IntentSchema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,gBAAgB,GAAG,OAAC,CAAC,IAAI,CAAC;IACrC,SAAS;IACT,UAAU;IACV,MAAM;IACN,OAAO;IACP,gBAAgB;IAChB,cAAc;IACd,cAAc;IACd,gBAAgB;IAChB,QAAQ;CACT,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { z } from 'zod';
2
+ export declare const PrioritySchema: z.ZodEnum<["routine", "urgent", "asap", "stat"]>;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PrioritySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PrioritySchema = zod_1.z.enum(['routine', 'urgent', 'asap', 'stat']);
6
+ //# sourceMappingURL=Priority.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Priority.schema.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/Task/Priority.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,cAAc,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA"}
@@ -1,3 +1,2 @@
1
1
  import { z } from 'zod';
2
- export declare const ServiceRequestStatusSchema: z.ZodEnum<["draft", "active", "on-hold", "revoked", "completed", "entered-in-error", "unknown"]>;
3
2
  export declare const TaskStatusSchema: z.ZodEnum<["draft", "requested", "received", "accepted", "rejected", "ready", "cancelled", "in-progress", "on-hold", "failed", "completed", "entered-in-error"]>;
@@ -1,16 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TaskStatusSchema = exports.ServiceRequestStatusSchema = void 0;
3
+ exports.TaskStatusSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- exports.ServiceRequestStatusSchema = zod_1.z.enum([
6
- 'draft',
7
- 'active',
8
- 'on-hold',
9
- 'revoked',
10
- 'completed',
11
- 'entered-in-error',
12
- 'unknown',
13
- ]);
14
5
  exports.TaskStatusSchema = zod_1.z.enum([
15
6
  'draft',
16
7
  'requested',
@@ -25,4 +16,4 @@ exports.TaskStatusSchema = zod_1.z.enum([
25
16
  'completed',
26
17
  'entered-in-error',
27
18
  ]);
28
- //# sourceMappingURL=StatusSchema.js.map
19
+ //# sourceMappingURL=Status.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Status.schema.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/Task/Status.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,gBAAgB,GAAG,OAAC,CAAC,IAAI,CAAC;IACrC,OAAO;IACP,WAAW;IACX,UAAU;IACV,UAAU;IACV,UAAU;IACV,OAAO;IACP,WAAW;IACX,aAAa;IACb,SAAS;IACT,QAAQ;IACR,WAAW;IACX,kBAAkB;CACnB,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './IntentSchema';
2
+ export * from './Status.schema';
3
+ export * from './Priority.schema';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./IntentSchema"), exports);
18
+ __exportStar(require("./Status.schema"), exports);
19
+ __exportStar(require("./Priority.schema"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/Task/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B;AAC9B,kDAA+B;AAC/B,oDAAiC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/awell-extensions",
3
- "version": "2.0.150",
3
+ "version": "2.0.152",
4
4
  "packageManager": "yarn@4.5.3",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": {
@@ -1 +0,0 @@
1
- export declare const dataPoints: {};
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dataPoints = void 0;
4
- exports.dataPoints = {};
5
- //# sourceMappingURL=datapoints.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"datapoints.js","sourceRoot":"","sources":["../../../../../../extensions/cerner/actions/createClinicalNote/config/datapoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,EAAgD,CAAA"}
@@ -1,3 +0,0 @@
1
- import z from 'zod';
2
- export declare const fields: {};
3
- export declare const FieldsValidationSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.FieldsValidationSchema = exports.fields = void 0;
7
- const zod_1 = __importDefault(require("zod"));
8
- exports.fields = {};
9
- exports.FieldsValidationSchema = zod_1.default.object({});
10
- //# sourceMappingURL=fields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/cerner/actions/createClinicalNote/config/fields.ts"],"names":[],"mappings":";;;;;;AACA,8CAAwC;AAE3B,QAAA,MAAM,GAAG,EAAkC,CAAA;AAE3C,QAAA,sBAAsB,GAAG,aAAC,CAAC,MAAM,CAAC,EAAoD,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/cerner/actions/createClinicalNote/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAyD;AAAhD,gGAAA,MAAM,OAAA;AAAE,gHAAA,sBAAsB,OAAA;AACvC,2CAAyC;AAAhC,wGAAA,UAAU,OAAA"}
@@ -1,4 +0,0 @@
1
- import { type Action } from '@awell-health/extensions-core';
2
- import { type settings } from '../../settings';
3
- import { fields, dataPoints } from './config';
4
- export declare const createClinicalNote: Action<typeof fields, typeof settings, keyof typeof dataPoints>;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createClinicalNote = void 0;
4
- const extensions_core_1 = require("@awell-health/extensions-core");
5
- const config_1 = require("./config");
6
- exports.createClinicalNote = {
7
- key: 'createClinicalNote',
8
- category: extensions_core_1.Category.EHR_INTEGRATIONS,
9
- title: 'Create clinical note',
10
- description: 'Create a clinical note in Epic',
11
- fields: config_1.fields,
12
- previewable: false,
13
- dataPoints: config_1.dataPoints,
14
- onEvent: async ({ payload, onComplete, onError }) => {
15
- await onComplete();
16
- },
17
- };
18
- //# sourceMappingURL=createClinicalNote.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createClinicalNote.js","sourceRoot":"","sources":["../../../../../extensions/cerner/actions/createClinicalNote/createClinicalNote.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAErE,qCAA6C;AAEhC,QAAA,kBAAkB,GAI3B;IACF,GAAG,EAAE,oBAAoB;IACzB,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,sBAAsB;IAC7B,WAAW,EAAE,gCAAgC;IAC7C,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,KAAK;IAClB,UAAU,EAAV,mBAAU;IACV,OAAO,EAAE,KAAK,EAAE,EAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAC,EAAiB,EAAE;QAC/D,MAAM,UAAU,EAAE,CAAA;IACpB,CAAC;CACF,CAAA"}
@@ -1 +0,0 @@
1
- export { createClinicalNote } from './createClinicalNote';
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createClinicalNote = void 0;
4
- var createClinicalNote_1 = require("./createClinicalNote");
5
- Object.defineProperty(exports, "createClinicalNote", { enumerable: true, get: function () { return createClinicalNote_1.createClinicalNote; } });
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/cerner/actions/createClinicalNote/index.ts"],"names":[],"mappings":";;;AAAA,2DAAyD;AAAhD,wHAAA,kBAAkB,OAAA"}
@@ -1 +0,0 @@
1
- export declare const dataPoints: {};
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dataPoints = void 0;
4
- exports.dataPoints = {};
5
- //# sourceMappingURL=datapoints.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"datapoints.js","sourceRoot":"","sources":["../../../../../../extensions/cerner/actions/getAppointment/config/datapoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,EAAgD,CAAA"}
@@ -1,3 +0,0 @@
1
- import z from 'zod';
2
- export declare const fields: {};
3
- export declare const FieldsValidationSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.FieldsValidationSchema = exports.fields = void 0;
7
- const zod_1 = __importDefault(require("zod"));
8
- exports.fields = {};
9
- exports.FieldsValidationSchema = zod_1.default.object({});
10
- //# sourceMappingURL=fields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/cerner/actions/getAppointment/config/fields.ts"],"names":[],"mappings":";;;;;;AACA,8CAAwC;AAE3B,QAAA,MAAM,GAAG,EAAkC,CAAA;AAE3C,QAAA,sBAAsB,GAAG,aAAC,CAAC,MAAM,CAAC,EAAoD,CAAC,CAAA"}
@@ -1,2 +0,0 @@
1
- export { fields, FieldsValidationSchema } from './fields';
2
- export { dataPoints } from './datapoints';
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dataPoints = exports.FieldsValidationSchema = exports.fields = void 0;
4
- var fields_1 = require("./fields");
5
- Object.defineProperty(exports, "fields", { enumerable: true, get: function () { return fields_1.fields; } });
6
- Object.defineProperty(exports, "FieldsValidationSchema", { enumerable: true, get: function () { return fields_1.FieldsValidationSchema; } });
7
- var datapoints_1 = require("./datapoints");
8
- Object.defineProperty(exports, "dataPoints", { enumerable: true, get: function () { return datapoints_1.dataPoints; } });
9
- //# sourceMappingURL=index.js.map
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAppointment = void 0;
4
- const extensions_core_1 = require("@awell-health/extensions-core");
5
- const config_1 = require("./config");
6
- exports.getAppointment = {
7
- key: 'getAppointment',
8
- category: extensions_core_1.Category.EHR_INTEGRATIONS,
9
- title: 'Get appointment',
10
- description: 'Retrieve appointment details from Epic',
11
- fields: config_1.fields,
12
- previewable: false,
13
- dataPoints: config_1.dataPoints,
14
- onEvent: async ({ payload, onComplete, onError }) => {
15
- await onComplete();
16
- },
17
- };
18
- //# sourceMappingURL=getAppointment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAppointment.js","sourceRoot":"","sources":["../../../../../extensions/cerner/actions/getAppointment/getAppointment.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAErE,qCAA6C;AAEhC,QAAA,cAAc,GAIvB;IACF,GAAG,EAAE,gBAAgB;IACrB,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,wCAAwC;IACrD,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,KAAK;IAClB,UAAU,EAAV,mBAAU;IACV,OAAO,EAAE,KAAK,EAAE,EAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAC,EAAiB,EAAE;QAC/D,MAAM,UAAU,EAAE,CAAA;IACpB,CAAC;CACF,CAAA"}
@@ -1 +0,0 @@
1
- export { getAppointment } from './getAppointment';
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAppointment = void 0;
4
- var getAppointment_1 = require("./getAppointment");
5
- Object.defineProperty(exports, "getAppointment", { enumerable: true, get: function () { return getAppointment_1.getAppointment; } });
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/cerner/actions/getAppointment/index.ts"],"names":[],"mappings":";;;AAAA,mDAAiD;AAAxC,gHAAA,cAAc,OAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Status.schema.js","sourceRoot":"","sources":["../../../../../../../extensions/epic/lib/api/schemas/Appointment/Status.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,YAAY,GAAG,OAAC,CAAC,IAAI,CAAC;IACjC,UAAU;IACV,SAAS;IACT,QAAQ;IACR,SAAS;IACT,WAAW;IACX,WAAW;IACX,QAAQ;IACR,kBAAkB;IAClB,YAAY;IACZ,UAAU;CACX,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../extensions/epic/lib/api/schemas/Appointment/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA+B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Status.schema.js","sourceRoot":"","sources":["../../../../../../../extensions/epic/lib/api/schemas/DocumentReference/Status.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,YAAY,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Type.schema.js","sourceRoot":"","sources":["../../../../../../../extensions/epic/lib/api/schemas/DocumentReference/Type.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB;;GAEG;AACU,QAAA,UAAU,GAAG,OAAC,CAAC,IAAI,CAAC;IAC/B,eAAe;IACf,cAAc;IACd,gBAAgB;IAChB,UAAU;IACV,mBAAmB;IACnB,SAAS;IACT,sBAAsB;IACtB,cAAc;CACf,CAAC,CAAA;AAEW,QAAA,wBAAwB,GAGjC;IACF,eAAe,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,eAAe,EAAE;IAC5D,cAAc,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,cAAc,EAAE;IAC1D,gBAAgB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,gBAAgB,EAAE;IAC9D,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE;IAClD,mBAAmB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,mBAAmB,EAAE;IACpE,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;IAChD,sBAAsB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,sBAAsB,EAAE;IAC1E,cAAc,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,cAAc,EAAE;CAClD,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../extensions/epic/lib/api/schemas/DocumentReference/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA+B;AAC/B,gDAA6B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Gender.schema.js","sourceRoot":"","sources":["../../../../../../../extensions/epic/lib/api/schemas/Patient/Gender.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,YAAY,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../extensions/epic/lib/api/schemas/Patient/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA+B"}
@@ -1,2 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const GenderSchema: z.ZodEnum<["male", "female", "other", "unknown"]>;
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GenderSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.GenderSchema = zod_1.z.enum(['male', 'female', 'other', 'unknown']);
6
- //# sourceMappingURL=GenderSchema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GenderSchema.js","sourceRoot":"","sources":["../../../../../../extensions/medplum/fhir/schemas/atoms/GenderSchema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,YAAY,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IntentSchema.js","sourceRoot":"","sources":["../../../../../../extensions/medplum/fhir/schemas/atoms/IntentSchema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,0BAA0B,GAAG,OAAC,CAAC,IAAI,CAAC;IAC/C,UAAU;IACV,MAAM;IACN,WAAW;IACX,OAAO;IACP,gBAAgB;IAChB,cAAc;IACd,cAAc;IACd,gBAAgB;IAChB,QAAQ;CACT,CAAC,CAAA;AAEW,QAAA,gBAAgB,GAAG,OAAC,CAAC,IAAI,CAAC;IACrC,SAAS;IACT,UAAU;IACV,MAAM;IACN,OAAO;IACP,gBAAgB;IAChB,cAAc;IACd,cAAc;IACd,gBAAgB;IAChB,QAAQ;CACT,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"PeriodSchema.js","sourceRoot":"","sources":["../../../../../../extensions/medplum/fhir/schemas/atoms/PeriodSchema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,YAAY,GAAG,OAAC,CAAC,MAAM,CAAC;IACnC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"PrioritySchema.js","sourceRoot":"","sources":["../../../../../../extensions/medplum/fhir/schemas/atoms/PrioritySchema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,cAAc,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA"}