@digitalmedika/satusehat 0.1.0 → 0.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 (50) hide show
  1. package/README.md +118 -2
  2. package/dist/builders/chest-xray-study-builder.d.ts +16 -0
  3. package/dist/builders/encounter-builder.d.ts +124 -0
  4. package/dist/builders/risk-assessment-builder.d.ts +39 -0
  5. package/dist/builders/service-request-imaging-study-diagnostic-report-builder.d.ts +49 -0
  6. package/dist/client/create-client.d.ts +1 -0
  7. package/dist/client/transport.d.ts +9 -0
  8. package/dist/core/types.d.ts +160 -0
  9. package/dist/endpoints/allergy-intolerance.d.ts +720 -0
  10. package/dist/endpoints/clinical-impression.d.ts +530 -0
  11. package/dist/endpoints/composition.d.ts +3 -0
  12. package/dist/endpoints/condition.d.ts +195 -195
  13. package/dist/endpoints/diagnostic-report.d.ts +70 -70
  14. package/dist/endpoints/dicom-router.d.ts +6 -0
  15. package/dist/endpoints/encounter.d.ts +156 -115
  16. package/dist/endpoints/imaging-study.d.ts +790 -0
  17. package/dist/endpoints/location.d.ts +30 -30
  18. package/dist/endpoints/medication-administration.d.ts +910 -0
  19. package/dist/endpoints/medication-request.d.ts +260 -260
  20. package/dist/endpoints/nutrition-order.d.ts +1510 -0
  21. package/dist/endpoints/observation.d.ts +230 -230
  22. package/dist/endpoints/organization.d.ts +20 -20
  23. package/dist/endpoints/practitioner-role.d.ts +25 -25
  24. package/dist/endpoints/procedure.d.ts +215 -215
  25. package/dist/endpoints/questionnaire-response.d.ts +195 -0
  26. package/dist/endpoints/risk-assessment.d.ts +770 -0
  27. package/dist/endpoints/service-request.d.ts +190 -190
  28. package/dist/endpoints/specimen.d.ts +105 -105
  29. package/dist/index.d.ts +19 -3
  30. package/dist/index.js +13 -1
  31. package/dist/schemas/allergy-intolerance.d.ts +4148 -0
  32. package/dist/schemas/clinical-impression.d.ts +2666 -0
  33. package/dist/schemas/composition.d.ts +2914 -0
  34. package/dist/schemas/condition.d.ts +476 -476
  35. package/dist/schemas/diagnostic-report.d.ts +172 -172
  36. package/dist/schemas/encounter.d.ts +1124 -564
  37. package/dist/schemas/imaging-study.d.ts +4609 -0
  38. package/dist/schemas/location.d.ts +72 -72
  39. package/dist/schemas/medication-administration.d.ts +5420 -0
  40. package/dist/schemas/medication-request.d.ts +1083 -1083
  41. package/dist/schemas/nutrition-order.d.ts +12261 -0
  42. package/dist/schemas/observation.d.ts +598 -598
  43. package/dist/schemas/organization.d.ts +60 -60
  44. package/dist/schemas/practitioner-role.d.ts +60 -60
  45. package/dist/schemas/procedure.d.ts +536 -536
  46. package/dist/schemas/questionnaire-response.d.ts +939 -0
  47. package/dist/schemas/risk-assessment.d.ts +4591 -0
  48. package/dist/schemas/service-request.d.ts +470 -470
  49. package/dist/schemas/specimen.d.ts +312 -312
  50. package/package.json +8 -1
@@ -437,6 +437,12 @@ export declare const LocationBaseSchema: z.ZodObject<{
437
437
  text?: string | undefined;
438
438
  }[] | undefined;
439
439
  mode?: "instance" | "kind" | undefined;
