phenoml 17.0.1 → 17.2.0

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 (109) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +15 -10
  4. package/dist/cjs/api/resources/fhir2Omop/client/Client.d.ts +123 -0
  5. package/dist/cjs/api/resources/fhir2Omop/client/Client.js +211 -0
  6. package/dist/cjs/api/resources/fhir2Omop/client/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/fhir2Omop/client/index.js +17 -0
  8. package/dist/cjs/api/resources/fhir2Omop/client/requests/CreateOmopRequest.d.ts +76 -0
  9. package/dist/cjs/api/resources/fhir2Omop/client/requests/CreateOmopRequest.js +3 -0
  10. package/dist/cjs/api/resources/fhir2Omop/client/requests/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/fhir2Omop/client/requests/index.js +2 -0
  12. package/dist/cjs/api/resources/fhir2Omop/errors/BadRequestError.d.ts +5 -0
  13. package/dist/cjs/api/resources/fhir2Omop/errors/BadRequestError.js +54 -0
  14. package/dist/cjs/api/resources/fhir2Omop/errors/InternalServerError.d.ts +5 -0
  15. package/dist/cjs/api/resources/fhir2Omop/errors/InternalServerError.js +54 -0
  16. package/dist/cjs/api/resources/fhir2Omop/errors/UnauthorizedError.d.ts +5 -0
  17. package/dist/cjs/api/resources/fhir2Omop/errors/UnauthorizedError.js +54 -0
  18. package/dist/cjs/api/resources/fhir2Omop/errors/index.d.ts +3 -0
  19. package/dist/cjs/api/resources/fhir2Omop/errors/index.js +19 -0
  20. package/dist/cjs/api/resources/fhir2Omop/exports.d.ts +2 -0
  21. package/dist/cjs/api/resources/fhir2Omop/exports.js +21 -0
  22. package/dist/cjs/api/resources/fhir2Omop/index.d.ts +3 -0
  23. package/dist/cjs/api/resources/fhir2Omop/index.js +19 -0
  24. package/dist/cjs/api/resources/fhir2Omop/types/ConditionOccurrenceRow.d.ts +12 -0
  25. package/dist/cjs/api/resources/fhir2Omop/types/ConditionOccurrenceRow.js +3 -0
  26. package/dist/cjs/api/resources/fhir2Omop/types/CreateOmopResponse.d.ts +17 -0
  27. package/dist/cjs/api/resources/fhir2Omop/types/CreateOmopResponse.js +3 -0
  28. package/dist/cjs/api/resources/fhir2Omop/types/DroppedResource.d.ts +5 -0
  29. package/dist/cjs/api/resources/fhir2Omop/types/DroppedResource.js +3 -0
  30. package/dist/cjs/api/resources/fhir2Omop/types/DrugExposureRow.d.ts +13 -0
  31. package/dist/cjs/api/resources/fhir2Omop/types/DrugExposureRow.js +3 -0
  32. package/dist/cjs/api/resources/fhir2Omop/types/MappingReportEntry.d.ts +32 -0
  33. package/dist/cjs/api/resources/fhir2Omop/types/MappingReportEntry.js +3 -0
  34. package/dist/cjs/api/resources/fhir2Omop/types/MeasurementRow.d.ts +17 -0
  35. package/dist/cjs/api/resources/fhir2Omop/types/MeasurementRow.js +3 -0
  36. package/dist/cjs/api/resources/fhir2Omop/types/ObservationRow.d.ts +16 -0
  37. package/dist/cjs/api/resources/fhir2Omop/types/ObservationRow.js +3 -0
  38. package/dist/cjs/api/resources/fhir2Omop/types/OmopTables.d.ts +13 -0
  39. package/dist/cjs/api/resources/fhir2Omop/types/OmopTables.js +3 -0
  40. package/dist/cjs/api/resources/fhir2Omop/types/PersonRow.d.ts +14 -0
  41. package/dist/cjs/api/resources/fhir2Omop/types/PersonRow.js +3 -0
  42. package/dist/cjs/api/resources/fhir2Omop/types/ProcedureOccurrenceRow.d.ts +10 -0
  43. package/dist/cjs/api/resources/fhir2Omop/types/ProcedureOccurrenceRow.js +3 -0
  44. package/dist/cjs/api/resources/fhir2Omop/types/ScanSummary.d.ts +41 -0
  45. package/dist/cjs/api/resources/fhir2Omop/types/ScanSummary.js +3 -0
  46. package/dist/cjs/api/resources/fhir2Omop/types/VisitOccurrenceRow.d.ts +11 -0
  47. package/dist/cjs/api/resources/fhir2Omop/types/VisitOccurrenceRow.js +3 -0
  48. package/dist/cjs/api/resources/fhir2Omop/types/index.d.ts +12 -0
  49. package/dist/cjs/api/resources/fhir2Omop/types/index.js +28 -0
  50. package/dist/cjs/api/resources/index.d.ts +1 -0
  51. package/dist/cjs/api/resources/index.js +2 -1
  52. package/dist/cjs/version.d.ts +1 -1
  53. package/dist/cjs/version.js +1 -1
  54. package/dist/esm/BaseClient.mjs +2 -2
  55. package/dist/esm/Client.d.mts +3 -0
  56. package/dist/esm/Client.mjs +5 -0
  57. package/dist/esm/api/resources/fhir2Omop/client/Client.d.mts +123 -0
  58. package/dist/esm/api/resources/fhir2Omop/client/Client.mjs +174 -0
  59. package/dist/esm/api/resources/fhir2Omop/client/index.d.mts +1 -0
  60. package/dist/esm/api/resources/fhir2Omop/client/index.mjs +1 -0
  61. package/dist/esm/api/resources/fhir2Omop/client/requests/CreateOmopRequest.d.mts +76 -0
  62. package/dist/esm/api/resources/fhir2Omop/client/requests/CreateOmopRequest.mjs +2 -0
  63. package/dist/esm/api/resources/fhir2Omop/client/requests/index.d.mts +1 -0
  64. package/dist/esm/api/resources/fhir2Omop/client/requests/index.mjs +1 -0
  65. package/dist/esm/api/resources/fhir2Omop/errors/BadRequestError.d.mts +5 -0
  66. package/dist/esm/api/resources/fhir2Omop/errors/BadRequestError.mjs +17 -0
  67. package/dist/esm/api/resources/fhir2Omop/errors/InternalServerError.d.mts +5 -0
  68. package/dist/esm/api/resources/fhir2Omop/errors/InternalServerError.mjs +17 -0
  69. package/dist/esm/api/resources/fhir2Omop/errors/UnauthorizedError.d.mts +5 -0
  70. package/dist/esm/api/resources/fhir2Omop/errors/UnauthorizedError.mjs +17 -0
  71. package/dist/esm/api/resources/fhir2Omop/errors/index.d.mts +3 -0
  72. package/dist/esm/api/resources/fhir2Omop/errors/index.mjs +3 -0
  73. package/dist/esm/api/resources/fhir2Omop/exports.d.mts +2 -0
  74. package/dist/esm/api/resources/fhir2Omop/exports.mjs +3 -0
  75. package/dist/esm/api/resources/fhir2Omop/index.d.mts +3 -0
  76. package/dist/esm/api/resources/fhir2Omop/index.mjs +3 -0
  77. package/dist/esm/api/resources/fhir2Omop/types/ConditionOccurrenceRow.d.mts +12 -0
  78. package/dist/esm/api/resources/fhir2Omop/types/ConditionOccurrenceRow.mjs +2 -0
  79. package/dist/esm/api/resources/fhir2Omop/types/CreateOmopResponse.d.mts +17 -0
  80. package/dist/esm/api/resources/fhir2Omop/types/CreateOmopResponse.mjs +2 -0
  81. package/dist/esm/api/resources/fhir2Omop/types/DroppedResource.d.mts +5 -0
  82. package/dist/esm/api/resources/fhir2Omop/types/DroppedResource.mjs +2 -0
  83. package/dist/esm/api/resources/fhir2Omop/types/DrugExposureRow.d.mts +13 -0
  84. package/dist/esm/api/resources/fhir2Omop/types/DrugExposureRow.mjs +2 -0
  85. package/dist/esm/api/resources/fhir2Omop/types/MappingReportEntry.d.mts +32 -0
  86. package/dist/esm/api/resources/fhir2Omop/types/MappingReportEntry.mjs +2 -0
  87. package/dist/esm/api/resources/fhir2Omop/types/MeasurementRow.d.mts +17 -0
  88. package/dist/esm/api/resources/fhir2Omop/types/MeasurementRow.mjs +2 -0
  89. package/dist/esm/api/resources/fhir2Omop/types/ObservationRow.d.mts +16 -0
  90. package/dist/esm/api/resources/fhir2Omop/types/ObservationRow.mjs +2 -0
  91. package/dist/esm/api/resources/fhir2Omop/types/OmopTables.d.mts +13 -0
  92. package/dist/esm/api/resources/fhir2Omop/types/OmopTables.mjs +2 -0
  93. package/dist/esm/api/resources/fhir2Omop/types/PersonRow.d.mts +14 -0
  94. package/dist/esm/api/resources/fhir2Omop/types/PersonRow.mjs +2 -0
  95. package/dist/esm/api/resources/fhir2Omop/types/ProcedureOccurrenceRow.d.mts +10 -0
  96. package/dist/esm/api/resources/fhir2Omop/types/ProcedureOccurrenceRow.mjs +2 -0
  97. package/dist/esm/api/resources/fhir2Omop/types/ScanSummary.d.mts +41 -0
  98. package/dist/esm/api/resources/fhir2Omop/types/ScanSummary.mjs +2 -0
  99. package/dist/esm/api/resources/fhir2Omop/types/VisitOccurrenceRow.d.mts +11 -0
  100. package/dist/esm/api/resources/fhir2Omop/types/VisitOccurrenceRow.mjs +2 -0
  101. package/dist/esm/api/resources/fhir2Omop/types/index.d.mts +12 -0
  102. package/dist/esm/api/resources/fhir2Omop/types/index.mjs +12 -0
  103. package/dist/esm/api/resources/index.d.mts +1 -0
  104. package/dist/esm/api/resources/index.mjs +1 -0
  105. package/dist/esm/version.d.mts +1 -1
  106. package/dist/esm/version.mjs +1 -1
  107. package/openapi/openapi.json +844 -1
  108. package/package.json +15 -4
  109. package/reference.md +159 -0
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,13 @@
1
+ import type * as phenoml from "../../../index.mjs";
2
+ /**
3
+ * OMOP CDM v5.4 rows grouped by destination table.
4
+ */
5
+ export interface OmopTables {
6
+ person?: phenoml.fhir2Omop.PersonRow[] | undefined;
7
+ visit_occurrence?: phenoml.fhir2Omop.VisitOccurrenceRow[] | undefined;
8
+ condition_occurrence?: phenoml.fhir2Omop.ConditionOccurrenceRow[] | undefined;
9
+ drug_exposure?: phenoml.fhir2Omop.DrugExposureRow[] | undefined;
10
+ procedure_occurrence?: phenoml.fhir2Omop.ProcedureOccurrenceRow[] | undefined;
11
+ measurement?: phenoml.fhir2Omop.MeasurementRow[] | undefined;
12
+ observation?: phenoml.fhir2Omop.ObservationRow[] | undefined;
13
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,14 @@
1
+ export interface PersonRow {
2
+ person_id?: number | undefined;
3
+ gender_concept_id?: number | undefined;
4
+ year_of_birth?: number | undefined;
5
+ month_of_birth?: number | undefined;
6
+ day_of_birth?: number | undefined;
7
+ birth_datetime?: string | undefined;
8
+ race_concept_id?: number | undefined;
9
+ ethnicity_concept_id?: number | undefined;
10
+ person_source_value?: string | undefined;
11
+ gender_source_value?: string | undefined;
12
+ race_source_value?: string | undefined;
13
+ ethnicity_source_value?: string | undefined;
14
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ export interface ProcedureOccurrenceRow {
2
+ procedure_occurrence_id?: number | undefined;
3
+ person_id?: number | undefined;
4
+ procedure_concept_id?: number | undefined;
5
+ procedure_date?: string | undefined;
6
+ procedure_datetime?: string | undefined;
7
+ procedure_type_concept_id?: number | undefined;
8
+ procedure_source_value?: string | undefined;
9
+ procedure_source_concept_id?: number | undefined;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,41 @@
1
+ import type * as phenoml from "../../../index.mjs";
2
+ /**
3
+ * White Rabbit-style aggregate profile of the mapping request.
4
+ */
5
+ export interface ScanSummary {
6
+ total_resources?: number | undefined;
7
+ resource_counts?: Record<string, number> | undefined;
8
+ tables_populated?: Record<string, number> | undefined;
9
+ coding_systems?: Record<string, number> | undefined;
10
+ codes_already_standard?: number | undefined;
11
+ codes_normalized?: number | undefined;
12
+ codes_unmapped?: number | undefined;
13
+ off_vocab_rate?: number | undefined;
14
+ dropped_resources?: phenoml.fhir2Omop.DroppedResource[] | undefined;
15
+ /**
16
+ * OMOP vocabulary release the resolver mapped against (e.g. "v20240229").
17
+ * Resolved mode only; empty when no coded concept reached the service.
18
+ */
19
+ resolved_vocab_version?: string | undefined;
20
+ /**
21
+ * Set when concept resolution was degraded — the resolver was unavailable
22
+ * for one or more codings, whose `concept_id`s fell back to the structural
23
+ * (construe) tier. Empty when resolution was clean.
24
+ */
25
+ concept_resolver_note?: string | undefined;
26
+ /**
27
+ * Count of `concept_id`s chosen via the lower-confidence UMLS-CUI bridge
28
+ * (no direct OMOP crosswalk existed). Resolved mode only.
29
+ */
30
+ concepts_bridged?: number | undefined;
31
+ /**
32
+ * Count of codings whose candidate list the resolver capped, so the best
33
+ * concept may not have been among those returned.
34
+ */
35
+ concept_candidates_truncated?: number | undefined;
36
+ /**
37
+ * Count of codings resolved via the construe ML extractor — the text-only
38
+ * or availability fallback path. A non-zero value bills the construe tier.
39
+ */
40
+ construe_resolutions?: number | undefined;
41
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,11 @@
1
+ export interface VisitOccurrenceRow {
2
+ visit_occurrence_id?: number | undefined;
3
+ person_id?: number | undefined;
4
+ visit_concept_id?: number | undefined;
5
+ visit_start_date?: string | undefined;
6
+ visit_start_datetime?: string | undefined;
7
+ visit_end_date?: string | undefined;
8
+ visit_end_datetime?: string | undefined;
9
+ visit_type_concept_id?: number | undefined;
10
+ visit_source_value?: string | undefined;
11
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,12 @@
1
+ export * from "./ConditionOccurrenceRow.mjs";
2
+ export * from "./CreateOmopResponse.mjs";
3
+ export * from "./DroppedResource.mjs";
4
+ export * from "./DrugExposureRow.mjs";
5
+ export * from "./MappingReportEntry.mjs";
6
+ export * from "./MeasurementRow.mjs";
7
+ export * from "./ObservationRow.mjs";
8
+ export * from "./OmopTables.mjs";
9
+ export * from "./PersonRow.mjs";
10
+ export * from "./ProcedureOccurrenceRow.mjs";
11
+ export * from "./ScanSummary.mjs";
12
+ export * from "./VisitOccurrenceRow.mjs";
@@ -0,0 +1,12 @@
1
+ export * from "./ConditionOccurrenceRow.mjs";
2
+ export * from "./CreateOmopResponse.mjs";
3
+ export * from "./DroppedResource.mjs";
4
+ export * from "./DrugExposureRow.mjs";
5
+ export * from "./MappingReportEntry.mjs";
6
+ export * from "./MeasurementRow.mjs";
7
+ export * from "./ObservationRow.mjs";
8
+ export * from "./OmopTables.mjs";
9
+ export * from "./PersonRow.mjs";
10
+ export * from "./ProcedureOccurrenceRow.mjs";
11
+ export * from "./ScanSummary.mjs";
12
+ export * from "./VisitOccurrenceRow.mjs";
@@ -3,6 +3,7 @@ export * as authtoken from "./authtoken/index.mjs";
3
3
  export * as cohort from "./cohort/index.mjs";
4
4
  export * as construe from "./construe/index.mjs";
5
5
  export * as fhir from "./fhir/index.mjs";
6
+ export * as fhir2Omop from "./fhir2Omop/index.mjs";
6
7
  export * as fhirProvider from "./fhirProvider/index.mjs";
7
8
  export * as lang2Fhir from "./lang2Fhir/index.mjs";
8
9
  export * as summary from "./summary/index.mjs";
@@ -3,6 +3,7 @@ export * as authtoken from "./authtoken/index.mjs";
3
3
  export * as cohort from "./cohort/index.mjs";
4
4
  export * as construe from "./construe/index.mjs";
5
5
  export * as fhir from "./fhir/index.mjs";
6
+ export * as fhir2Omop from "./fhir2Omop/index.mjs";
6
7
  export * as fhirProvider from "./fhirProvider/index.mjs";
7
8
  export * as lang2Fhir from "./lang2Fhir/index.mjs";
8
9
  export * as summary from "./summary/index.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "17.0.1";
1
+ export declare const SDK_VERSION = "17.2.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "17.0.1";
1
+ export const SDK_VERSION = "17.2.0";