fhir-data-utils-ts 0.2.4 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/.codex/skills/govern-fhir-data-utilities/SKILL.md +58 -0
  2. package/.codex/skills/govern-fhir-data-utilities/agents/openai.yaml +4 -0
  3. package/.codex/skills/govern-fhir-observation-components/SKILL.md +18 -0
  4. package/CHANGELOG.md +30 -0
  5. package/README.md +39 -0
  6. package/dist/builders/immunization-graph.d.ts +36 -0
  7. package/dist/builders/immunization-graph.js +115 -0
  8. package/dist/builders/immunization-reminders.d.ts +35 -0
  9. package/dist/builders/immunization-reminders.js +104 -0
  10. package/dist/builders/index.d.ts +2 -0
  11. package/dist/builders/index.js +2 -0
  12. package/dist/claim-helpers/claim-list-helpers.d.ts +21 -0
  13. package/dist/claim-helpers/claim-list-helpers.js +54 -0
  14. package/dist/claim-helpers/claims-helpers-allergy-intolerance.d.ts +18 -0
  15. package/dist/claim-helpers/claims-helpers-allergy-intolerance.js +65 -0
  16. package/dist/claim-helpers/claims-helpers-appointment-response.d.ts +8 -0
  17. package/dist/claim-helpers/claims-helpers-appointment-response.js +20 -0
  18. package/dist/claim-helpers/claims-helpers-appointment.d.ts +10 -0
  19. package/dist/claim-helpers/claims-helpers-appointment.js +26 -0
  20. package/dist/claim-helpers/claims-helpers-care-plan.d.ts +8 -0
  21. package/dist/claim-helpers/claims-helpers-care-plan.js +20 -0
  22. package/dist/claim-helpers/claims-helpers-clinical-impression.d.ts +10 -0
  23. package/dist/claim-helpers/claims-helpers-clinical-impression.js +26 -0
  24. package/dist/claim-helpers/claims-helpers-communication.d.ts +19 -0
  25. package/dist/claim-helpers/claims-helpers-communication.js +63 -0
  26. package/dist/claim-helpers/claims-helpers-composition.d.ts +12 -0
  27. package/dist/claim-helpers/claims-helpers-composition.js +32 -0
  28. package/dist/claim-helpers/claims-helpers-condition.d.ts +18 -0
  29. package/dist/claim-helpers/claims-helpers-condition.js +65 -0
  30. package/dist/claim-helpers/claims-helpers-coverage.d.ts +10 -0
  31. package/dist/claim-helpers/claims-helpers-coverage.js +26 -0
  32. package/dist/claim-helpers/claims-helpers-device-use-statement.d.ts +8 -0
  33. package/dist/claim-helpers/claims-helpers-device-use-statement.js +20 -0
  34. package/dist/claim-helpers/claims-helpers-device.d.ts +8 -0
  35. package/dist/claim-helpers/claims-helpers-device.js +20 -0
  36. package/dist/claim-helpers/claims-helpers-diagnostic-report.d.ts +16 -0
  37. package/dist/claim-helpers/claims-helpers-diagnostic-report.js +47 -0
  38. package/dist/claim-helpers/claims-helpers-document-reference.d.ts +8 -0
  39. package/dist/claim-helpers/claims-helpers-document-reference.js +20 -0
  40. package/dist/claim-helpers/claims-helpers-encounter.d.ts +10 -0
  41. package/dist/claim-helpers/claims-helpers-encounter.js +26 -0
  42. package/dist/claim-helpers/claims-helpers-flag.d.ts +8 -0
  43. package/dist/claim-helpers/claims-helpers-flag.js +20 -0
  44. package/dist/claim-helpers/claims-helpers-immunization.d.ts +8 -0
  45. package/dist/claim-helpers/claims-helpers-immunization.js +20 -0
  46. package/dist/claim-helpers/claims-helpers-location.d.ts +10 -0
  47. package/dist/claim-helpers/claims-helpers-location.js +26 -0
  48. package/dist/claim-helpers/claims-helpers-medication-statement.d.ts +96 -0
  49. package/dist/claim-helpers/claims-helpers-medication-statement.js +278 -0
  50. package/dist/claim-helpers/claims-helpers-observation.d.ts +8 -0
  51. package/dist/claim-helpers/claims-helpers-observation.js +20 -0
  52. package/dist/claim-helpers/claims-helpers-organization.d.ts +12 -0
  53. package/dist/claim-helpers/claims-helpers-organization.js +32 -0
  54. package/dist/claim-helpers/claims-helpers-procedure.d.ts +8 -0
  55. package/dist/claim-helpers/claims-helpers-procedure.js +20 -0
  56. package/dist/claim-helpers/claims-helpers-related-person.d.ts +22 -0
  57. package/dist/claim-helpers/claims-helpers-related-person.js +53 -0
  58. package/dist/claim-helpers/index.d.ts +23 -0
  59. package/dist/claim-helpers/index.js +23 -0
  60. package/dist/claims/allergy-intolerance-claims.d.ts +153 -0
  61. package/dist/claims/allergy-intolerance-claims.js +194 -0
  62. package/dist/claims/appointment-claims.d.ts +226 -0
  63. package/dist/claims/appointment-claims.js +218 -0
  64. package/dist/claims/appointment-response-claims.d.ts +63 -0
  65. package/dist/claims/appointment-response-claims.js +58 -0
  66. package/dist/claims/care-plan-claims.d.ts +37 -0
  67. package/dist/claims/care-plan-claims.js +59 -0
  68. package/dist/claims/claim-types.d.ts +9 -0
  69. package/dist/claims/claim-types.js +3 -0
  70. package/dist/claims/clinical-impression-claims.d.ts +17 -0
  71. package/dist/claims/clinical-impression-claims.js +30 -0
  72. package/dist/claims/communication-claims.d.ts +55 -0
  73. package/dist/claims/communication-claims.js +57 -0
  74. package/dist/claims/composition-claims.d.ts +27 -0
  75. package/dist/claims/composition-claims.js +27 -0
  76. package/dist/claims/condition-claims.d.ts +79 -0
  77. package/dist/claims/condition-claims.js +104 -0
  78. package/dist/claims/consent-claims.d.ts +195 -0
  79. package/dist/claims/consent-claims.js +74 -0
  80. package/dist/claims/coverage-claims.d.ts +16 -0
  81. package/dist/claims/coverage-claims.js +28 -0
  82. package/dist/claims/device-claims.d.ts +20 -0
  83. package/dist/claims/device-claims.js +36 -0
  84. package/dist/claims/device-use-statement-claims.d.ts +17 -0
  85. package/dist/claims/device-use-statement-claims.js +28 -0
  86. package/dist/claims/diagnostic-report-claims.d.ts +109 -0
  87. package/dist/claims/diagnostic-report-claims.js +120 -0
  88. package/dist/claims/document-reference-claims.d.ts +39 -0
  89. package/dist/claims/document-reference-claims.js +96 -0
  90. package/dist/claims/encounter-claims.d.ts +18 -0
  91. package/dist/claims/encounter-claims.js +32 -0
  92. package/dist/claims/flag-claims.d.ts +19 -0
  93. package/dist/claims/flag-claims.js +33 -0
  94. package/dist/claims/immunization-claims.d.ts +31 -0
  95. package/dist/claims/immunization-claims.js +54 -0
  96. package/dist/claims/immunization-recommendation-claims.d.ts +19 -0
  97. package/dist/claims/immunization-recommendation-claims.js +26 -0
  98. package/dist/claims/index.d.ts +29 -0
  99. package/dist/claims/index.js +29 -0
  100. package/dist/claims/invoice-claims.d.ts +277 -0
  101. package/dist/claims/invoice-claims.js +357 -0
  102. package/dist/claims/location-claims.d.ts +22 -0
  103. package/dist/claims/location-claims.js +34 -0
  104. package/dist/claims/medication-claims.d.ts +15 -0
  105. package/dist/claims/medication-claims.js +23 -0
  106. package/dist/claims/medication-statement-claims.d.ts +539 -0
  107. package/dist/claims/medication-statement-claims.js +469 -0
  108. package/dist/claims/organization-claims.d.ts +18 -0
  109. package/dist/claims/organization-claims.js +27 -0
  110. package/dist/claims/practitioner-role-claims.d.ts +18 -0
  111. package/dist/claims/practitioner-role-claims.js +33 -0
  112. package/dist/claims/procedure-claims.d.ts +24 -0
  113. package/dist/claims/procedure-claims.js +44 -0
  114. package/dist/claims/related-person-claims.d.ts +30 -0
  115. package/dist/claims/related-person-claims.js +44 -0
  116. package/dist/claims/research-subject-claims.d.ts +4 -0
  117. package/dist/claims/research-subject-claims.js +4 -0
  118. package/dist/claims/task-claims.d.ts +61 -0
  119. package/dist/claims/task-claims.js +64 -0
  120. package/dist/clinical-terminology.d.ts +73 -0
  121. package/dist/clinical-terminology.js +77 -0
  122. package/dist/constants/clinical-statuses.d.ts +102 -0
  123. package/dist/constants/clinical-statuses.js +93 -0
  124. package/dist/constants/fhir-code-systems.d.ts +15 -0
  125. package/dist/constants/fhir-code-systems.js +15 -0
  126. package/dist/constants/fhir-resource-types.d.ts +162 -0
  127. package/dist/constants/fhir-resource-types.js +70 -0
  128. package/dist/constants/fhir-versions.d.ts +10 -0
  129. package/dist/constants/fhir-versions.js +10 -0
  130. package/dist/constants/index.d.ts +4 -0
  131. package/dist/constants/index.js +4 -0
  132. package/dist/converters/convert-allergy-intolerance.d.ts +3 -0
  133. package/dist/converters/convert-allergy-intolerance.js +85 -0
  134. package/dist/converters/convert-appointment-response.d.ts +3 -0
  135. package/dist/converters/convert-appointment-response.js +32 -0
  136. package/dist/converters/convert-appointment.d.ts +3 -0
  137. package/dist/converters/convert-appointment.js +61 -0
  138. package/dist/converters/convert-care-plan.d.ts +3 -0
  139. package/dist/converters/convert-care-plan.js +93 -0
  140. package/dist/converters/convert-clinical-impression.d.ts +3 -0
  141. package/dist/converters/convert-clinical-impression.js +42 -0
  142. package/dist/converters/convert-composition.d.ts +3 -0
  143. package/dist/converters/convert-composition.js +70 -0
  144. package/dist/converters/convert-condition.d.ts +3 -0
  145. package/dist/converters/convert-condition.js +51 -0
  146. package/dist/converters/convert-consent.d.ts +9 -0
  147. package/dist/converters/convert-consent.js +174 -0
  148. package/dist/converters/convert-coverage.d.ts +3 -0
  149. package/dist/converters/convert-coverage.js +51 -0
  150. package/dist/converters/convert-device-use-statement.d.ts +3 -0
  151. package/dist/converters/convert-device-use-statement.js +36 -0
  152. package/dist/converters/convert-device.d.ts +3 -0
  153. package/dist/converters/convert-device.js +48 -0
  154. package/dist/converters/convert-diagnostic-report.d.ts +3 -0
  155. package/dist/converters/convert-diagnostic-report.js +63 -0
  156. package/dist/converters/convert-document-reference.d.ts +3 -0
  157. package/dist/converters/convert-document-reference.js +54 -0
  158. package/dist/converters/convert-encounter.d.ts +3 -0
  159. package/dist/converters/convert-encounter.js +68 -0
  160. package/dist/converters/convert-flag.d.ts +3 -0
  161. package/dist/converters/convert-flag.js +42 -0
  162. package/dist/converters/convert-immunization.d.ts +3 -0
  163. package/dist/converters/convert-immunization.js +80 -0
  164. package/dist/converters/convert-location.d.ts +3 -0
  165. package/dist/converters/convert-location.js +44 -0
  166. package/dist/converters/convert-medication-statement.d.ts +3 -0
  167. package/dist/converters/convert-medication-statement.js +130 -0
  168. package/dist/converters/convert-observation.d.ts +33 -0
  169. package/dist/converters/convert-observation.js +246 -0
  170. package/dist/converters/convert-organization.d.ts +3 -0
  171. package/dist/converters/convert-organization.js +39 -0
  172. package/dist/converters/convert-practitioner-role.d.ts +3 -0
  173. package/dist/converters/convert-practitioner-role.js +62 -0
  174. package/dist/converters/convert-procedure.d.ts +3 -0
  175. package/dist/converters/convert-procedure.js +64 -0
  176. package/dist/converters/convert-related-person.d.ts +3 -0
  177. package/dist/converters/convert-related-person.js +31 -0
  178. package/dist/converters/convert-shared.d.ts +33 -0
  179. package/dist/converters/convert-shared.js +181 -0
  180. package/dist/converters/index.d.ts +24 -0
  181. package/dist/converters/index.js +24 -0
  182. package/dist/fhir-bundle.d.ts +9 -0
  183. package/dist/fhir-bundle.js +43 -0
  184. package/dist/fhir-search-parameters.d.ts +18 -0
  185. package/dist/fhir-search-parameters.js +52 -0
  186. package/dist/fhir-tokens.d.ts +11 -0
  187. package/dist/fhir-tokens.js +26 -0
  188. package/dist/fhir-types.d.ts +77 -0
  189. package/dist/fhir-types.js +1 -0
  190. package/dist/fhir-values.d.ts +13 -0
  191. package/dist/fhir-values.js +53 -0
  192. package/dist/group-r5.d.ts +121 -0
  193. package/dist/group-r5.js +301 -0
  194. package/dist/imaging-types.d.ts +30 -0
  195. package/dist/imaging-types.js +1 -0
  196. package/dist/immunization-flat-claims.d.ts +2 -0
  197. package/dist/immunization-flat-claims.js +2 -0
  198. package/dist/immunization-reminder-plan.d.ts +2 -0
  199. package/dist/immunization-reminder-plan.js +2 -0
  200. package/dist/index.d.ts +19 -0
  201. package/dist/index.js +19 -0
  202. package/dist/observation-claims.d.ts +170 -0
  203. package/dist/observation-claims.js +184 -0
  204. package/dist/related-person.d.ts +16 -0
  205. package/dist/related-person.js +14 -0
  206. package/dist/research-study-r5.d.ts +163 -0
  207. package/dist/research-study-r5.js +490 -0
  208. package/dist/search-models/index.d.ts +7 -0
  209. package/dist/search-models/index.js +7 -0
  210. package/dist/search-models/params/AdverseEvent.params.model.d.ts +14 -0
  211. package/dist/search-models/params/AdverseEvent.params.model.js +16 -0
  212. package/dist/search-models/params/AllergyIntolerance.params.model.d.ts +24 -0
  213. package/dist/search-models/params/AllergyIntolerance.params.model.js +27 -0
  214. package/dist/search-models/params/Appointment.params.model.d.ts +12 -0
  215. package/dist/search-models/params/Appointment.params.model.js +14 -0
  216. package/dist/search-models/params/ClinicalImpression.params.model.d.ts +14 -0
  217. package/dist/search-models/params/ClinicalImpression.params.model.js +15 -0
  218. package/dist/search-models/params/Condition.params.model.d.ts +16 -0
  219. package/dist/search-models/params/Condition.params.model.js +17 -0
  220. package/dist/search-models/params/DetectedIssue.params.model.d.ts +9 -0
  221. package/dist/search-models/params/DetectedIssue.params.model.js +11 -0
  222. package/dist/search-models/params/DiagnosticReport.params.model.d.ts +13 -0
  223. package/dist/search-models/params/DiagnosticReport.params.model.js +14 -0
  224. package/dist/search-models/params/Encounter.params.model.d.ts +15 -0
  225. package/dist/search-models/params/Encounter.params.model.js +17 -0
  226. package/dist/search-models/params/Immunization.params.model.d.ts +14 -0
  227. package/dist/search-models/params/Immunization.params.model.js +16 -0
  228. package/dist/search-models/params/Medication.params.model.d.ts +35 -0
  229. package/dist/search-models/params/Medication.params.model.js +45 -0
  230. package/dist/search-models/params/Observation.params.model.d.ts +326 -0
  231. package/dist/search-models/params/Observation.params.model.js +244 -0
  232. package/dist/search-models/params/Procedure.params.model.d.ts +15 -0
  233. package/dist/search-models/params/Procedure.params.model.js +17 -0
  234. package/dist/search-models/params/Search.params.model.d.ts +75 -0
  235. package/dist/search-models/params/Search.params.model.js +69 -0
  236. package/dist/search-models/params/ServiceRequest.params.model.d.ts +14 -0
  237. package/dist/search-models/params/ServiceRequest.params.model.js +16 -0
  238. package/dist/search-models/params/Specimen.params.model.d.ts +10 -0
  239. package/dist/search-models/params/Specimen.params.model.js +12 -0
  240. package/dist/search-models/params/index.d.ts +15 -0
  241. package/dist/search-models/params/index.js +15 -0
  242. package/dist/search-models/templates/AdverseEvent.template.model.d.ts +16 -0
  243. package/dist/search-models/templates/AdverseEvent.template.model.js +2 -0
  244. package/dist/search-models/templates/AllergyIntolerance.template.model.d.ts +24 -0
  245. package/dist/search-models/templates/AllergyIntolerance.template.model.js +1 -0
  246. package/dist/search-models/templates/Appointment.template.model.d.ts +13 -0
  247. package/dist/search-models/templates/Appointment.template.model.js +1 -0
  248. package/dist/search-models/templates/ClinicalImpression.template.model.d.ts +16 -0
  249. package/dist/search-models/templates/ClinicalImpression.template.model.js +1 -0
  250. package/dist/search-models/templates/Condition.template.model.d.ts +18 -0
  251. package/dist/search-models/templates/Condition.template.model.js +1 -0
  252. package/dist/search-models/templates/DetectedIssue.template.model.d.ts +11 -0
  253. package/dist/search-models/templates/DetectedIssue.template.model.js +1 -0
  254. package/dist/search-models/templates/DiagnosticReport.template.model.d.ts +15 -0
  255. package/dist/search-models/templates/DiagnosticReport.template.model.js +1 -0
  256. package/dist/search-models/templates/Encounter.template.model.d.ts +17 -0
  257. package/dist/search-models/templates/Encounter.template.model.js +1 -0
  258. package/dist/search-models/templates/Immunization.template.model.d.ts +18 -0
  259. package/dist/search-models/templates/Immunization.template.model.js +2 -0
  260. package/dist/search-models/templates/Medication.template.model.d.ts +37 -0
  261. package/dist/search-models/templates/Medication.template.model.js +1 -0
  262. package/dist/search-models/templates/Observation.template.model.d.ts +18 -0
  263. package/dist/search-models/templates/Observation.template.model.js +1 -0
  264. package/dist/search-models/templates/Procedure.template.model.d.ts +17 -0
  265. package/dist/search-models/templates/Procedure.template.model.js +1 -0
  266. package/dist/search-models/templates/ServiceRequest.template.model.d.ts +16 -0
  267. package/dist/search-models/templates/ServiceRequest.template.model.js +1 -0
  268. package/dist/search-models/templates/Specimen.template.model.d.ts +12 -0
  269. package/dist/search-models/templates/Specimen.template.model.js +1 -0
  270. package/dist/search-models/templates/index.d.ts +14 -0
  271. package/dist/search-models/templates/index.js +14 -0
  272. package/dist/terminology-models/AtcModel.d.ts +15 -0
  273. package/dist/terminology-models/AtcModel.js +2 -0
  274. package/dist/terminology-models/CommonModels.d.ts +70 -0
  275. package/dist/terminology-models/CommonModels.js +55 -0
  276. package/dist/terminology-models/FhirModels.d.ts +60 -0
  277. package/dist/terminology-models/FhirModels.js +34 -0
  278. package/dist/terminology-models/LoincModels.d.ts +24 -0
  279. package/dist/terminology-models/LoincModels.js +2 -0
  280. package/dist/terminology-models/SnomedModels.d.ts +13 -0
  281. package/dist/terminology-models/SnomedModels.js +2 -0
  282. package/dist/terminology-models/index.d.ts +6 -0
  283. package/dist/terminology-models/index.js +6 -0
  284. package/docs/UHC_FHIR_UTILS_MIGRATION.md +51 -8
  285. package/package.json +83 -2