440
+ description?: string | undefined;
441
+ endpoint?: {
442
+ reference: string;
443
+ type?: string | undefined;
444
+ display?: string | undefined;
445
+ }[] | undefined;
440
446
  partOf?: {
441
447
  reference: string;
442
448
  type?: string | undefined;
@@ -447,7 +453,6 @@ export declare const LocationBaseSchema: z.ZodObject<{
447
453
  system?: "phone" | "fax" | "email" | "pager" | "url" | "sms" | "other" | undefined;
448
454
  use?: "home" | "work" | "temp" | "old" | "mobile" | undefined;
449
455
  }[] | undefined;
450
- description?: string | undefined;
451
456
  physicalType?: {
452
457
  coding: {
453
458
  code: string;
@@ -479,11 +484,6 @@ export declare const LocationBaseSchema: z.ZodObject<{
479
484
  } | undefined;
480
485
  } | undefined;
481
486
  availabilityExceptions?: string | undefined;
482
- endpoint?: {
483
- reference: string;
484
- type?: string | undefined;
485
- display?: string | undefined;
486
- }[] | undefined;
487
487
  alias?: string[] | undefined;
488
488
  operationalStatus?: {
489
489
  code?: string | undefined;
@@ -524,6 +524,12 @@ export declare const LocationBaseSchema: z.ZodObject<{
524
524
  text?: string | undefined;
525
525
  }[] | undefined;
526
526
  mode?: "instance" | "kind" | undefined;
527
+ description?: string | undefined;
528
+ endpoint?: {
529
+ reference: string;
530
+ type?: string | undefined;
531
+ display?: string | undefined;
532
+ }[] | undefined;
527
533
  partOf?: {
528
534
  reference: string;
529
535
  type?: string | undefined;
@@ -534,7 +540,6 @@ export declare const LocationBaseSchema: z.ZodObject<{
534
540
  system?: "phone" | "fax" | "email" | "pager" | "url" | "sms" | "other" | undefined;
535
541
  use?: "home" | "work" | "temp" | "old" | "mobile" | undefined;
536
542
  }[] | undefined;
537
- description?: string | undefined;
538
543
  physicalType?: {
539
544
  coding: {
540
545
  code: string;
@@ -566,11 +571,6 @@ export declare const LocationBaseSchema: z.ZodObject<{
566
571
  } | undefined;
567
572
  } | undefined;
568
573
  availabilityExceptions?: string | undefined;
569
- endpoint?: {
570
- reference: string;
571
- type?: string | undefined;
572
- display?: string | undefined;
573
- }[] | undefined;
574
574
  alias?: string[] | undefined;
575
575
  operationalStatus?: {
576
576
  code?: string | undefined;
@@ -878,6 +878,12 @@ export declare const LocationCreateSchema: z.ZodObject<{
878
878
  text?: string | undefined;
879
879
  }[] | undefined;
880
880
  mode?: "instance" | "kind" | undefined;
881
+ description?: string | undefined;
882
+ endpoint?: {
883
+ reference: string;
884
+ type?: string | undefined;
885
+ display?: string | undefined;
886
+ }[] | undefined;
881
887
  partOf?: {
882
888
  reference: string;
883
889
  type?: string | undefined;
@@ -888,7 +894,6 @@ export declare const LocationCreateSchema: z.ZodObject<{
888
894
  system?: "phone" | "fax" | "email" | "pager" | "url" | "sms" | "other" | undefined;
889
895
  use?: "home" | "work" | "temp" | "old" | "mobile" | undefined;
890
896
  }[] | undefined;
891
- description?: string | undefined;
892
897
  physicalType?: {
893
898
  coding: {
894
899
  code: string;
@@ -920,11 +925,6 @@ export declare const LocationCreateSchema: z.ZodObject<{
920
925
  } | undefined;
921
926
  } | undefined;
922
927
  availabilityExceptions?: string | undefined;
923
- endpoint?: {
924
- reference: string;
925
- type?: string | undefined;
926
- display?: string | undefined;
927
- }[] | undefined;
928
928
  alias?: string[] | undefined;
929
929
  operationalStatus?: {
930
930
  code?: string | undefined;
@@ -965,6 +965,12 @@ export declare const LocationCreateSchema: z.ZodObject<{
965
965
  text?: string | undefined;
966
966
  }[] | undefined;
967
967
  mode?: "instance" | "kind" | undefined;
968
+ description?: string | undefined;
969
+ endpoint?: {
970
+ reference: string;
971
+ type?: string | undefined;
972
+ display?: string | undefined;
973
+ }[] | undefined;
968
974
  partOf?: {
969
975
  reference: string;
970
976
  type?: string | undefined;
@@ -975,7 +981,6 @@ export declare const LocationCreateSchema: z.ZodObject<{
975
981
  system?: "phone" | "fax" | "email" | "pager" | "url" | "sms" | "other" | undefined;
976
982
  use?: "home" | "work" | "temp" | "old" | "mobile" | undefined;
977
983
  }[] | undefined;
978
- description?: string | undefined;
979
984
  physicalType?: {
980
985
  coding: {
981
986
  code: string;
@@ -1007,11 +1012,6 @@ export declare const LocationCreateSchema: z.ZodObject<{
1007
1012
  } | undefined;
1008
1013
  } | undefined;
1009
1014
  availabilityExceptions?: string | undefined;
1010
- endpoint?: {
1011
- reference: string;
1012
- type?: string | undefined;
1013
- display?: string | undefined;
1014
- }[] | undefined;
1015
1015
  alias?: string[] | undefined;
1016
1016
  operationalStatus?: {
1017
1017
  code?: string | undefined;
@@ -1340,6 +1340,12 @@ export declare const LocationSchema: z.ZodObject<{
1340
1340
  profile?: string[] | undefined;
1341
1341
  versionId?: string | undefined;
1342
1342
  } | undefined;
1343
+ description?: string | undefined;
1344
+ endpoint?: {
1345
+ reference: string;
1346
+ type?: string | undefined;
1347
+ display?: string | undefined;
1348
+ }[] | undefined;
1343
1349
  partOf?: {
1344
1350
  reference: string;
1345
1351
  type?: string | undefined;
@@ -1350,7 +1356,6 @@ export declare const LocationSchema: z.ZodObject<{
1350
1356
  system?: "phone" | "fax" | "email" | "pager" | "url" | "sms" | "other" | undefined;
1351
1357
  use?: "home" | "work" | "temp" | "old" | "mobile" | undefined;
1352
1358
  }[] | undefined;
1353
- description?: string | undefined;
1354
1359
  physicalType?: {
1355
1360
  coding: {
1356
1361
  code: string;
@@ -1382,11 +1387,6 @@ export declare const LocationSchema: z.ZodObject<{
1382
1387
  } | undefined;
1383
1388
  } | undefined;
1384
1389
  availabilityExceptions?: string | undefined;
1385
- endpoint?: {
1386
- reference: string;
1387
- type?: string | undefined;
1388
- display?: string | undefined;
1389
- }[] | undefined;
1390
1390
  alias?: string[] | undefined;
1391
1391
  operationalStatus?: {
1392
1392
  code?: string | undefined;
@@ -1433,6 +1433,12 @@ export declare const LocationSchema: z.ZodObject<{
1433
1433
  profile?: string[] | undefined;
1434
1434
  versionId?: string | undefined;
1435
1435
  } | undefined;
1436
+ description?: string | undefined;
1437
+ endpoint?: {
1438
+ reference: string;
1439
+ type?: string | undefined;
1440
+ display?: string | undefined;
1441
+ }[] | undefined;
1436
1442
  partOf?: {
1437
1443
  reference: string;
1438
1444
  type?: string | undefined;
@@ -1443,7 +1449,6 @@ export declare const LocationSchema: z.ZodObject<{
1443
1449
  system?: "phone" | "fax" | "email" | "pager" | "url" | "sms" | "other" | undefined;
1444
1450
  use?: "home" | "work" | "temp" | "old" | "mobile" | undefined;
1445
1451
  }[] | undefined;
1446
- description?: string | undefined;
1447
1452
  physicalType?: {
1448
1453
  coding: {
1449
1454
  code: string;
@@ -1475,11 +1480,6 @@ export declare const LocationSchema: z.ZodObject<{
1475
1480
  } | undefined;
1476
1481
  } | undefined;
1477
1482
  availabilityExceptions?: string | undefined;
1478
- endpoint?: {
1479
- reference: string;
1480
- type?: string | undefined;
1481
- display?: string | undefined;
1482
- }[] | undefined;
1483
1483
  alias?: string[] | undefined;
1484
1484
  operationalStatus?: {
1485
1485
  code?: string | undefined;
@@ -1831,6 +1831,12 @@ export declare const LocationBundleSchema: z.ZodObject<{
1831
1831
  profile?: string[] | undefined;
1832
1832
  versionId?: string | undefined;
1833
1833
  } | undefined;
1834
+ description?: string | undefined;
1835
+ endpoint?: {
1836
+ reference: string;
1837
+ type?: string | undefined;
1838
+ display?: string | undefined;
1839
+ }[] | undefined;
1834
1840
  partOf?: {
1835
1841
  reference: string;
1836
1842
  type?: string | undefined;
@@ -1841,7 +1847,6 @@ export declare const LocationBundleSchema: z.ZodObject<{
1841
1847
  system?: "phone" | "fax" | "email" | "pager" | "url" | "sms" | "other" | undefined;
1842
1848
  use?: "home" | "work" | "temp" | "old" | "mobile" | undefined;
1843
1849
  }[] | undefined;
1844
- description?: string | undefined;
1845
1850
  physicalType?: {
1846
1851
  coding: {
1847
1852
  code: string;
@@ -1873,11 +1878,6 @@ export declare const LocationBundleSchema: z.ZodObject<{
1873
1878
  } | undefined;
1874
1879
  } | undefined;
1875
1880
  availabilityExceptions?: string | undefined;
1876
- endpoint?: {
1877
- reference: string;
1878
- type?: string | undefined;
1879
- display?: string | undefined;
1880
- }[] | undefined;
1881
1881
  alias?: string[] | undefined;
1882
1882
  operationalStatus?: {
1883
1883
  code?: string | undefined;
@@ -1924,6 +1924,12 @@ export declare const LocationBundleSchema: z.ZodObject<{
1924
1924
  profile?: string[] | undefined;
1925
1925
  versionId?: string | undefined;
1926
1926
  } | undefined;
1927
+ description?: string | undefined;
1928
+ endpoint?: {
1929
+ reference: string;
1930
+ type?: string | undefined;
1931
+ display?: string | undefined;
1932
+ }[] | undefined;
1927
1933
  partOf?: {
1928
1934
  reference: string;
1929
1935
  type?: string | undefined;
@@ -1934,7 +1940,6 @@ export declare const LocationBundleSchema: z.ZodObject<{
1934
1940
  system?: "phone" | "fax" | "email" | "pager" | "url" | "sms" | "other" | undefined;
1935
1941
  use?: "home" | "work" | "temp" | "old" | "mobile" | undefined;
1936
1942
  }[] | undefined;
1937
- description?: string | undefined;
1938
1943
  physicalType?: {
1939
1944
  coding: {
1940
1945
  code: string;
@@ -1966,11 +1971,6 @@ export declare const LocationBundleSchema: z.ZodObject<{
1966
1971
  } | undefined;
1967
1972
  } | undefined;
1968
1973
  availabilityExceptions?: string | undefined;
1969
- endpoint?: {
1970
- reference: string;
1971
- type?: string | undefined;
1972
- display?: string | undefined;
1973
- }[] | undefined;
1974
1974
  alias?: string[] | undefined;
1975
1975
  operationalStatus?: {
1976
1976
  code?: string | undefined;
@@ -2026,6 +2026,12 @@ export declare const LocationBundleSchema: z.ZodObject<{
2026
2026
  profile?: string[] | undefined;
2027
2027
  versionId?: string | undefined;
2028
2028
  } | undefined;
2029
+ description?: string | undefined;
2030
+ endpoint?: {
2031
+ reference: string;
2032
+ type?: string | undefined;
2033
+ display?: string | undefined;
2034
+ }[] | undefined;
2029
2035
  partOf?: {
2030
2036
  reference: string;
2031
2037
  type?: string | undefined;
@@ -2036,7 +2042,6 @@ export declare const LocationBundleSchema: z.ZodObject<{
2036
2042
  system?: "phone" | "fax" | "email" | "pager" | "url" | "sms" | "other" | undefined;
2037
2043
  use?: "home" | "work" | "temp" | "old" | "mobile" | undefined;
2038
2044
  }[] | undefined;
2039
- description?: string | undefined;
2040
2045
  physicalType?: {
2041
2046
  coding: {
2042
2047
  code: string;
@@ -2068,11 +2073,6 @@ export declare const LocationBundleSchema: z.ZodObject<{
2068
2073
  } | undefined;
2069
2074
  } | undefined;
2070
2075
  availabilityExceptions?: string | undefined;
2071
- endpoint?: {
2072
- reference: string;
2073
- type?: string | undefined;
2074
- display?: string | undefined;
2075
- }[] | undefined;
2076
2076
  alias?: string[] | undefined;
2077
2077
  operationalStatus?: {
2078
2078
  code?: string | undefined;
@@ -2125,6 +2125,12 @@ export declare const LocationBundleSchema: z.ZodObject<{
2125
2125
  profile?: string[] | undefined;
2126
2126
  versionId?: string | undefined;
2127
2127
  } | undefined;
2128
+ description?: string | undefined;
2129
+ endpoint?: {
2130
+ reference: string;
2131
+ type?: string | undefined;
2132
+ display?: string | undefined;
2133
+ }[] | undefined;
2128
2134
  partOf?: {
2129
2135
  reference: string;
2130
2136
  type?: string | undefined;
@@ -2135,7 +2141,6 @@ export declare const LocationBundleSchema: z.ZodObject<{
2135
2141
  system?: "phone" | "fax" | "email" | "pager" | "url" | "sms" | "other" | undefined;
2136
2142
  use?: "home" | "work" | "temp" | "old" | "mobile" | undefined;
2137
2143
  }[] | undefined;
2138
- description?: string | undefined;
2139
2144
  physicalType?: {
2140
2145
  coding: {
2141
2146
  code: string;
@@ -2167,11 +2172,6 @@ export declare const LocationBundleSchema: z.ZodObject<{
2167
2172
  } | undefined;
2168
2173
  } | undefined;
2169
2174
  availabilityExceptions?: string | undefined;
2170
- endpoint?: {
2171
- reference: string;
2172
- type?: string | undefined;
2173
- display?: string | undefined;
2174
- }[] | undefined;
2175
2175
  alias?: string[] | undefined;
2176
2176
  operationalStatus?: {
2177
2177
  code?: string | undefined;
@@ -2233,6 +2233,12 @@ export declare const LocationBundleSchema: z.ZodObject<{
2233
2233
  profile?: string[] | undefined;
2234
2234
  versionId?: string | undefined;
2235
2235
  } | undefined;
2236
+ description?: string | undefined;
2237
+ endpoint?: {
2238
+ reference: string;
2239
+ type?: string | undefined;
2240
+ display?: string | undefined;
2241
+ }[] | undefined;
2236
2242
  partOf?: {
2237
2243
  reference: string;
2238
2244
  type?: string | undefined;
@@ -2243,7 +2249,6 @@ export declare const LocationBundleSchema: z.ZodObject<{
2243
2249
  system?: "phone" | "fax" | "email" | "pager" | "url" | "sms" | "other" | undefined;
2244
2250
  use?: "home" | "work" | "temp" | "old" | "mobile" | undefined;
2245
2251
  }[] | undefined;
2246
- description?: string | undefined;
2247
2252
  physicalType?: {
2248
2253
  coding: {
2249
2254
  code: string;
@@ -2275,11 +2280,6 @@ export declare const LocationBundleSchema: z.ZodObject<{
2275
2280
  } | undefined;
2276
2281
  } | undefined;
2277
2282
  availabilityExceptions?: string | undefined;
2278
- endpoint?: {
2279
- reference: string;
2280
- type?: string | undefined;
2281
- display?: string | undefined;
2282
- }[] | undefined;
2283
2283
  alias?: string[] | undefined;
2284
2284
  operationalStatus?: {
2285
2285
  code?: string | undefined;
@@ -2341,6 +2341,12 @@ export declare const LocationBundleSchema: z.ZodObject<{
2341
2341
  profile?: string[] | undefined;
2342
2342
  versionId?: string | undefined;
2343
2343
  } | undefined;
2344
+ description?: string | undefined;
2345
+ endpoint?: {
2346
+ reference: string;
2347
+ type?: string | undefined;
2348
+ display?: string | undefined;
2349
+ }[] | undefined;
2344
2350
  partOf?: {
2345
2351
  reference: string;
2346
2352
  type?: string | undefined;
@@ -2351,7 +2357,6 @@ export declare const LocationBundleSchema: z.ZodObject<{
2351
2357
  system?: "phone" | "fax" | "email" | "pager" | "url" | "sms" | "other" | undefined;
2352
2358
  use?: "home" | "work" | "temp" | "old" | "mobile" | undefined;
2353
2359
  }[] | undefined;
2354
- description?: string | undefined;
2355
2360
  physicalType?: {
2356
2361
  coding: {
2357
2362
  code: string;
@@ -2383,11 +2388,6 @@ export declare const LocationBundleSchema: z.ZodObject<{
2383
2388
  } | undefined;
2384
2389
  } | undefined;
2385
2390
  availabilityExceptions?: string | undefined;
2386
- endpoint?: {
2387
- reference: string;
2388
- type?: string | undefined;
2389
- display?: string | undefined;
2390
- }[] | undefined;
2391
2391
  alias?: string[] | undefined;
2392
2392
  operationalStatus?: {
2393
2393
  code?: string | undefined;