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,539 @@
1
+ import type { ClaimSpec } from './claim-types.js';
2
+ /** Canonical FHIR R5 code system for `MedicationStatement.adherence.code`. */
3
+ export declare const MEDICATION_STATEMENT_ADHERENCE_CODE_SYSTEM: "http://hl7.org/fhir/CodeSystem/medication-statement-adherence";
4
+ /**
5
+ * Codes published by the FHIR R5 Medication Statement Adherence value set.
6
+ *
7
+ * The FHIR binding strength is `example`, so applications must accept other
8
+ * valid Coding values even when these helpers cover the published code system.
9
+ */
10
+ export declare const MedicationStatementAdherenceCodes: {
11
+ readonly Taking: "taking";
12
+ readonly TakingAsDirected: "taking-as-directed";
13
+ readonly TakingNotAsDirected: "taking-not-as-directed";
14
+ readonly NotTaking: "not-taking";
15
+ readonly OnHold: "on-hold";
16
+ readonly OnHoldAsDirected: "on-hold-as-directed";
17
+ readonly OnHoldNotAsDirected: "on-hold-not-as-directed";
18
+ readonly Stopped: "stopped";
19
+ readonly StoppedAsDirected: "stopped-as-directed";
20
+ readonly StoppedNotAsDirected: "stopped-not-as-directed";
21
+ readonly Unknown: "unknown";
22
+ };
23
+ export type MedicationStatementAdherenceCode = typeof MedicationStatementAdherenceCodes[keyof typeof MedicationStatementAdherenceCodes];
24
+ /**
25
+ * Canonical flat claim keys for the lightweight `MedicationStatement.*` mapping
26
+ * used by shared examples, GW ingestion, and converter roundtrip tests.
27
+ */
28
+ export declare const MedicationStatementClaim: {
29
+ readonly Identifier: "MedicationStatement.identifier";
30
+ readonly Subject: "MedicationStatement.subject";
31
+ readonly Patient: "MedicationStatement.patient";
32
+ readonly Status: "MedicationStatement.status";
33
+ readonly Category: "MedicationStatement.category";
34
+ readonly Effective: "MedicationStatement.effective";
35
+ /**
36
+ * Start of FHIR R4 `effectivePeriod`; mutually exclusive with `Effective`.
37
+ * @see https://hl7.org/fhir/R4/medicationstatement.html
38
+ */
39
+ readonly EffectivePeriodStart: "MedicationStatement.effective-period-start";
40
+ /**
41
+ * End of FHIR R4 `effectivePeriod`; mutually exclusive with `Effective`.
42
+ * @see https://hl7.org/fhir/R4/medicationstatement.html
43
+ */
44
+ readonly EffectivePeriodEnd: "MedicationStatement.effective-period-end";
45
+ /** Official token SearchParameter `code`; maps to the medication concept, not a root FHIR element. */
46
+ readonly Code: "MedicationStatement.code";
47
+ /** Local/manual `CodeableConcept.text` companion for the medication concept. */
48
+ readonly CodeText: "MedicationStatement.code-text";
49
+ /** Readable alias for frontend authors; the emitted claim remains `MedicationStatement.code-text`. */
50
+ readonly CodeTextLocal: "MedicationStatement.code-text";
51
+ /** Terminology `Coding.display` companion for the medication concept. */
52
+ readonly CodeDisplay: "MedicationStatement.code-display";
53
+ /** Official reference SearchParameter; maps to `medication.reference`. */
54
+ readonly Medication: "MedicationStatement.medication";
55
+ readonly PartOf: "MedicationStatement.part-of";
56
+ readonly Source: "MedicationStatement.source";
57
+ /** @deprecated Use `CodeText`; retained only for historical payload readback. */
58
+ readonly MedicationText: "MedicationStatement.medication-text";
59
+ /** Official R5 token SearchParameter; its FHIRPath expression targets the adherence CodeableConcept. */
60
+ readonly Adherence: "MedicationStatement.adherence";
61
+ /** Local/manual CodeableConcept.text companion for the official `adherence` token. */
62
+ readonly AdherenceText: "MedicationStatement.adherence-text";
63
+ /** Terminology Coding.display companion for the official `adherence` token. */
64
+ readonly AdherenceDisplay: "MedicationStatement.adherence-display";
65
+ readonly UserSelected: "MedicationStatement.user-selected";
66
+ /**
67
+ * Free-text clinical note.
68
+ *
69
+ * Use this for human-readable instructions or remarks that may be authored
70
+ * in any language, for example "take after meals" or "take as needed".
71
+ *
72
+ * For a dosage sentence such as "1 tablet every 8 hours", prefer
73
+ * `DosageInstruction`. For structured timing/PRN semantics, prefer the
74
+ * contextualized FHIR-style fields in `MedicationStatementClaimsFhirApiExtended`
75
+ * such as `DosageAsNeeded`, `TimingFrequency`, `TimingPeriod`,
76
+ * `TimingPeriodUnit`, and `DosagePatientInstructionText`.
77
+ */
78
+ readonly Note: "MedicationStatement.note";
79
+ /**
80
+ * Canonical CSV/list of related contained resource references or identifiers.
81
+ *
82
+ * Values may be:
83
+ * - `urn:uuid:*`
84
+ * - `ResourceType/urn:uuid:*`
85
+ * - another canonical local resource reference used inside the same bundle
86
+ */
87
+ readonly ContainedReferenceList: "MedicationStatement.contained-reference-list";
88
+ /**
89
+ * @deprecated Use `ContainedReferenceList`.
90
+ */
91
+ readonly ContainedResourceList: "MedicationStatement.contained-resource-list";
92
+ /**
93
+ * @deprecated Use `ContainedReferenceList`.
94
+ */
95
+ readonly ContainedDocuments: "MedicationStatement.contained-documents";
96
+ /**
97
+ * @deprecated Use `ContainedDocuments`.
98
+ */
99
+ readonly AttachmentContentIds: "MedicationStatement.attachment-content-ids";
100
+ /**
101
+ * Human-readable dosage text, for example "1 tablet every 8 hours".
102
+ *
103
+ * This is the short flat claim to use when frontend or ingestion code needs
104
+ * one sentence without expanding the full timing model.
105
+ */
106
+ readonly DosageInstruction: "MedicationStatement.dosage-instruction";
107
+ readonly MedicationIdentifier: "MedicationStatement.medication-identifier";
108
+ readonly MedicationSerialNumber: "MedicationStatement.medication-serial-number";
109
+ readonly MedicationExpirationDate: "MedicationStatement.medication-expiration-date";
110
+ readonly DoseQuantityValue: "MedicationStatement.dose-quantity-value";
111
+ readonly DoseQuantityUnit: "MedicationStatement.dose-quantity-unit";
112
+ readonly DosageRoute: "MedicationStatement.dosage-route";
113
+ readonly TimingFrequency: "MedicationStatement.timing-frequency";
114
+ readonly TimingPeriod: "MedicationStatement.timing-period";
115
+ readonly TimingPeriodUnit: "MedicationStatement.timing-period-unit";
116
+ };
117
+ export type MedicationStatementClaimKey = typeof MedicationStatementClaim[keyof typeof MedicationStatementClaim];
118
+ export declare const MedicationStatementClaimSpecs: ClaimSpec[];
119
+ /**
120
+ * Flat claims contract for MedicationStatement using FHIR API-like search params.
121
+ *
122
+ * Convention:
123
+ * - Key format: `org.hl7.fhir.api.MedicationStatement.<concrete-parameter>`
124
+ * - `<concrete-parameter>` in kebab-case (no nested dots).
125
+ * - Keep values scalar/string-friendly so they can be persisted as tabular columns.
126
+ */
127
+ /**
128
+ * Standard FHIR search parameters for MedicationStatement.
129
+ * @basedon https://hl7.org/fhir/medicationstatement.html#search
130
+ */
131
+ export declare enum MedicationStatementClaimsFhirApi {
132
+ Adherence = "org.hl7.fhir.api.MedicationStatement.adherence",
133
+ Category = "org.hl7.fhir.api.MedicationStatement.category",
134
+ Code = "org.hl7.fhir.api.MedicationStatement.code",
135
+ Effective = "org.hl7.fhir.api.MedicationStatement.effective",
136
+ Identifier = "org.hl7.fhir.api.MedicationStatement.identifier",
137
+ Medication = "org.hl7.fhir.api.MedicationStatement.medication",
138
+ PartOf = "org.hl7.fhir.api.MedicationStatement.part-of",
139
+ Patient = "org.hl7.fhir.api.MedicationStatement.patient",
140
+ Source = "org.hl7.fhir.api.MedicationStatement.source",
141
+ Status = "org.hl7.fhir.api.MedicationStatement.status",
142
+ Subject = "org.hl7.fhir.api.MedicationStatement.subject"
143
+ }
144
+ /**
145
+ * Extended flat parameters used for dosage/timing and operational indexing.
146
+ * These are intentionally scalarized to map cleanly to SQL columns.
147
+ */
148
+ export declare enum MedicationStatementClaimsFhirApiExtended {
149
+ Adherence = "org.hl7.fhir.api.MedicationStatement.adherence",
150
+ AdherenceText = "org.hl7.fhir.api.MedicationStatement.adherence-text",
151
+ AdherenceDisplay = "org.hl7.fhir.api.MedicationStatement.adherence-display",
152
+ CodeText = "org.hl7.fhir.api.MedicationStatement.code-text",
153
+ CodeDisplay = "org.hl7.fhir.api.MedicationStatement.code-display",
154
+ Category = "org.hl7.fhir.api.MedicationStatement.category",
155
+ Code = "org.hl7.fhir.api.MedicationStatement.code",
156
+ Effective = "org.hl7.fhir.api.MedicationStatement.effective",
157
+ Identifier = "org.hl7.fhir.api.MedicationStatement.identifier",
158
+ Medication = "org.hl7.fhir.api.MedicationStatement.medication",
159
+ PartOf = "org.hl7.fhir.api.MedicationStatement.part-of",
160
+ Patient = "org.hl7.fhir.api.MedicationStatement.patient",
161
+ Source = "org.hl7.fhir.api.MedicationStatement.source",
162
+ Status = "org.hl7.fhir.api.MedicationStatement.status",
163
+ Subject = "org.hl7.fhir.api.MedicationStatement.subject",
164
+ DoseQuantity = "org.hl7.fhir.api.MedicationStatement.dose-quantity",
165
+ DoseQuantityValue = "org.hl7.fhir.api.MedicationStatement.dose-quantity-value",
166
+ DoseQuantityUnit = "org.hl7.fhir.api.MedicationStatement.dose-quantity-unit",
167
+ RateQuantity = "org.hl7.fhir.api.MedicationStatement.rate-quantity",
168
+ RateQuantityValue = "org.hl7.fhir.api.MedicationStatement.rate-quantity-value",
169
+ RateQuantityUnit = "org.hl7.fhir.api.MedicationStatement.rate-quantity-unit",
170
+ RateRangeLowQuantity = "org.hl7.fhir.api.MedicationStatement.rate-range-low-quantity",
171
+ RateRangeLowQuantityValue = "org.hl7.fhir.api.MedicationStatement.rate-range-low-quantity-value",
172
+ RateRangeLowQuantityUnit = "org.hl7.fhir.api.MedicationStatement.rate-range-low-quantity-unit",
173
+ RateRangeHighQuantity = "org.hl7.fhir.api.MedicationStatement.rate-range-high-quantity",
174
+ RateRangeHighQuantityValue = "org.hl7.fhir.api.MedicationStatement.rate-range-high-quantity-value",
175
+ RateRangeHighQuantityUnit = "org.hl7.fhir.api.MedicationStatement.rate-range-high-quantity-unit",
176
+ RateRatioNumeratorQuantity = "org.hl7.fhir.api.MedicationStatement.rate-ratio-numerator-quantity",
177
+ RateRatioNumeratorQuantityValue = "org.hl7.fhir.api.MedicationStatement.rate-ratio-numerator-quantity-value",
178
+ RateRatioNumeratorQuantityUnit = "org.hl7.fhir.api.MedicationStatement.rate-ratio-numerator-quantity-unit",
179
+ RateDenominatorQuantity = "org.hl7.fhir.api.MedicationStatement.rate-denominator-quantity",
180
+ RateDenominatorQuantityValue = "org.hl7.fhir.api.MedicationStatement.rate-denominator-quantity-value",
181
+ RateDenominatorQuantityUnit = "org.hl7.fhir.api.MedicationStatement.rate-denominator-quantity-unit",
182
+ DoseType = "org.hl7.fhir.api.MedicationStatement.dose-type",
183
+ DosageMethod = "org.hl7.fhir.api.MedicationStatement.dosage-method",
184
+ DosageMethodText = "org.hl7.fhir.api.MedicationStatement.dosage-method-text",
185
+ DosageRoute = "org.hl7.fhir.api.MedicationStatement.dosage-route",
186
+ DosageRouteText = "org.hl7.fhir.api.MedicationStatement.dosage-route-text",
187
+ DosageSite = "org.hl7.fhir.api.MedicationStatement.dosage-site",
188
+ DosageSiteText = "org.hl7.fhir.api.MedicationStatement.dosage-site-text",
189
+ DosageCondition = "org.hl7.fhir.api.MedicationStatement.dosage-condition",
190
+ DosageAsNeeded = "org.hl7.fhir.api.MedicationStatement.dosage-asneeded",
191
+ DosagePatientInstructionText = "org.hl7.fhir.api.MedicationStatement.dosage-patientinstruction-text",
192
+ DoseMaxPerPeriod = "org.hl7.fhir.api.MedicationStatement.dose-maxperperiod",
193
+ DoseMaxPerAdministration = "org.hl7.fhir.api.MedicationStatement.dose-maxperadministration",
194
+ DoseMaxPerLifetime = "org.hl7.fhir.api.MedicationStatement.dose-maxperlifetime",
195
+ TimingDescription = "org.hl7.fhir.api.MedicationStatement.timing-description",
196
+ TimingCount = "org.hl7.fhir.api.MedicationStatement.timing-count",
197
+ TimingCountMax = "org.hl7.fhir.api.MedicationStatement.timing-countmax",
198
+ TimingDuration = "org.hl7.fhir.api.MedicationStatement.timing-duration",
199
+ TimingDurationMax = "org.hl7.fhir.api.MedicationStatement.timing-durationmax",
200
+ TimingDurationUnit = "org.hl7.fhir.api.MedicationStatement.timing-duration-unit",
201
+ TimingFrequency = "org.hl7.fhir.api.MedicationStatement.timing-frequency",
202
+ TimingFrequencyMax = "org.hl7.fhir.api.MedicationStatement.timing-frequencymax",
203
+ TimingPeriod = "org.hl7.fhir.api.MedicationStatement.timing-period",
204
+ TimingPeriodMax = "org.hl7.fhir.api.MedicationStatement.timing-periodmax",
205
+ TimingPeriodUnit = "org.hl7.fhir.api.MedicationStatement.timing-period-unit",
206
+ TimingDayOfWeek = "org.hl7.fhir.api.MedicationStatement.timing-dayofweek",
207
+ TimingTimeOfDay = "org.hl7.fhir.api.MedicationStatement.timing-timeofday",
208
+ TimingWhen = "org.hl7.fhir.api.MedicationStatement.timing-when",
209
+ TimingOffset = "org.hl7.fhir.api.MedicationStatement.timing-offset",
210
+ TimingStartOffset = "org.hl7.fhir.api.MedicationStatement.timing-startoffset",
211
+ TimingEndOffset = "org.hl7.fhir.api.MedicationStatement.timing-endoffset",
212
+ TimingBoundsType = "org.hl7.fhir.api.MedicationStatement.timing-bounds-type",
213
+ TimingBoundsPeriodStart = "org.hl7.fhir.api.MedicationStatement.timing-bounds-period-start",
214
+ TimingBoundsPeriodEnd = "org.hl7.fhir.api.MedicationStatement.timing-bounds-period-end",
215
+ TimingBoundsDuration = "org.hl7.fhir.api.MedicationStatement.timing-bounds-duration",
216
+ TimingBoundsDurationValue = "org.hl7.fhir.api.MedicationStatement.timing-bounds-duration-value",
217
+ TimingBoundsDurationUnit = "org.hl7.fhir.api.MedicationStatement.timing-bounds-duration-unit",
218
+ TimingBoundsRangeLow = "org.hl7.fhir.api.MedicationStatement.timing-bounds-range-low",
219
+ TimingBoundsRangeLowValue = "org.hl7.fhir.api.MedicationStatement.timing-bounds-range-low-value",
220
+ TimingBoundsRangeLowUnit = "org.hl7.fhir.api.MedicationStatement.timing-bounds-range-low-unit",
221
+ TimingBoundsRangeHigh = "org.hl7.fhir.api.MedicationStatement.timing-bounds-range-high",
222
+ TimingBoundsRangeHighValue = "org.hl7.fhir.api.MedicationStatement.timing-bounds-range-high-value",
223
+ TimingBoundsRangeHighUnit = "org.hl7.fhir.api.MedicationStatement.timing-bounds-range-high-unit"
224
+ }
225
+ /**
226
+ * Canonical FHIR-style search parameter names for MedicationStatement.
227
+ * These names are intentionally not contextualized so they can be reused
228
+ * by query builders and frontend filters.
229
+ */
230
+ export declare const MedicationStatementSearchParamNames: {
231
+ readonly Adherence: "adherence";
232
+ readonly Category: "category";
233
+ readonly Code: "code";
234
+ readonly Effective: "effective";
235
+ readonly Identifier: "identifier";
236
+ readonly Medication: "medication";
237
+ readonly PartOf: "part-of";
238
+ readonly Patient: "patient";
239
+ readonly Source: "source";
240
+ readonly Status: "status";
241
+ readonly Subject: "subject";
242
+ readonly DoseQuantity: "dose-quantity";
243
+ readonly DoseQuantityValue: "dose-quantity-value";
244
+ readonly DoseQuantityUnit: "dose-quantity-unit";
245
+ readonly RateQuantity: "rate-quantity";
246
+ readonly RateQuantityValue: "rate-quantity-value";
247
+ readonly RateQuantityUnit: "rate-quantity-unit";
248
+ readonly RateRangeLowQuantity: "rate-range-low-quantity";
249
+ readonly RateRangeLowQuantityValue: "rate-range-low-quantity-value";
250
+ readonly RateRangeLowQuantityUnit: "rate-range-low-quantity-unit";
251
+ readonly RateRangeHighQuantity: "rate-range-high-quantity";
252
+ readonly RateRangeHighQuantityValue: "rate-range-high-quantity-value";
253
+ readonly RateRangeHighQuantityUnit: "rate-range-high-quantity-unit";
254
+ readonly RateRatioNumeratorQuantity: "rate-ratio-numerator-quantity";
255
+ readonly RateRatioNumeratorQuantityValue: "rate-ratio-numerator-quantity-value";
256
+ readonly RateRatioNumeratorQuantityUnit: "rate-ratio-numerator-quantity-unit";
257
+ readonly RateDenominatorQuantity: "rate-denominator-quantity";
258
+ readonly RateDenominatorQuantityValue: "rate-denominator-quantity-value";
259
+ readonly RateDenominatorQuantityUnit: "rate-denominator-quantity-unit";
260
+ readonly DoseType: "dose-type";
261
+ readonly DosageMethod: "dosage-method";
262
+ readonly DosageMethodText: "dosage-method-text";
263
+ readonly DosageRoute: "dosage-route";
264
+ readonly DosageRouteText: "dosage-route-text";
265
+ readonly DosageSite: "dosage-site";
266
+ readonly DosageSiteText: "dosage-site-text";
267
+ readonly DosageCondition: "dosage-condition";
268
+ readonly DosageAsNeeded: "dosage-asneeded";
269
+ readonly DosagePatientInstructionText: "dosage-patientinstruction-text";
270
+ readonly DoseMaxPerPeriod: "dose-maxperperiod";
271
+ readonly DoseMaxPerAdministration: "dose-maxperadministration";
272
+ readonly DoseMaxPerLifetime: "dose-maxperlifetime";
273
+ readonly TimingDescription: "timing-description";
274
+ readonly TimingCount: "timing-count";
275
+ readonly TimingCountMax: "timing-countmax";
276
+ readonly TimingDuration: "timing-duration";
277
+ readonly TimingDurationMax: "timing-durationmax";
278
+ readonly TimingDurationUnit: "timing-duration-unit";
279
+ readonly TimingFrequency: "timing-frequency";
280
+ readonly TimingFrequencyMax: "timing-frequencymax";
281
+ readonly TimingPeriod: "timing-period";
282
+ readonly TimingPeriodMax: "timing-periodmax";
283
+ readonly TimingPeriodUnit: "timing-period-unit";
284
+ readonly TimingDayOfWeek: "timing-dayofweek";
285
+ readonly TimingTimeOfDay: "timing-timeofday";
286
+ readonly TimingWhen: "timing-when";
287
+ readonly TimingOffset: "timing-offset";
288
+ readonly TimingStartOffset: "timing-startoffset";
289
+ readonly TimingEndOffset: "timing-endoffset";
290
+ readonly TimingBoundsType: "timing-bounds-type";
291
+ readonly TimingBoundsPeriodStart: "timing-bounds-period-start";
292
+ readonly TimingBoundsPeriodEnd: "timing-bounds-period-end";
293
+ readonly TimingBoundsDuration: "timing-bounds-duration";
294
+ readonly TimingBoundsDurationValue: "timing-bounds-duration-value";
295
+ readonly TimingBoundsDurationUnit: "timing-bounds-duration-unit";
296
+ readonly TimingBoundsRangeLow: "timing-bounds-range-low";
297
+ readonly TimingBoundsRangeLowValue: "timing-bounds-range-low-value";
298
+ readonly TimingBoundsRangeLowUnit: "timing-bounds-range-low-unit";
299
+ readonly TimingBoundsRangeHigh: "timing-bounds-range-high";
300
+ readonly TimingBoundsRangeHighValue: "timing-bounds-range-high-value";
301
+ readonly TimingBoundsRangeHighUnit: "timing-bounds-range-high-unit";
302
+ };
303
+ export type MedicationStatementSearchParamName = typeof MedicationStatementSearchParamNames[keyof typeof MedicationStatementSearchParamNames];
304
+ export declare const MedicationStatementSearchParamToClaimKey: Record<MedicationStatementSearchParamName, MedicationStatementClaimsFhirApi | MedicationStatementClaimsFhirApiExtended>;
305
+ export declare const MedicationStatementClaimsFhirApiMap: {
306
+ "org.hl7.fhir.api.MedicationStatement.adherence": StringConstructor;
307
+ "org.hl7.fhir.api.MedicationStatement.category": StringConstructor;
308
+ "org.hl7.fhir.api.MedicationStatement.code": StringConstructor;
309
+ "org.hl7.fhir.api.MedicationStatement.effective": StringConstructor;
310
+ "org.hl7.fhir.api.MedicationStatement.identifier": StringConstructor;
311
+ "org.hl7.fhir.api.MedicationStatement.medication": StringConstructor;
312
+ "org.hl7.fhir.api.MedicationStatement.part-of": StringConstructor;
313
+ "org.hl7.fhir.api.MedicationStatement.patient": StringConstructor;
314
+ "org.hl7.fhir.api.MedicationStatement.source": StringConstructor;
315
+ "org.hl7.fhir.api.MedicationStatement.status": StringConstructor;
316
+ "org.hl7.fhir.api.MedicationStatement.subject": StringConstructor;
317
+ };
318
+ export declare const MedicationStatementClaimsFhirApiExtendedMap: {
319
+ "org.hl7.fhir.api.MedicationStatement.adherence-text": StringConstructor;
320
+ "org.hl7.fhir.api.MedicationStatement.adherence-display": StringConstructor;
321
+ "org.hl7.fhir.api.MedicationStatement.code-text": StringConstructor;
322
+ "org.hl7.fhir.api.MedicationStatement.code-display": StringConstructor;
323
+ "org.hl7.fhir.api.MedicationStatement.dose-quantity": StringConstructor;
324
+ "org.hl7.fhir.api.MedicationStatement.dose-quantity-value": NumberConstructor;
325
+ "org.hl7.fhir.api.MedicationStatement.dose-quantity-unit": StringConstructor;
326
+ "org.hl7.fhir.api.MedicationStatement.rate-quantity": StringConstructor;
327
+ "org.hl7.fhir.api.MedicationStatement.rate-quantity-value": NumberConstructor;
328
+ "org.hl7.fhir.api.MedicationStatement.rate-quantity-unit": StringConstructor;
329
+ "org.hl7.fhir.api.MedicationStatement.rate-range-low-quantity": StringConstructor;
330
+ "org.hl7.fhir.api.MedicationStatement.rate-range-low-quantity-value": NumberConstructor;
331
+ "org.hl7.fhir.api.MedicationStatement.rate-range-low-quantity-unit": StringConstructor;
332
+ "org.hl7.fhir.api.MedicationStatement.rate-range-high-quantity": StringConstructor;
333
+ "org.hl7.fhir.api.MedicationStatement.rate-range-high-quantity-value": NumberConstructor;
334
+ "org.hl7.fhir.api.MedicationStatement.rate-range-high-quantity-unit": StringConstructor;
335
+ "org.hl7.fhir.api.MedicationStatement.rate-ratio-numerator-quantity": StringConstructor;
336
+ "org.hl7.fhir.api.MedicationStatement.rate-ratio-numerator-quantity-value": NumberConstructor;
337
+ "org.hl7.fhir.api.MedicationStatement.rate-ratio-numerator-quantity-unit": StringConstructor;
338
+ "org.hl7.fhir.api.MedicationStatement.rate-denominator-quantity": StringConstructor;
339
+ "org.hl7.fhir.api.MedicationStatement.rate-denominator-quantity-value": NumberConstructor;
340
+ "org.hl7.fhir.api.MedicationStatement.rate-denominator-quantity-unit": StringConstructor;
341
+ "org.hl7.fhir.api.MedicationStatement.dose-type": StringConstructor;
342
+ "org.hl7.fhir.api.MedicationStatement.dosage-method": StringConstructor;
343
+ "org.hl7.fhir.api.MedicationStatement.dosage-method-text": StringConstructor;
344
+ "org.hl7.fhir.api.MedicationStatement.dosage-route": StringConstructor;
345
+ "org.hl7.fhir.api.MedicationStatement.dosage-route-text": StringConstructor;
346
+ "org.hl7.fhir.api.MedicationStatement.dosage-site": StringConstructor;
347
+ "org.hl7.fhir.api.MedicationStatement.dosage-site-text": StringConstructor;
348
+ "org.hl7.fhir.api.MedicationStatement.dosage-condition": StringConstructor;
349
+ "org.hl7.fhir.api.MedicationStatement.dosage-asneeded": BooleanConstructor;
350
+ "org.hl7.fhir.api.MedicationStatement.dosage-patientinstruction-text": StringConstructor;
351
+ "org.hl7.fhir.api.MedicationStatement.dose-maxperperiod": StringConstructor;
352
+ "org.hl7.fhir.api.MedicationStatement.dose-maxperadministration": StringConstructor;
353
+ "org.hl7.fhir.api.MedicationStatement.dose-maxperlifetime": StringConstructor;
354
+ "org.hl7.fhir.api.MedicationStatement.timing-description": StringConstructor;
355
+ "org.hl7.fhir.api.MedicationStatement.timing-count": NumberConstructor;
356
+ "org.hl7.fhir.api.MedicationStatement.timing-countmax": NumberConstructor;
357
+ "org.hl7.fhir.api.MedicationStatement.timing-duration": NumberConstructor;
358
+ "org.hl7.fhir.api.MedicationStatement.timing-durationmax": NumberConstructor;
359
+ "org.hl7.fhir.api.MedicationStatement.timing-duration-unit": StringConstructor;
360
+ "org.hl7.fhir.api.MedicationStatement.timing-frequency": NumberConstructor;
361
+ "org.hl7.fhir.api.MedicationStatement.timing-frequencymax": NumberConstructor;
362
+ "org.hl7.fhir.api.MedicationStatement.timing-period": NumberConstructor;
363
+ "org.hl7.fhir.api.MedicationStatement.timing-periodmax": NumberConstructor;
364
+ "org.hl7.fhir.api.MedicationStatement.timing-period-unit": StringConstructor;
365
+ "org.hl7.fhir.api.MedicationStatement.timing-dayofweek": StringConstructor;
366
+ "org.hl7.fhir.api.MedicationStatement.timing-timeofday": StringConstructor;
367
+ "org.hl7.fhir.api.MedicationStatement.timing-when": StringConstructor;
368
+ "org.hl7.fhir.api.MedicationStatement.timing-offset": NumberConstructor;
369
+ "org.hl7.fhir.api.MedicationStatement.timing-startoffset": NumberConstructor;
370
+ "org.hl7.fhir.api.MedicationStatement.timing-endoffset": NumberConstructor;
371
+ "org.hl7.fhir.api.MedicationStatement.timing-bounds-type": StringConstructor;
372
+ "org.hl7.fhir.api.MedicationStatement.timing-bounds-period-start": StringConstructor;
373
+ "org.hl7.fhir.api.MedicationStatement.timing-bounds-period-end": StringConstructor;
374
+ "org.hl7.fhir.api.MedicationStatement.timing-bounds-duration": StringConstructor;
375
+ "org.hl7.fhir.api.MedicationStatement.timing-bounds-duration-value": NumberConstructor;
376
+ "org.hl7.fhir.api.MedicationStatement.timing-bounds-duration-unit": StringConstructor;
377
+ "org.hl7.fhir.api.MedicationStatement.timing-bounds-range-low": StringConstructor;
378
+ "org.hl7.fhir.api.MedicationStatement.timing-bounds-range-low-value": NumberConstructor;
379
+ "org.hl7.fhir.api.MedicationStatement.timing-bounds-range-low-unit": StringConstructor;
380
+ "org.hl7.fhir.api.MedicationStatement.timing-bounds-range-high": StringConstructor;
381
+ "org.hl7.fhir.api.MedicationStatement.timing-bounds-range-high-value": NumberConstructor;
382
+ "org.hl7.fhir.api.MedicationStatement.timing-bounds-range-high-unit": StringConstructor;
383
+ "org.hl7.fhir.api.MedicationStatement.adherence": StringConstructor;
384
+ "org.hl7.fhir.api.MedicationStatement.category": StringConstructor;
385
+ "org.hl7.fhir.api.MedicationStatement.code": StringConstructor;
386
+ "org.hl7.fhir.api.MedicationStatement.effective": StringConstructor;
387
+ "org.hl7.fhir.api.MedicationStatement.identifier": StringConstructor;
388
+ "org.hl7.fhir.api.MedicationStatement.medication": StringConstructor;
389
+ "org.hl7.fhir.api.MedicationStatement.part-of": StringConstructor;
390
+ "org.hl7.fhir.api.MedicationStatement.patient": StringConstructor;
391
+ "org.hl7.fhir.api.MedicationStatement.source": StringConstructor;
392
+ "org.hl7.fhir.api.MedicationStatement.status": StringConstructor;
393
+ "org.hl7.fhir.api.MedicationStatement.subject": StringConstructor;
394
+ };
395
+ /**
396
+ * Flat interface for `meta.claims` payload authoring.
397
+ * Values remain scalar (or CSV string for multi-value params) so they can map to SQL columns.
398
+ */
399
+ export interface MedicationStatementClaimsFlat {
400
+ '@context'?: 'org.hl7.fhir.api';
401
+ [MedicationStatementClaimsFhirApi.Adherence]?: string;
402
+ [MedicationStatementClaimsFhirApi.Category]?: string;
403
+ [MedicationStatementClaimsFhirApi.Code]?: string;
404
+ [MedicationStatementClaimsFhirApi.Effective]?: string;
405
+ [MedicationStatementClaimsFhirApi.Identifier]?: string;
406
+ [MedicationStatementClaimsFhirApi.Medication]?: string;
407
+ [MedicationStatementClaimsFhirApi.PartOf]?: string;
408
+ [MedicationStatementClaimsFhirApi.Patient]?: string;
409
+ [MedicationStatementClaimsFhirApi.Source]?: string;
410
+ [MedicationStatementClaimsFhirApi.Status]?: string;
411
+ [MedicationStatementClaimsFhirApi.Subject]?: string;
412
+ [MedicationStatementClaimsFhirApiExtended.AdherenceText]?: string;
413
+ [MedicationStatementClaimsFhirApiExtended.AdherenceDisplay]?: string;
414
+ [MedicationStatementClaimsFhirApiExtended.CodeText]?: string;
415
+ [MedicationStatementClaimsFhirApiExtended.CodeDisplay]?: string;
416
+ [MedicationStatementClaimsFhirApiExtended.DoseQuantity]?: string;
417
+ [MedicationStatementClaimsFhirApiExtended.DoseQuantityValue]?: number;
418
+ [MedicationStatementClaimsFhirApiExtended.DoseQuantityUnit]?: string;
419
+ [MedicationStatementClaimsFhirApiExtended.RateQuantity]?: string;
420
+ [MedicationStatementClaimsFhirApiExtended.DoseType]?: string;
421
+ [MedicationStatementClaimsFhirApiExtended.DosageMethod]?: string;
422
+ [MedicationStatementClaimsFhirApiExtended.DosageMethodText]?: string;
423
+ [MedicationStatementClaimsFhirApiExtended.DosageRoute]?: string;
424
+ [MedicationStatementClaimsFhirApiExtended.DosageRouteText]?: string;
425
+ [MedicationStatementClaimsFhirApiExtended.DosageSite]?: string;
426
+ [MedicationStatementClaimsFhirApiExtended.DosageSiteText]?: string;
427
+ [MedicationStatementClaimsFhirApiExtended.DosageCondition]?: string;
428
+ [MedicationStatementClaimsFhirApiExtended.DosageAsNeeded]?: boolean;
429
+ [MedicationStatementClaimsFhirApiExtended.DosagePatientInstructionText]?: string;
430
+ [MedicationStatementClaimsFhirApiExtended.TimingDescription]?: string;
431
+ [MedicationStatementClaimsFhirApiExtended.TimingDuration]?: number;
432
+ [MedicationStatementClaimsFhirApiExtended.TimingDurationUnit]?: string;
433
+ [MedicationStatementClaimsFhirApiExtended.TimingFrequency]?: number;
434
+ [MedicationStatementClaimsFhirApiExtended.TimingFrequencyMax]?: number;
435
+ [MedicationStatementClaimsFhirApiExtended.TimingPeriod]?: number;
436
+ [MedicationStatementClaimsFhirApiExtended.TimingPeriodUnit]?: string;
437
+ [MedicationStatementClaimsFhirApiExtended.TimingPeriodMax]?: number;
438
+ [MedicationStatementClaimsFhirApiExtended.TimingDayOfWeek]?: string;
439
+ [MedicationStatementClaimsFhirApiExtended.TimingTimeOfDay]?: string;
440
+ [MedicationStatementClaimsFhirApiExtended.TimingWhen]?: string;
441
+ [MedicationStatementClaimsFhirApiExtended.TimingOffset]?: number;
442
+ [MedicationStatementClaimsFhirApiExtended.TimingStartOffset]?: number;
443
+ [MedicationStatementClaimsFhirApiExtended.TimingEndOffset]?: number;
444
+ [MedicationStatementClaimsFhirApiExtended.TimingBoundsType]?: string;
445
+ [MedicationStatementClaimsFhirApiExtended.TimingBoundsPeriodStart]?: string;
446
+ [MedicationStatementClaimsFhirApiExtended.TimingBoundsPeriodEnd]?: string;
447
+ [MedicationStatementClaimsFhirApiExtended.TimingBoundsDuration]?: string;
448
+ [MedicationStatementClaimsFhirApiExtended.TimingBoundsDurationValue]?: number;
449
+ [MedicationStatementClaimsFhirApiExtended.TimingBoundsDurationUnit]?: string;
450
+ [MedicationStatementClaimsFhirApiExtended.TimingBoundsRangeLow]?: string;
451
+ [MedicationStatementClaimsFhirApiExtended.TimingBoundsRangeLowValue]?: number;
452
+ [MedicationStatementClaimsFhirApiExtended.TimingBoundsRangeLowUnit]?: string;
453
+ [MedicationStatementClaimsFhirApiExtended.TimingBoundsRangeHigh]?: string;
454
+ [MedicationStatementClaimsFhirApiExtended.TimingBoundsRangeHighValue]?: number;
455
+ [MedicationStatementClaimsFhirApiExtended.TimingBoundsRangeHighUnit]?: string;
456
+ }
457
+ /**
458
+ * Contextualized payload shape used by current `meta.claims` bodies:
459
+ * - `@context: org.hl7.fhir.api`
460
+ * - keys as `MedicationStatement.<concrete-parameter>`
461
+ */
462
+ export interface MedicationStatementClaimsContextualized {
463
+ '@context': 'org.hl7.fhir.api';
464
+ 'MedicationStatement.adherence'?: string;
465
+ 'MedicationStatement.adherence-text'?: string;
466
+ 'MedicationStatement.adherence-display'?: string;
467
+ 'MedicationStatement.category'?: string;
468
+ 'MedicationStatement.code'?: string;
469
+ 'MedicationStatement.code-text'?: string;
470
+ 'MedicationStatement.code-display'?: string;
471
+ 'MedicationStatement.effective'?: string;
472
+ 'MedicationStatement.identifier'?: string;
473
+ 'MedicationStatement.medication'?: string;
474
+ 'MedicationStatement.part-of'?: string;
475
+ 'MedicationStatement.patient'?: string;
476
+ 'MedicationStatement.source'?: string;
477
+ 'MedicationStatement.status'?: string;
478
+ 'MedicationStatement.subject'?: string;
479
+ 'MedicationStatement.dose-quantity'?: string;
480
+ 'MedicationStatement.dose-quantity-value'?: number;
481
+ 'MedicationStatement.dose-quantity-unit'?: string;
482
+ 'MedicationStatement.rate-quantity'?: string;
483
+ 'MedicationStatement.rate-quantity-value'?: number;
484
+ 'MedicationStatement.rate-quantity-unit'?: string;
485
+ 'MedicationStatement.rate-range-low-quantity'?: string;
486
+ 'MedicationStatement.rate-range-low-quantity-value'?: number;
487
+ 'MedicationStatement.rate-range-low-quantity-unit'?: string;
488
+ 'MedicationStatement.rate-range-high-quantity'?: string;
489
+ 'MedicationStatement.rate-range-high-quantity-value'?: number;
490
+ 'MedicationStatement.rate-range-high-quantity-unit'?: string;
491
+ 'MedicationStatement.rate-ratio-numerator-quantity'?: string;
492
+ 'MedicationStatement.rate-ratio-numerator-quantity-value'?: number;
493
+ 'MedicationStatement.rate-ratio-numerator-quantity-unit'?: string;
494
+ 'MedicationStatement.rate-denominator-quantity'?: string;
495
+ 'MedicationStatement.rate-denominator-quantity-value'?: number;
496
+ 'MedicationStatement.rate-denominator-quantity-unit'?: string;
497
+ 'MedicationStatement.dose-type'?: string;
498
+ 'MedicationStatement.dosage-method'?: string;
499
+ 'MedicationStatement.dosage-method-text'?: string;
500
+ 'MedicationStatement.dosage-route'?: string;
501
+ 'MedicationStatement.dosage-route-text'?: string;
502
+ 'MedicationStatement.dosage-site'?: string;
503
+ 'MedicationStatement.dosage-site-text'?: string;
504
+ 'MedicationStatement.dosage-condition'?: string;
505
+ 'MedicationStatement.dosage-asneeded'?: boolean;
506
+ 'MedicationStatement.dosage-patientinstruction-text'?: string;
507
+ 'MedicationStatement.dose-maxperperiod'?: string;
508
+ 'MedicationStatement.dose-maxperadministration'?: string;
509
+ 'MedicationStatement.dose-maxperlifetime'?: string;
510
+ 'MedicationStatement.timing-description'?: string;
511
+ 'MedicationStatement.timing-count'?: number;
512
+ 'MedicationStatement.timing-countmax'?: number;
513
+ 'MedicationStatement.timing-duration'?: number;
514
+ 'MedicationStatement.timing-durationmax'?: number;
515
+ 'MedicationStatement.timing-duration-unit'?: string;
516
+ 'MedicationStatement.timing-frequency'?: number;
517
+ 'MedicationStatement.timing-frequencymax'?: number;
518
+ 'MedicationStatement.timing-period'?: number;
519
+ 'MedicationStatement.timing-periodmax'?: number;
520
+ 'MedicationStatement.timing-period-unit'?: string;
521
+ 'MedicationStatement.timing-dayofweek'?: string;
522
+ 'MedicationStatement.timing-timeofday'?: string;
523
+ 'MedicationStatement.timing-when'?: string;
524
+ 'MedicationStatement.timing-offset'?: number;
525
+ 'MedicationStatement.timing-startoffset'?: number;
526
+ 'MedicationStatement.timing-endoffset'?: number;
527
+ 'MedicationStatement.timing-bounds-type'?: string;
528
+ 'MedicationStatement.timing-bounds-period-start'?: string;
529
+ 'MedicationStatement.timing-bounds-period-end'?: string;
530
+ 'MedicationStatement.timing-bounds-duration'?: string;
531
+ 'MedicationStatement.timing-bounds-duration-value'?: number;
532
+ 'MedicationStatement.timing-bounds-duration-unit'?: string;
533
+ 'MedicationStatement.timing-bounds-range-low'?: string;
534
+ 'MedicationStatement.timing-bounds-range-low-value'?: number;
535
+ 'MedicationStatement.timing-bounds-range-low-unit'?: string;
536
+ 'MedicationStatement.timing-bounds-range-high'?: string;
537
+ 'MedicationStatement.timing-bounds-range-high-value'?: number;
538
+ 'MedicationStatement.timing-bounds-range-high-unit'?: string;
539
+ }