@@ -0,0 +1,218 @@
1
+ // src/models/fhir/Appointment.claims.ts
2
+ /**
3
+ * Defines the flat claims structure for a FHIR Appointment resource, separating
4
+ * version-specific data model fields from version-agnostic API search parameters.
5
+ *
6
+ * This model aligns with FHIR R5 conventions (using `note.text` instead of `comment`)
7
+ * for forward compatibility and consistency with other resources like Communication.
8
+ *
9
+ */
10
+ /**
11
+ * @deprecated Claims are never version-specific. Kept as a source-compatible
12
+ * alias whose values now use the expanded `org.hl7.fhir.api` vocabulary.
13
+ *
14
+ * @basedon https://www.hl7.org/fhir/R4/appointment.html
15
+ */
16
+ export var AppointmentClaimsFhirR4Core;
17
+ (function (AppointmentClaimsFhirR4Core) {
18
+ AppointmentClaimsFhirR4Core["Identifier"] = "org.hl7.fhir.api.Appointment.identifier";
19
+ AppointmentClaimsFhirR4Core["Status"] = "org.hl7.fhir.api.Appointment.status";
20
+ AppointmentClaimsFhirR4Core["CancelationReason"] = "org.hl7.fhir.api.Appointment.cancelation-reason";
21
+ AppointmentClaimsFhirR4Core["ServiceCategory"] = "org.hl7.fhir.api.Appointment.service-category";
22
+ AppointmentClaimsFhirR4Core["ServiceType"] = "org.hl7.fhir.api.Appointment.service-type";
23
+ AppointmentClaimsFhirR4Core["Specialty"] = "org.hl7.fhir.api.Appointment.specialty";
24
+ AppointmentClaimsFhirR4Core["AppointmentType"] = "org.hl7.fhir.api.Appointment.appointment-type";
25
+ AppointmentClaimsFhirR4Core["ReasonCode"] = "org.hl7.fhir.api.Appointment.reason-code";
26
+ AppointmentClaimsFhirR4Core["ReasonReference"] = "org.hl7.fhir.api.Appointment.reason-reference";
27
+ AppointmentClaimsFhirR4Core["Priority"] = "org.hl7.fhir.api.Appointment.priority";
28
+ AppointmentClaimsFhirR4Core["Description"] = "org.hl7.fhir.api.Appointment.description";
29
+ AppointmentClaimsFhirR4Core["SupportingInformation"] = "org.hl7.fhir.api.Appointment.supporting-information";
30
+ AppointmentClaimsFhirR4Core["Start"] = "org.hl7.fhir.api.Appointment.start";
31
+ AppointmentClaimsFhirR4Core["End"] = "org.hl7.fhir.api.Appointment.end";
32
+ AppointmentClaimsFhirR4Core["MinutesDuration"] = "org.hl7.fhir.api.Appointment.minutes-duration";
33
+ AppointmentClaimsFhirR4Core["Slot"] = "org.hl7.fhir.api.Appointment.slot";
34
+ AppointmentClaimsFhirR4Core["Created"] = "org.hl7.fhir.api.Appointment.created";
35
+ AppointmentClaimsFhirR4Core["NoteText"] = "org.hl7.fhir.api.Appointment.note-text";
36
+ AppointmentClaimsFhirR4Core["PatientInstruction"] = "org.hl7.fhir.api.Appointment.patient-instruction";
37
+ AppointmentClaimsFhirR4Core["BasedOn"] = "org.hl7.fhir.api.Appointment.based-on";
38
+ AppointmentClaimsFhirR4Core["ParticipantActor"] = "org.hl7.fhir.api.Appointment.participant-actor";
39
+ AppointmentClaimsFhirR4Core["ParticipantRequired"] = "org.hl7.fhir.api.Appointment.participant-required";
40
+ AppointmentClaimsFhirR4Core["ParticipantStatus"] = "org.hl7.fhir.api.Appointment.participant-status";
41
+ AppointmentClaimsFhirR4Core["ParticipantType"] = "org.hl7.fhir.api.Appointment.participant-type";
42
+ AppointmentClaimsFhirR4Core["RequestedPeriod"] = "org.hl7.fhir.api.Appointment.requested-period";
43
+ AppointmentClaimsFhirR4Core["ResourceId"] = "org.hl7.fhir.api.Appointment.resource-id";
44
+ })(AppointmentClaimsFhirR4Core || (AppointmentClaimsFhirR4Core = {}));
45
+ /**
46
+ * Contains claims representing the standard, version-agnostic API search parameters for an Appointment.
47
+ *
48
+ * @basedon https://www.hl7.org/fhir/appointment.html#search
49
+ */
50
+ export var AppointmentClaimsFhirApi;
51
+ (function (AppointmentClaimsFhirApi) {
52
+ AppointmentClaimsFhirApi["Actor"] = "org.hl7.fhir.api.Appointment.actor";
53
+ AppointmentClaimsFhirApi["AppointmentType"] = "org.hl7.fhir.api.Appointment.appointment-type";
54
+ AppointmentClaimsFhirApi["BasedOn"] = "org.hl7.fhir.api.Appointment.based-on";
55
+ AppointmentClaimsFhirApi["Date"] = "org.hl7.fhir.api.Appointment.date";
56
+ AppointmentClaimsFhirApi["Identifier"] = "org.hl7.fhir.api.Appointment.identifier";
57
+ AppointmentClaimsFhirApi["Location"] = "org.hl7.fhir.api.Appointment.location";
58
+ AppointmentClaimsFhirApi["PartStatus"] = "org.hl7.fhir.api.Appointment.part-status";
59
+ AppointmentClaimsFhirApi["Patient"] = "org.hl7.fhir.api.Appointment.patient";
60
+ AppointmentClaimsFhirApi["Practitioner"] = "org.hl7.fhir.api.Appointment.practitioner";
61
+ AppointmentClaimsFhirApi["ReasonCode"] = "org.hl7.fhir.api.Appointment.reason-code";
62
+ AppointmentClaimsFhirApi["ReasonReference"] = "org.hl7.fhir.api.Appointment.reason-reference";
63
+ AppointmentClaimsFhirApi["ServiceCategory"] = "org.hl7.fhir.api.Appointment.service-category";
64
+ AppointmentClaimsFhirApi["ServiceType"] = "org.hl7.fhir.api.Appointment.service-type";
65
+ AppointmentClaimsFhirApi["Slot"] = "org.hl7.fhir.api.Appointment.slot";
66
+ AppointmentClaimsFhirApi["Specialty"] = "org.hl7.fhir.api.Appointment.specialty";
67
+ AppointmentClaimsFhirApi["Status"] = "org.hl7.fhir.api.Appointment.status";
68
+ AppointmentClaimsFhirApi["SupportingInfo"] = "org.hl7.fhir.api.Appointment.supporting-info";
69
+ })(AppointmentClaimsFhirApi || (AppointmentClaimsFhirApi = {}));
70
+ /**
71
+ * Extends the standard API search parameters with custom parameters derived from core data model fields.
72
+ */
73
+ export var AppointmentClaimsFhirApiExtended;
74
+ (function (AppointmentClaimsFhirApiExtended) {
75
+ AppointmentClaimsFhirApiExtended["Actor"] = "org.hl7.fhir.api.Appointment.actor";
76
+ AppointmentClaimsFhirApiExtended["AppointmentType"] = "org.hl7.fhir.api.Appointment.appointment-type";
77
+ AppointmentClaimsFhirApiExtended["BasedOn"] = "org.hl7.fhir.api.Appointment.based-on";
78
+ AppointmentClaimsFhirApiExtended["Date"] = "org.hl7.fhir.api.Appointment.date";
79
+ AppointmentClaimsFhirApiExtended["Identifier"] = "org.hl7.fhir.api.Appointment.identifier";
80
+ AppointmentClaimsFhirApiExtended["Location"] = "org.hl7.fhir.api.Appointment.location";
81
+ AppointmentClaimsFhirApiExtended["PartStatus"] = "org.hl7.fhir.api.Appointment.part-status";
82
+ AppointmentClaimsFhirApiExtended["Patient"] = "org.hl7.fhir.api.Appointment.patient";
83
+ AppointmentClaimsFhirApiExtended["Practitioner"] = "org.hl7.fhir.api.Appointment.practitioner";
84
+ AppointmentClaimsFhirApiExtended["ReasonCode"] = "org.hl7.fhir.api.Appointment.reason-code";
85
+ AppointmentClaimsFhirApiExtended["ReasonReference"] = "org.hl7.fhir.api.Appointment.reason-reference";
86
+ AppointmentClaimsFhirApiExtended["ServiceCategory"] = "org.hl7.fhir.api.Appointment.service-category";
87
+ AppointmentClaimsFhirApiExtended["ServiceType"] = "org.hl7.fhir.api.Appointment.service-type";
88
+ AppointmentClaimsFhirApiExtended["Slot"] = "org.hl7.fhir.api.Appointment.slot";
89
+ AppointmentClaimsFhirApiExtended["Specialty"] = "org.hl7.fhir.api.Appointment.specialty";
90
+ AppointmentClaimsFhirApiExtended["Status"] = "org.hl7.fhir.api.Appointment.status";
91
+ AppointmentClaimsFhirApiExtended["SupportingInfo"] = "org.hl7.fhir.api.Appointment.supporting-info";
92
+ // Extended
93
+ AppointmentClaimsFhirApiExtended["CancelationReason"] = "org.hl7.fhir.api.Appointment.cancelation-reason";
94
+ AppointmentClaimsFhirApiExtended["MinutesDuration"] = "org.hl7.fhir.api.Appointment.minutes-duration";
95
+ AppointmentClaimsFhirApiExtended["Priority"] = "org.hl7.fhir.api.Appointment.priority";
96
+ AppointmentClaimsFhirApiExtended["Created"] = "org.hl7.fhir.api.Appointment.created";
97
+ AppointmentClaimsFhirApiExtended["Description"] = "org.hl7.fhir.api.Appointment.description";
98
+ AppointmentClaimsFhirApiExtended["NoteText"] = "org.hl7.fhir.api.Appointment.note-text";
99
+ })(AppointmentClaimsFhirApiExtended || (AppointmentClaimsFhirApiExtended = {}));
100
+ export const AppointmentClaimsFhirR4CoreMap = {
101
+ [AppointmentClaimsFhirR4Core.Identifier]: String,
102
+ [AppointmentClaimsFhirR4Core.Status]: String,
103
+ [AppointmentClaimsFhirR4Core.CancelationReason]: String,
104
+ [AppointmentClaimsFhirR4Core.ServiceCategory]: String,
105
+ [AppointmentClaimsFhirR4Core.ServiceType]: String,
106
+ [AppointmentClaimsFhirR4Core.Specialty]: String,
107
+ [AppointmentClaimsFhirR4Core.AppointmentType]: String,
108
+ [AppointmentClaimsFhirR4Core.ReasonCode]: String,
109
+ [AppointmentClaimsFhirR4Core.ReasonReference]: String,
110
+ [AppointmentClaimsFhirR4Core.Priority]: Number,
111
+ [AppointmentClaimsFhirR4Core.Description]: String,
112
+ [AppointmentClaimsFhirR4Core.SupportingInformation]: String,
113
+ [AppointmentClaimsFhirR4Core.Start]: String,
114
+ [AppointmentClaimsFhirR4Core.End]: String,
115
+ [AppointmentClaimsFhirR4Core.MinutesDuration]: Number,
116
+ [AppointmentClaimsFhirR4Core.Slot]: String,
117
+ [AppointmentClaimsFhirR4Core.Created]: String,
118
+ [AppointmentClaimsFhirR4Core.NoteText]: String,
119
+ [AppointmentClaimsFhirR4Core.PatientInstruction]: String,
120
+ [AppointmentClaimsFhirR4Core.BasedOn]: String,
121
+ [AppointmentClaimsFhirR4Core.ParticipantActor]: String,
122
+ [AppointmentClaimsFhirR4Core.ParticipantRequired]: String,
123
+ [AppointmentClaimsFhirR4Core.ParticipantStatus]: String,
124
+ [AppointmentClaimsFhirR4Core.ParticipantType]: String,
125
+ [AppointmentClaimsFhirR4Core.RequestedPeriod]: String,
126
+ [AppointmentClaimsFhirR4Core.ResourceId]: String,
127
+ };
128
+ export const AppointmentClaimsFhirApiMap = {
129
+ [AppointmentClaimsFhirApi.Actor]: String,
130
+ [AppointmentClaimsFhirApi.AppointmentType]: String,
131
+ [AppointmentClaimsFhirApi.BasedOn]: String,
132
+ [AppointmentClaimsFhirApi.Date]: String,
133
+ [AppointmentClaimsFhirApi.Identifier]: String,
134
+ [AppointmentClaimsFhirApi.Location]: String,
135
+ [AppointmentClaimsFhirApi.PartStatus]: String,
136
+ [AppointmentClaimsFhirApi.Patient]: String,
137
+ [AppointmentClaimsFhirApi.Practitioner]: String,
138
+ [AppointmentClaimsFhirApi.ReasonCode]: String,
139
+ [AppointmentClaimsFhirApi.ReasonReference]: String,
140
+ [AppointmentClaimsFhirApi.ServiceCategory]: String,
141
+ [AppointmentClaimsFhirApi.ServiceType]: String,
142
+ [AppointmentClaimsFhirApi.Slot]: String,
143
+ [AppointmentClaimsFhirApi.Specialty]: String,
144
+ [AppointmentClaimsFhirApi.Status]: String,
145
+ [AppointmentClaimsFhirApi.SupportingInfo]: String,
146
+ };
147
+ export const AppointmentClaimsFhirApiExtendedMap = {
148
+ ...AppointmentClaimsFhirApiMap,
149
+ [AppointmentClaimsFhirApiExtended.CancelationReason]: String,
150
+ [AppointmentClaimsFhirApiExtended.MinutesDuration]: Number,
151
+ [AppointmentClaimsFhirApiExtended.Priority]: Number,
152
+ [AppointmentClaimsFhirApiExtended.Created]: String,
153
+ [AppointmentClaimsFhirApiExtended.Description]: String,
154
+ [AppointmentClaimsFhirApiExtended.NoteText]: String,
155
+ };
156
+ export const AppointmentClaim = {
157
+ Identifier: 'Appointment.identifier',
158
+ Status: 'Appointment.status',
159
+ ServiceCategory: 'Appointment.service-category',
160
+ ServiceType: 'Appointment.service-type',
161
+ Specialty: 'Appointment.specialty',
162
+ AppointmentType: 'Appointment.appointment-type',
163
+ ReasonCode: 'Appointment.reason-code',
164
+ ReasonReference: 'Appointment.reason-reference',
165
+ Description: 'Appointment.description',
166
+ Start: 'Appointment.start',
167
+ End: 'Appointment.end',
168
+ MinutesDuration: 'Appointment.minutes-duration',
169
+ Created: 'Appointment.created',
170
+ NoteText: 'Appointment.note-text',
171
+ PatientInstruction: 'Appointment.patient-instruction',
172
+ BasedOn: 'Appointment.based-on',
173
+ ParticipantActor: 'Appointment.actor',
174
+ ParticipantStatus: 'Appointment.part-status',
175
+ ParticipantType: 'Appointment.participant-type',
176
+ };
177
+ // src/models/fhir/Appointment.values.ts
178
+ /**
179
+ * Defines the possible values for the `status` field on a FHIR Appointment resource.
180
+ * @basedon http://hl7.org/fhir/R4/appointment.html#status
181
+ * @basedon http://hl7.org/fhir/valueset-appointmentstatus.html
182
+ */
183
+ export var AppointmentStatus;
184
+ (function (AppointmentStatus) {
185
+ AppointmentStatus["Proposed"] = "proposed";
186
+ AppointmentStatus["Pending"] = "pending";
187
+ AppointmentStatus["Booked"] = "booked";
188
+ AppointmentStatus["Arrived"] = "arrived";
189
+ AppointmentStatus["Fulfilled"] = "fulfilled";
190
+ AppointmentStatus["Cancelled"] = "cancelled";
191
+ AppointmentStatus["NoShow"] = "noshow";
192
+ AppointmentStatus["EnteredInError"] = "entered-in-error";
193
+ AppointmentStatus["CheckedIn"] = "checked-in";
194
+ AppointmentStatus["Waitlist"] = "waitlist";
195
+ })(AppointmentStatus || (AppointmentStatus = {}));
196
+ /**
197
+ * Defines the possible values for the `participant.required` field on a FHIR Appointment resource.
198
+ * @basedon http://hl7.org/fhir/R4/appointment.html#participant
199
+ * @basedon http://hl7.org/fhir/valueset-participantrequired.html
200
+ */
201
+ export var AppointmentParticipantRequired;
202
+ (function (AppointmentParticipantRequired) {
203
+ AppointmentParticipantRequired["Required"] = "required";
204
+ AppointmentParticipantRequired["Optional"] = "optional";
205
+ AppointmentParticipantRequired["InformationOnly"] = "information-only";
206
+ })(AppointmentParticipantRequired || (AppointmentParticipantRequired = {}));
207
+ /**
208
+ * Defines the possible values for the `participant.status` field on a FHIR Appointment resource.
209
+ * @basedon http://hl7.org/fhir/R4/appointment.html#participant
210
+ * @basedon http://hl7.org/fhir/valueset-participationstatus.html
211
+ */
212
+ export var AppointmentParticipantStatus;
213
+ (function (AppointmentParticipantStatus) {
214
+ AppointmentParticipantStatus["Accepted"] = "accepted";
215
+ AppointmentParticipantStatus["Declined"] = "declined";
216
+ AppointmentParticipantStatus["Tentative"] = "tentative";
217
+ AppointmentParticipantStatus["NeedsAction"] = "needs-action";
218
+ })(AppointmentParticipantStatus || (AppointmentParticipantStatus = {}));
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Defines the flat claims structure for a FHIR AppointmentResponse resource.
3
+ *
4
+ * @basedon https://www.hl7.org/fhir/appointmentresponse.html
5
+ */
6
+ /**
7
+ * @deprecated Claims are never version-specific. Kept as a source-compatible
8
+ * alias whose keys now use the expanded `org.hl7.fhir.api` vocabulary.
9
+ *
10
+ * @basedon https://www.hl7.org/fhir/R4/appointmentresponse.html
11
+ */
12
+ export declare const AppointmentResponseClaimsFhirR4: {
13
+ 'org.hl7.fhir.api.AppointmentResponse.actor': StringConstructor;
14
+ 'org.hl7.fhir.api.AppointmentResponse.appointment': StringConstructor;
15
+ 'org.hl7.fhir.api.AppointmentResponse.comment': StringConstructor;
16
+ 'org.hl7.fhir.api.AppointmentResponse.identifier': StringConstructor;
17
+ 'org.hl7.fhir.api.AppointmentResponse.start': StringConstructor;
18
+ 'org.hl7.fhir.api.AppointmentResponse.end': StringConstructor;
19
+ 'org.hl7.fhir.api.AppointmentResponse.participant-type': StringConstructor;
20
+ 'org.hl7.fhir.api.AppointmentResponse.participant-status': StringConstructor;
21
+ 'org.hl7.fhir.api.AppointmentResponse.resource-id': StringConstructor;
22
+ };
23
+ /**
24
+ * Contains claims representing the standard, version-agnostic API search parameters for an AppointmentResponse.
25
+ *
26
+ * @basedon https://www.hl7.org/fhir/appointmentresponse.html#search
27
+ */
28
+ export declare const AppointmentResponseClaimsFhirApi: {
29
+ 'org.hl7.fhir.api.AppointmentResponse.actor': StringConstructor;
30
+ 'org.hl7.fhir.api.AppointmentResponse.appointment': StringConstructor;
31
+ 'org.hl7.fhir.api.AppointmentResponse.identifier': StringConstructor;
32
+ 'org.hl7.fhir.api.AppointmentResponse.location': StringConstructor;
33
+ 'org.hl7.fhir.api.AppointmentResponse.part-status': StringConstructor;
34
+ 'org.hl7.fhir.api.AppointmentResponse.patient': StringConstructor;
35
+ 'org.hl7.fhir.api.AppointmentResponse.practitioner': StringConstructor;
36
+ };
37
+ /**
38
+ * Extends the standard API search parameters with custom parameters derived from core data model fields.
39
+ * In this case, there are no common extended parameters, so it mirrors the base API claims.
40
+ */
41
+ export declare const AppointmentResponseClaimsFhirApiExtended: {
42
+ 'org.hl7.fhir.api.AppointmentResponse.actor': StringConstructor;
43
+ 'org.hl7.fhir.api.AppointmentResponse.appointment': StringConstructor;
44
+ 'org.hl7.fhir.api.AppointmentResponse.identifier': StringConstructor;
45
+ 'org.hl7.fhir.api.AppointmentResponse.location': StringConstructor;
46
+ 'org.hl7.fhir.api.AppointmentResponse.part-status': StringConstructor;
47
+ 'org.hl7.fhir.api.AppointmentResponse.patient': StringConstructor;
48
+ 'org.hl7.fhir.api.AppointmentResponse.practitioner': StringConstructor;
49
+ };
50
+ export declare const AppointmentResponseClaim: {
51
+ readonly Actor: "AppointmentResponse.actor";
52
+ readonly Appointment: "AppointmentResponse.appointment";
53
+ readonly Comment: "AppointmentResponse.comment";
54
+ readonly Identifier: "AppointmentResponse.identifier";
55
+ readonly Start: "AppointmentResponse.start";
56
+ readonly End: "AppointmentResponse.end";
57
+ readonly ParticipantType: "AppointmentResponse.participant-type";
58
+ readonly ParticipantStatus: "AppointmentResponse.participant-status";
59
+ readonly Patient: "AppointmentResponse.patient";
60
+ readonly Practitioner: "AppointmentResponse.practitioner";
61
+ readonly Location: "AppointmentResponse.location";
62
+ };
63
+ export type AppointmentResponseClaimKey = typeof AppointmentResponseClaim[keyof typeof AppointmentResponseClaim];
@@ -0,0 +1,58 @@
1
+ // src/models/fhir/AppointmentResponse.claims.ts
2
+ /**
3
+ * Defines the flat claims structure for a FHIR AppointmentResponse resource.
4
+ *
5
+ * @basedon https://www.hl7.org/fhir/appointmentresponse.html
6
+ */
7
+ /**
8
+ * @deprecated Claims are never version-specific. Kept as a source-compatible
9
+ * alias whose keys now use the expanded `org.hl7.fhir.api` vocabulary.
10
+ *
11
+ * @basedon https://www.hl7.org/fhir/R4/appointmentresponse.html
12
+ */
13
+ export const AppointmentResponseClaimsFhirR4 = {
14
+ 'org.hl7.fhir.api.AppointmentResponse.actor': String,
15
+ 'org.hl7.fhir.api.AppointmentResponse.appointment': String,
16
+ 'org.hl7.fhir.api.AppointmentResponse.comment': String,
17
+ 'org.hl7.fhir.api.AppointmentResponse.identifier': String,
18
+ 'org.hl7.fhir.api.AppointmentResponse.start': String,
19
+ 'org.hl7.fhir.api.AppointmentResponse.end': String,
20
+ 'org.hl7.fhir.api.AppointmentResponse.participant-type': String,
21
+ 'org.hl7.fhir.api.AppointmentResponse.participant-status': String,
22
+ 'org.hl7.fhir.api.AppointmentResponse.resource-id': String,
23
+ };
24
+ /**
25
+ * Contains claims representing the standard, version-agnostic API search parameters for an AppointmentResponse.
26
+ *
27
+ * @basedon https://www.hl7.org/fhir/appointmentresponse.html#search
28
+ */
29
+ export const AppointmentResponseClaimsFhirApi = {
30
+ 'org.hl7.fhir.api.AppointmentResponse.actor': String,
31
+ 'org.hl7.fhir.api.AppointmentResponse.appointment': String,
32
+ 'org.hl7.fhir.api.AppointmentResponse.identifier': String,
33
+ 'org.hl7.fhir.api.AppointmentResponse.location': String,
34
+ 'org.hl7.fhir.api.AppointmentResponse.part-status': String,
35
+ 'org.hl7.fhir.api.AppointmentResponse.patient': String,
36
+ 'org.hl7.fhir.api.AppointmentResponse.practitioner': String,
37
+ };
38
+ /**
39
+ * Extends the standard API search parameters with custom parameters derived from core data model fields.
40
+ * In this case, there are no common extended parameters, so it mirrors the base API claims.
41
+ */
42
+ export const AppointmentResponseClaimsFhirApiExtended = {
43
+ ...AppointmentResponseClaimsFhirApi,
44
+ // No additional extended claims for AppointmentResponse at this time.
45
+ };
46
+ export const AppointmentResponseClaim = {
47
+ Actor: 'AppointmentResponse.actor',
48
+ Appointment: 'AppointmentResponse.appointment',
49
+ Comment: 'AppointmentResponse.comment',
50
+ Identifier: 'AppointmentResponse.identifier',
51
+ Start: 'AppointmentResponse.start',
52
+ End: 'AppointmentResponse.end',
53
+ ParticipantType: 'AppointmentResponse.participant-type',
54
+ ParticipantStatus: 'AppointmentResponse.participant-status',
55
+ Patient: 'AppointmentResponse.patient',
56
+ Practitioner: 'AppointmentResponse.practitioner',
57
+ Location: 'AppointmentResponse.location',
58
+ };
@@ -0,0 +1,37 @@
1
+ import type { ClaimSpec } from './claim-types.js';
2
+ export declare const CarePlanClaim: {
3
+ readonly ActivityCode: "CarePlan.activity-code";
4
+ readonly ActivityDate: "CarePlan.activity-date";
5
+ readonly ActivityReference: "CarePlan.activity-reference";
6
+ readonly BasedOn: "CarePlan.based-on";
7
+ readonly CareTeam: "CarePlan.care-team";
8
+ readonly Category: "CarePlan.category";
9
+ readonly CategoryText: "CarePlan.category-text";
10
+ readonly CategoryDisplay: "CarePlan.category-display";
11
+ readonly Condition: "CarePlan.condition";
12
+ readonly Date: "CarePlan.date";
13
+ readonly Encounter: "CarePlan.encounter";
14
+ readonly Goal: "CarePlan.goal";
15
+ readonly Identifier: "CarePlan.identifier";
16
+ readonly Intent: "CarePlan.intent";
17
+ readonly PartOf: "CarePlan.part-of";
18
+ readonly Patient: "CarePlan.patient";
19
+ readonly Performer: "CarePlan.performer";
20
+ readonly Replaces: "CarePlan.replaces";
21
+ readonly Status: "CarePlan.status";
22
+ readonly Subject: "CarePlan.subject";
23
+ readonly Note: "CarePlan.note";
24
+ readonly Description: "CarePlan.description";
25
+ readonly PeriodStart: "CarePlan.period-start";
26
+ readonly PeriodEnd: "CarePlan.period-end";
27
+ readonly ActivityStatus: "CarePlan.activity-status";
28
+ readonly ActivityStatusReason: "CarePlan.activity-status-reason";
29
+ readonly ActivityDoNotPerform: "CarePlan.activity-do-not-perform";
30
+ readonly ActivityOutcome: "CarePlan.activity-outcome";
31
+ readonly ActivityLocationDisplay: "CarePlan.activity-location-display";
32
+ readonly ActivityTimingFrequency: "CarePlan.activity-timing-frequency";
33
+ readonly ActivityTimingPeriod: "CarePlan.activity-timing-period";
34
+ readonly ActivityTimingPeriodUnit: "CarePlan.activity-timing-period-unit";
35
+ };
36
+ export type CarePlanClaimKey = typeof CarePlanClaim[keyof typeof CarePlanClaim];
37
+ export declare const CarePlanClaimSpecs: ClaimSpec[];
@@ -0,0 +1,59 @@
1
+ // Copyright 2026 Conéctate Soluciones y Aplicaciones SL under the Apache License, Version 2.0.
2
+ // File: src/models/interoperable-claims/care-plan-claims.ts
3
+ export const CarePlanClaim = {
4
+ ActivityCode: 'CarePlan.activity-code',
5
+ ActivityDate: 'CarePlan.activity-date',
6
+ ActivityReference: 'CarePlan.activity-reference',
7
+ BasedOn: 'CarePlan.based-on',
8
+ CareTeam: 'CarePlan.care-team',
9
+ Category: 'CarePlan.category',
10
+ CategoryText: 'CarePlan.category-text',
11
+ CategoryDisplay: 'CarePlan.category-display',
12
+ Condition: 'CarePlan.condition',
13
+ Date: 'CarePlan.date',
14
+ Encounter: 'CarePlan.encounter',
15
+ Goal: 'CarePlan.goal',
16
+ Identifier: 'CarePlan.identifier',
17
+ Intent: 'CarePlan.intent',
18
+ PartOf: 'CarePlan.part-of',
19
+ Patient: 'CarePlan.patient',
20
+ Performer: 'CarePlan.performer',
21
+ Replaces: 'CarePlan.replaces',
22
+ Status: 'CarePlan.status',
23
+ Subject: 'CarePlan.subject',
24
+ Note: 'CarePlan.note',
25
+ Description: 'CarePlan.description',
26
+ PeriodStart: 'CarePlan.period-start',
27
+ PeriodEnd: 'CarePlan.period-end',
28
+ ActivityStatus: 'CarePlan.activity-status',
29
+ ActivityStatusReason: 'CarePlan.activity-status-reason',
30
+ ActivityDoNotPerform: 'CarePlan.activity-do-not-perform',
31
+ ActivityOutcome: 'CarePlan.activity-outcome',
32
+ ActivityLocationDisplay: 'CarePlan.activity-location-display',
33
+ ActivityTimingFrequency: 'CarePlan.activity-timing-frequency',
34
+ ActivityTimingPeriod: 'CarePlan.activity-timing-period',
35
+ ActivityTimingPeriodUnit: 'CarePlan.activity-timing-period-unit',
36
+ };
37
+ export const CarePlanClaimSpecs = [
38
+ { key: CarePlanClaim.ActivityCode, meaning: 'Planned activity code token.', example: 'http://snomed.info/sct|229065009' },
39
+ { key: CarePlanClaim.ActivityDate, meaning: 'Planned activity date/time.', example: '2026-06-15T09:00:00Z' },
40
+ { key: CarePlanClaim.ActivityReference, meaning: 'Activity reference.', example: 'ServiceRequest/sr-1' },
41
+ { key: CarePlanClaim.BasedOn, meaning: 'Based-on reference.', example: 'CarePlan/plan-parent' },
42
+ { key: CarePlanClaim.CareTeam, meaning: 'Care team references (CSV).', example: 'CareTeam/team-1' },
43
+ { key: CarePlanClaim.Category, meaning: 'Care plan category token.', example: 'http://snomed.info/sct|736373009' },
44
+ { key: CarePlanClaim.CategoryText, meaning: 'Local-language care plan category label.', example: 'Plan de control de peso' },
45
+ { key: CarePlanClaim.CategoryDisplay, meaning: 'Canonical/international care plan category display.', example: 'Weight management plan' },
46
+ { key: CarePlanClaim.Condition, meaning: 'Condition references (CSV).', example: 'Condition/cond-1' },
47
+ { key: CarePlanClaim.Date, meaning: 'Care plan creation or period date.', example: '2026-06-01T10:00:00Z' },
48
+ { key: CarePlanClaim.Encounter, meaning: 'Encounter reference.', example: 'Encounter/enc-1' },
49
+ { key: CarePlanClaim.Goal, meaning: 'Goal references (CSV).', example: 'Goal/goal-1' },
50
+ { key: CarePlanClaim.Identifier, meaning: 'Business identifier.', example: 'careplan-001' },
51
+ { key: CarePlanClaim.Intent, meaning: 'Care plan intent.', example: 'plan' },
52
+ { key: CarePlanClaim.PartOf, meaning: 'Parent care plan references (CSV).', example: 'CarePlan/plan-parent' },
53
+ { key: CarePlanClaim.Patient, meaning: 'Patient reference.', example: 'did:web:patient.example.org' },
54
+ { key: CarePlanClaim.Performer, meaning: 'Performer references (CSV).', example: 'Practitioner/prac-1' },
55
+ { key: CarePlanClaim.Replaces, meaning: 'Replaced care plan references (CSV).', example: 'CarePlan/old-plan' },
56
+ { key: CarePlanClaim.Status, meaning: 'Care plan status.', example: 'active' },
57
+ { key: CarePlanClaim.Subject, meaning: 'Canonical subject reference.', example: 'did:web:patient.example.org' },
58
+ { key: CarePlanClaim.Note, meaning: 'Clinical note text.', example: 'Daily home exercise plan.' },
59
+ ];
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Canonical interoperable-claims keys used by claims-first payloads.
3
+ * Keep this separated from strict FHIR resource typings.
4
+ */
5
+ export type ClaimSpec = {
6
+ key: string;
7
+ meaning: string;
8
+ example: string;
9
+ };
@@ -0,0 +1,3 @@
1
+ // Copyright 2026 Conéctate Soluciones y Aplicaciones SL under the Apache License, Version 2.0.
2
+ // File: src/models/interoperable-claims/types.ts
3
+ export {};
@@ -0,0 +1,17 @@
1
+ import type { ClaimSpec } from './claim-types.js';
2
+ export declare const ClinicalImpressionClaim: {
3
+ readonly Identifier: "ClinicalImpression.identifier";
4
+ readonly Status: "ClinicalImpression.status";
5
+ readonly Description: "ClinicalImpression.description";
6
+ readonly Subject: "ClinicalImpression.subject";
7
+ readonly Encounter: "ClinicalImpression.encounter";
8
+ readonly EffectiveDateTime: "ClinicalImpression.effective-datetime";
9
+ readonly Date: "ClinicalImpression.date";
10
+ readonly Assessor: "ClinicalImpression.assessor";
11
+ readonly Problem: "ClinicalImpression.problem";
12
+ readonly Finding: "ClinicalImpression.finding";
13
+ readonly PrognosisCode: "ClinicalImpression.prognosis-code";
14
+ readonly Summary: "ClinicalImpression.summary";
15
+ };
16
+ export type ClinicalImpressionClaimKey = typeof ClinicalImpressionClaim[keyof typeof ClinicalImpressionClaim];
17
+ export declare const ClinicalImpressionClaimSpecs: ClaimSpec[];
@@ -0,0 +1,30 @@
1
+ // Copyright 2026 Conéctate Soluciones y Aplicaciones SL under the Apache License, Version 2.0.
2
+ // File: src/models/interoperable-claims/clinical-impression-claims.ts
3
+ export const ClinicalImpressionClaim = {
4
+ Identifier: 'ClinicalImpression.identifier',
5
+ Status: 'ClinicalImpression.status',
6
+ Description: 'ClinicalImpression.description',
7
+ Subject: 'ClinicalImpression.subject',
8
+ Encounter: 'ClinicalImpression.encounter',
9
+ EffectiveDateTime: 'ClinicalImpression.effective-datetime',
10
+ Date: 'ClinicalImpression.date',
11
+ Assessor: 'ClinicalImpression.assessor',
12
+ Problem: 'ClinicalImpression.problem',
13
+ Finding: 'ClinicalImpression.finding',
14
+ PrognosisCode: 'ClinicalImpression.prognosis-code',
15
+ Summary: 'ClinicalImpression.summary',
16
+ };
17
+ export const ClinicalImpressionClaimSpecs = [
18
+ { key: ClinicalImpressionClaim.Identifier, meaning: 'Business identifier.', example: 'ci-001' },
19
+ { key: ClinicalImpressionClaim.Status, meaning: 'Clinical impression status.', example: 'completed' },
20
+ { key: ClinicalImpressionClaim.Description, meaning: 'Narrative description.', example: 'Post-discharge review.' },
21
+ { key: ClinicalImpressionClaim.Subject, meaning: 'Canonical subject reference.', example: 'did:web:patient.example.org' },
22
+ { key: ClinicalImpressionClaim.Encounter, meaning: 'Encounter reference.', example: 'Encounter/enc-1' },
23
+ { key: ClinicalImpressionClaim.EffectiveDateTime, meaning: 'Effective assessment date/time.', example: '2026-06-01T10:00:00Z' },
24
+ { key: ClinicalImpressionClaim.Date, meaning: 'FHIR date field.', example: '2026-06-01T10:30:00Z' },
25
+ { key: ClinicalImpressionClaim.Assessor, meaning: 'Assessor reference.', example: 'Practitioner/prac-1' },
26
+ { key: ClinicalImpressionClaim.Problem, meaning: 'Problem references (CSV).', example: 'Condition/cond-1' },
27
+ { key: ClinicalImpressionClaim.Finding, meaning: 'Finding references (CSV).', example: 'Observation/obs-1' },
28
+ { key: ClinicalImpressionClaim.PrognosisCode, meaning: 'Prognosis token.', example: 'http://snomed.info/sct|271299001' },
29
+ { key: ClinicalImpressionClaim.Summary, meaning: 'Summary text.', example: 'Stable with mild fatigue.' },
30
+ ];
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Canonical flat claim keys for FHIR `Communication`.
3
+ *
4
+ * Good practice note:
5
+ * - any code, examples, scripts, or tests that write/read reusable
6
+ * `Communication.*` claims must import these keys instead of re-hardcoding
7
+ * string literals inline
8
+ * - legacy aliases such as `Communication.partOf` may still appear in
9
+ * compatibility readers, but new code must use the canonical key constants
10
+ */
11
+ export declare const CommunicationClaim: {
12
+ /** Communication category code (`system|code`). */
13
+ readonly Category: "Communication.category";
14
+ /** FHIR Communication status. */
15
+ readonly Status: "Communication.status";
16
+ /** Stable communication identifier. */
17
+ readonly Identifier: "Communication.identifier";
18
+ /** Subject identifier (typically `did:web`). */
19
+ readonly Subject: "Communication.subject";
20
+ /** Recipient identifier(s); CSV allowed. */
21
+ readonly Recipient: "Communication.recipient";
22
+ /** Sender identifier. */
23
+ readonly Sender: "Communication.sender";
24
+ /** Sent timestamp (ISO 8601 DateTime). */
25
+ readonly Sent: "Communication.sent";
26
+ /** Human note text for the communication context. */
27
+ readonly NoteText: "Communication.note-text";
28
+ /** Communication topic code (`system|code`). */
29
+ readonly Topic: "Communication.topic";
30
+ /** Narrative text (short summary or body). */
31
+ readonly Text: "Communication.text";
32
+ /** Related resource references; CSV allowed. */
33
+ readonly ContentReference: "Communication.content-reference";
34
+ /** Content code (`system|code`) when payload is coded. */
35
+ readonly ContentCode: "Communication.content-code";
36
+ /**
37
+ * Base64 encoded payload for attachment-based communication flows.
38
+ *
39
+ * Recommended lifecycle:
40
+ * - maintain the editable Bundle as object in memory
41
+ * - edit one active entry at a time (`fullUrl`, `resource`, `request`, ...)
42
+ * - re-serialize Bundle JSON to this claim after each save/update
43
+ * - treat this claim as derived data (never manual source of truth)
44
+ */
45
+ readonly ContentAttachmentData: "Communication.content-attachment-data";
46
+ /** Attachment MIME type (`application/fhir+json`, `application/pdf`, ...). */
47
+ readonly ContentAttachmentType: "Communication.content-attachment-type";
48
+ /** Attachment title for UI/readability contexts. */
49
+ readonly ContentAttachmentTitle: "Communication.content-attachment-title";
50
+ /** External attachment URL when payload is not embedded. */
51
+ readonly ContentAttachmentUrl: "Communication.content-attachment-url";
52
+ /** Parent communication thread/reference (`Communication.part-of`). */
53
+ readonly PartOf: "Communication.part-of";
54
+ };
55
+ export type CommunicationClaimKey = typeof CommunicationClaim[keyof typeof CommunicationClaim];
@@ -0,0 +1,57 @@
1
+ // Copyright 2026 Conéctate Soluciones y Aplicaciones SL under the Apache License, Version 2.0.
2
+ // Always create JSDoc, do not use strings inline in keys nor values, use types instead, and reuse the data test examples.
3
+ // File: src/models/interoperable-claims/communication-claims.ts
4
+ /**
5
+ * Canonical flat claim keys for FHIR `Communication`.
6
+ *
7
+ * Good practice note:
8
+ * - any code, examples, scripts, or tests that write/read reusable
9
+ * `Communication.*` claims must import these keys instead of re-hardcoding
10
+ * string literals inline
11
+ * - legacy aliases such as `Communication.partOf` may still appear in
12
+ * compatibility readers, but new code must use the canonical key constants
13
+ */
14
+ export const CommunicationClaim = {
15
+ /** Communication category code (`system|code`). */
16
+ Category: 'Communication.category',
17
+ /** FHIR Communication status. */
18
+ Status: 'Communication.status',
19
+ /** Stable communication identifier. */
20
+ Identifier: 'Communication.identifier',
21
+ /** Subject identifier (typically `did:web`). */
22
+ Subject: 'Communication.subject',
23
+ /** Recipient identifier(s); CSV allowed. */
24
+ Recipient: 'Communication.recipient',
25
+ /** Sender identifier. */
26
+ Sender: 'Communication.sender',
27
+ /** Sent timestamp (ISO 8601 DateTime). */
28
+ Sent: 'Communication.sent',
29
+ /** Human note text for the communication context. */
30
+ NoteText: 'Communication.note-text',
31
+ /** Communication topic code (`system|code`). */
32
+ Topic: 'Communication.topic',
33
+ /** Narrative text (short summary or body). */
34
+ Text: 'Communication.text',
35
+ /** Related resource references; CSV allowed. */
36
+ ContentReference: 'Communication.content-reference',
37
+ /** Content code (`system|code`) when payload is coded. */
38
+ ContentCode: 'Communication.content-code',
39
+ /**
40
+ * Base64 encoded payload for attachment-based communication flows.
41
+ *
42
+ * Recommended lifecycle:
43
+ * - maintain the editable Bundle as object in memory
44
+ * - edit one active entry at a time (`fullUrl`, `resource`, `request`, ...)
45
+ * - re-serialize Bundle JSON to this claim after each save/update
46
+ * - treat this claim as derived data (never manual source of truth)
47
+ */
48
+ ContentAttachmentData: 'Communication.content-attachment-data',
49
+ /** Attachment MIME type (`application/fhir+json`, `application/pdf`, ...). */
50
+ ContentAttachmentType: 'Communication.content-attachment-type',
51
+ /** Attachment title for UI/readability contexts. */
52
+ ContentAttachmentTitle: 'Communication.content-attachment-title',
53
+ /** External attachment URL when payload is not embedded. */
54
+ ContentAttachmentUrl: 'Communication.content-attachment-url',
55
+ /** Parent communication thread/reference (`Communication.part-of`). */
56
+ PartOf: 'Communication.part-of'
57
+ };
@@ -0,0 +1,27 @@
1
+ export declare const CompositionClaim: {
2
+ readonly Subject: "Composition.subject";
3
+ readonly Section: "Composition.section";
4
+ readonly Author: "Composition.author";
5
+ /** CSV of Composition.attester.party references, aligned with AttesterMode and AttesterTime. */
6
+ readonly Attester: "Composition.attester";
7
+ /** CSV of required R4 Composition.attester.mode values, one per attester. */
8
+ readonly AttesterMode: "Composition.attester-mode";
9
+ /** CSV of optional R4 Composition.attester.time values, positionally aligned with AttesterMode. */
10
+ readonly AttesterTime: "Composition.attester-time";
11
+ /** Composition.custodian Organization reference. */
12
+ readonly Custodian: "Composition.custodian";
13
+ readonly Date: "Composition.date";
14
+ readonly Entry: "Composition.entry";
15
+ readonly Type: "Composition.type";
16
+ readonly Identifier: "Composition.identifier";
17
+ readonly Title: "Composition.title";
18
+ };
19
+ /** Canonical FHIR R4 Composition.attester.mode codes. */
20
+ export declare const CompositionAttesterModes: Readonly<{
21
+ readonly Personal: "personal";
22
+ readonly Professional: "professional";
23
+ readonly Legal: "legal";
24
+ readonly Official: "official";
25
+ }>;
26
+ export type CompositionAttesterMode = typeof CompositionAttesterModes[keyof typeof CompositionAttesterModes];
27
+ export type CompositionClaimKey = typeof CompositionClaim[keyof typeof CompositionClaim];