@health-samurai/aidbox-client 0.0.0-alpha.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.
- package/README.md +137 -0
- package/dist/src/client.d.ts +25 -0
- package/dist/src/client.d.ts.map +1 -0
- package/dist/src/client.js +981 -0
- package/dist/src/fhir-http.d.ts +72 -0
- package/dist/src/fhir-http.d.ts.map +1 -0
- package/dist/src/fhir-http.js +1 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/BackboneElement.d.ts +5 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/BackboneElement.d.ts.map +1 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/BackboneElement.js +5 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Bundle.d.ts +53 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Bundle.d.ts.map +1 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Bundle.js +10 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/CodeableConcept.d.ts +10 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/CodeableConcept.d.ts.map +1 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/CodeableConcept.js +5 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Coding.d.ts +15 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Coding.d.ts.map +1 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Coding.js +5 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/DomainResource.d.ts +10 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/DomainResource.d.ts.map +1 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/DomainResource.js +10 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Element.d.ts +5 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Element.d.ts.map +1 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Element.js +5 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Identifier.d.ts +20 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Identifier.d.ts.map +1 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Identifier.js +5 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Meta.d.ts +17 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Meta.d.ts.map +1 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Meta.js +5 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Narrative.d.ts +9 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Narrative.d.ts.map +1 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Narrative.js +5 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/OperationOutcome.d.ts +19 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/OperationOutcome.d.ts.map +1 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/OperationOutcome.js +10 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Period.d.ts +9 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Period.d.ts.map +1 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Period.js +5 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Reference.d.ts +14 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Reference.d.ts.map +1 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Reference.js +5 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Resource.d.ts +14 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Resource.d.ts.map +1 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Resource.js +10 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Signature.d.ts +20 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Signature.d.ts.map +1 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/Signature.js +5 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/index.d.ts +19 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/index.d.ts.map +1 -0
- package/dist/src/fhir-types/hl7-fhir-r4-core/index.js +4 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +4 -0
- package/dist/src/result.d.ts +21 -0
- package/dist/src/result.d.ts.map +1 -0
- package/dist/src/result.js +36 -0
- package/dist/src/types.d.ts +100 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +155 -0
- package/dist/src/utils.d.ts +3 -0
- package/dist/src/utils.d.ts.map +1 -0
- package/dist/src/utils.js +215 -0
- package/dist/test/client.test.d.ts +2 -0
- package/dist/test/client.test.d.ts.map +1 -0
- package/dist/test/fhir-http.test.d.ts +2 -0
- package/dist/test/fhir-http.test.d.ts.map +1 -0
- package/dist/test/result.test.d.ts +2 -0
- package/dist/test/result.test.d.ts.map +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { Parameters } from "./types";
|
|
2
|
+
export type ReadOptions = {
|
|
3
|
+
type: string;
|
|
4
|
+
id: string;
|
|
5
|
+
};
|
|
6
|
+
export type VReadOptions = ReadOptions & {
|
|
7
|
+
vid: string;
|
|
8
|
+
};
|
|
9
|
+
export type SearchOptions = {
|
|
10
|
+
type?: string;
|
|
11
|
+
query: Parameters;
|
|
12
|
+
compartment?: string;
|
|
13
|
+
compartmentId?: string;
|
|
14
|
+
};
|
|
15
|
+
export type CreateOptions = {
|
|
16
|
+
type: string;
|
|
17
|
+
resource: object;
|
|
18
|
+
};
|
|
19
|
+
export type ConditionalCreateOptions = CreateOptions & {
|
|
20
|
+
searchParameters: Parameters;
|
|
21
|
+
};
|
|
22
|
+
export type UpdateOptions = CreateOptions & {
|
|
23
|
+
id: string;
|
|
24
|
+
};
|
|
25
|
+
export type ConditionalUpdateOptions = CreateOptions & {
|
|
26
|
+
searchParameters: Parameters;
|
|
27
|
+
};
|
|
28
|
+
export type PatchOptions = Omit<UpdateOptions, "resource"> & {
|
|
29
|
+
patch: object;
|
|
30
|
+
};
|
|
31
|
+
export type ConditionalPatchOptions = Omit<PatchOptions, "id"> & {
|
|
32
|
+
searchParameters: Parameters;
|
|
33
|
+
};
|
|
34
|
+
export type DeleteOptions = Omit<CreateOptions, "resource"> & {
|
|
35
|
+
id: string;
|
|
36
|
+
};
|
|
37
|
+
export type ConditionalDeleteOptions = Omit<DeleteOptions, "id" | "type"> & {
|
|
38
|
+
type?: string;
|
|
39
|
+
searchParameters: Parameters;
|
|
40
|
+
};
|
|
41
|
+
export type DeleteHistoryVersionOptions = Omit<UpdateOptions, "resource"> & {
|
|
42
|
+
vid: string;
|
|
43
|
+
};
|
|
44
|
+
export type HistoryOptions = {
|
|
45
|
+
type?: string;
|
|
46
|
+
id?: string;
|
|
47
|
+
};
|
|
48
|
+
export type OperationOptions = {
|
|
49
|
+
type: string;
|
|
50
|
+
id?: string;
|
|
51
|
+
operation: "$run" | "$validate";
|
|
52
|
+
resource: object;
|
|
53
|
+
};
|
|
54
|
+
export type ValidateOptions = Omit<OperationOptions, "operation">;
|
|
55
|
+
export type CapabilitiesOptions = {
|
|
56
|
+
mode: "full" | "normative" | "terminology";
|
|
57
|
+
};
|
|
58
|
+
type Bundle = Record<string, unknown>;
|
|
59
|
+
export type BatchOptions = {
|
|
60
|
+
format: string;
|
|
61
|
+
bundle: Bundle & {
|
|
62
|
+
type: "batch";
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export type TransactionOptions = {
|
|
66
|
+
format: string;
|
|
67
|
+
bundle: Bundle & {
|
|
68
|
+
type: "transaction";
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
export {};
|
|
72
|
+
//# sourceMappingURL=fhir-http.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fhir-http.d.ts","sourceRoot":"","sources":["../../src/fhir-http.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,M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AC;AAG3D,MAAM,WAAW,eAAgB,SAAQ,OAAO;CAC/C"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { BackboneElement } from "../hl7-fhir-r4-core/BackboneElement";
|
|
2
|
+
import type { Identifier } from "../hl7-fhir-r4-core/Identifier";
|
|
3
|
+
import type { Resource } from "../hl7-fhir-r4-core/Resource";
|
|
4
|
+
import type { Signature } from "../hl7-fhir-r4-core/Signature";
|
|
5
|
+
export type { BackboneElement } from "../hl7-fhir-r4-core/BackboneElement";
|
|
6
|
+
export type { Identifier } from "../hl7-fhir-r4-core/Identifier";
|
|
7
|
+
export type { Signature } from "../hl7-fhir-r4-core/Signature";
|
|
8
|
+
export interface BundleEntry extends BackboneElement {
|
|
9
|
+
fullUrl?: string;
|
|
10
|
+
link?: BundleLink[];
|
|
11
|
+
request?: BundleEntryRequest;
|
|
12
|
+
resource?: Resource;
|
|
13
|
+
response?: BundleEntryResponse;
|
|
14
|
+
search?: BundleEntrySearch;
|
|
15
|
+
}
|
|
16
|
+
export interface BundleEntryRequest extends BackboneElement {
|
|
17
|
+
ifMatch?: string;
|
|
18
|
+
ifModifiedSince?: string;
|
|
19
|
+
ifNoneExist?: string;
|
|
20
|
+
ifNoneMatch?: string;
|
|
21
|
+
method: ("GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "PATCH");
|
|
22
|
+
url: string;
|
|
23
|
+
}
|
|
24
|
+
export interface BundleEntryResponse extends BackboneElement {
|
|
25
|
+
etag?: string;
|
|
26
|
+
lastModified?: string;
|
|
27
|
+
location?: string;
|
|
28
|
+
outcome?: Resource;
|
|
29
|
+
status: string;
|
|
30
|
+
}
|
|
31
|
+
export interface BundleEntrySearch extends BackboneElement {
|
|
32
|
+
mode?: ("match" | "include" | "outcome");
|
|
33
|
+
score?: number;
|
|
34
|
+
}
|
|
35
|
+
export interface BundleLink extends BackboneElement {
|
|
36
|
+
relation: string;
|
|
37
|
+
url: string;
|
|
38
|
+
}
|
|
39
|
+
export interface Bundle extends Resource {
|
|
40
|
+
resourceType: "Bundle";
|
|
41
|
+
entry?: BundleEntry[];
|
|
42
|
+
identifier?: Identifier;
|
|
43
|
+
link?: BundleLink[];
|
|
44
|
+
signature?: Signature;
|
|
45
|
+
timestamp?: string;
|
|
46
|
+
_timestamp?: Element;
|
|
47
|
+
total?: number;
|
|
48
|
+
_total?: Element;
|
|
49
|
+
type: ("document" | "message" | "transaction" | "transaction-response" | "batch" | "batch-response" | "history" | "searchset" | "collection");
|
|
50
|
+
_type?: Element;
|
|
51
|
+
}
|
|
52
|
+
export declare const isBundle: (resource: unknown) => resource is Bundle;
|
|
53
|
+
//# sourceMappingURL=Bundle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bundle.d.ts","sourceRoot":"","sources":["../../../../src/fhir-types/hl7-fhir-r4-core/Bundle.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE/D,YAAY,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,YAAY,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACjE,YAAY,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE/D,MAAM,WAAW,WAAY,SAAQ,eAAe;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,UAAU,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AAED,MAAM,WAA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AO,GAAG,gBAAgB,GAAG,SAAS,GAAG,WAAW,GAAG,YAAY,CAAC,CAAC;IAC9I,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB;AACD,eAAO,MAAM,QAAQ,GAAI,UAAU,OAAO,KAAG,QAAQ,IAAI,MAExD,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
|
|
2
|
+
// GitHub: https://github.com/atomic-ehr/codegen
|
|
3
|
+
// Any manual changes made to this file may be overwritten.
|
|
4
|
+
function _type_of(obj) {
|
|
5
|
+
"@swc/helpers - typeof";
|
|
6
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
7
|
+
}
|
|
8
|
+
export var isBundle = function(resource) {
|
|
9
|
+
return resource !== null && (typeof resource === "undefined" ? "undefined" : _type_of(resource)) === "object" && resource.resourceType === "Bundle";
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Coding } from "../hl7-fhir-r4-core/Coding";
|
|
2
|
+
import type { Element } from "../hl7-fhir-r4-core/Element";
|
|
3
|
+
export type { Coding } from "../hl7-fhir-r4-core/Coding";
|
|
4
|
+
export type { Element } from "../hl7-fhir-r4-core/Element";
|
|
5
|
+
export interface CodeableConcept extends Element {
|
|
6
|
+
coding?: Coding[];
|
|
7
|
+
text?: string;
|
|
8
|
+
_text?: Element;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=CodeableConcept.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeableConcept.d.ts","sourceRoot":"","sources":["../../../../src/fhir-types/hl7-fhir-r4-core/CodeableConcept.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAE3D,YAAY,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,YAAY,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAG3D,MAAM,WAAW,eAAgB,SAAQ,OAAO;IAC5C,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Element } from "../hl7-fhir-r4-core/Element";
|
|
2
|
+
export type { Element } from "../hl7-fhir-r4-core/Element";
|
|
3
|
+
export interface Coding extends Element {
|
|
4
|
+
code?: string;
|
|
5
|
+
_code?: Element;
|
|
6
|
+
display?: string;
|
|
7
|
+
_display?: Element;
|
|
8
|
+
system?: string;
|
|
9
|
+
_system?: Element;
|
|
10
|
+
userSelected?: boolean;
|
|
11
|
+
_userSelected?: Element;
|
|
12
|
+
version?: string;
|
|
13
|
+
_version?: Element;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=Coding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Coding.d.ts","sourceRoot":"","sources":["../../../../src/fhir-types/hl7-fhir-r4-core/Coding.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAE3D,YAAY,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAG3D,MAAM,WAAW,MAAO,SAAQ,OAAO;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Narrative } from "../hl7-fhir-r4-core/Narrative";
|
|
2
|
+
import type { Resource } from "../hl7-fhir-r4-core/Resource";
|
|
3
|
+
export type { Narrative } from "../hl7-fhir-r4-core/Narrative";
|
|
4
|
+
export interface DomainResource extends Resource {
|
|
5
|
+
resourceType: "DomainResource" | "OperationOutcome";
|
|
6
|
+
contained?: Resource[];
|
|
7
|
+
text?: Narrative;
|
|
8
|
+
}
|
|
9
|
+
export declare const isDomainResource: (resource: unknown) => resource is DomainResource;
|
|
10
|
+
//# sourceMappingURL=DomainResource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DomainResource.d.ts","sourceRoot":"","sources":["../../../../src/fhir-types/hl7-fhir-r4-core/DomainResource.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE7D,YAAY,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAG/D,MAAM,WAAW,cAAe,SAAQ,QAAQ;IAC5C,YAAY,EAAE,gBAAgB,GAAG,kBAAkB,CAAC;IAEpD,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,IAAI,CAAC,EAAE,SAAS,CAAC;CACpB;AACD,eAAO,MAAM,gBAAgB,GAAI,UAAU,OAAO,KAAG,QAAQ,IAAI,cAEhE,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
|
|
2
|
+
// GitHub: https://github.com/atomic-ehr/codegen
|
|
3
|
+
// Any manual changes made to this file may be overwritten.
|
|
4
|
+
function _type_of(obj) {
|
|
5
|
+
"@swc/helpers - typeof";
|
|
6
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
7
|
+
}
|
|
8
|
+
export var isDomainResource = function(resource) {
|
|
9
|
+
return resource !== null && (typeof resource === "undefined" ? "undefined" : _type_of(resource)) === "object" && resource.resourceType === "DomainResource";
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Element.d.ts","sourceRoot":"","sources":["../../../../src/fhir-types/hl7-fhir-r4-core/Element.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,OAAO;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,OAAO,CAAC;CACjB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { CodeableConcept } from "../hl7-fhir-r4-core/CodeableConcept";
|
|
2
|
+
import type { Element } from "../hl7-fhir-r4-core/Element";
|
|
3
|
+
import type { Period } from "../hl7-fhir-r4-core/Period";
|
|
4
|
+
import type { Reference } from "../hl7-fhir-r4-core/Reference";
|
|
5
|
+
export type { CodeableConcept } from "../hl7-fhir-r4-core/CodeableConcept";
|
|
6
|
+
export type { Element } from "../hl7-fhir-r4-core/Element";
|
|
7
|
+
export type { Period } from "../hl7-fhir-r4-core/Period";
|
|
8
|
+
export type { Reference } from "../hl7-fhir-r4-core/Reference";
|
|
9
|
+
export interface Identifier extends Element {
|
|
10
|
+
assigner?: Reference<"Organization">;
|
|
11
|
+
period?: Period;
|
|
12
|
+
system?: string;
|
|
13
|
+
_system?: Element;
|
|
14
|
+
type?: CodeableConcept;
|
|
15
|
+
use?: ("usual" | "official" | "temp" | "secondary" | "old");
|
|
16
|
+
_use?: Element;
|
|
17
|
+
value?: string;
|
|
18
|
+
_value?: Element;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=Identifier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Identifier.d.ts","sourceRoot":"","sources":["../../../../src/fhir-types/hl7-fhir-r4-core/Identifier.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE/D,YAAY,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,YAAY,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAC3D,YAAY,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,YAAY,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAG/D,MAAM,WAAW,UAAW,SAAQ,OAAO;IACvC,QAAQ,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,GAAG,CAAC,EAAE,CAAC,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,WAAW,GAAG,KAAK,CAAC,CAAC;IAC5D,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Coding } from "../hl7-fhir-r4-core/Coding";
|
|
2
|
+
import type { Element } from "../hl7-fhir-r4-core/Element";
|
|
3
|
+
export type { Coding } from "../hl7-fhir-r4-core/Coding";
|
|
4
|
+
export type { Element } from "../hl7-fhir-r4-core/Element";
|
|
5
|
+
export interface Meta extends Element {
|
|
6
|
+
lastUpdated?: string;
|
|
7
|
+
_lastUpdated?: Element;
|
|
8
|
+
profile?: string[];
|
|
9
|
+
_profile?: Element;
|
|
10
|
+
security?: Coding[];
|
|
11
|
+
source?: string;
|
|
12
|
+
_source?: Element;
|
|
13
|
+
tag?: Coding[];
|
|
14
|
+
versionId?: string;
|
|
15
|
+
_versionId?: Element;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=Meta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Meta.d.ts","sourceRoot":"","sources":["../../../../src/fhir-types/hl7-fhir-r4-core/Meta.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAE3D,YAAY,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,YAAY,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAG3D,MAAM,WAAW,IAAK,SAAQ,OAAO;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Element } from "../hl7-fhir-r4-core/Element";
|
|
2
|
+
export type { Element } from "../hl7-fhir-r4-core/Element";
|
|
3
|
+
export interface Narrative extends Element {
|
|
4
|
+
div: string;
|
|
5
|
+
_div?: Element;
|
|
6
|
+
status: ("generated" | "extensions" | "additional" | "empty");
|
|
7
|
+
_status?: Element;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=Narrative.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Narrative.d.ts","sourceRoot":"","sources":["../../../../src/fhir-types/hl7-fhir-r4-core/Narrative.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAE3D,YAAY,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAG3D,MAAM,WAAW,SAAU,SAAQ,OAAO;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,CAAC,WAAW,GAAG,YAAY,GAAG,YAAY,GAAG,OAAO,CAAC,CAAC;IAC9D,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { BackboneElement } from "../hl7-fhir-r4-core/BackboneElement";
|
|
2
|
+
import type { CodeableConcept } from "../hl7-fhir-r4-core/CodeableConcept";
|
|
3
|
+
import type { DomainResource } from "../hl7-fhir-r4-core/DomainResource";
|
|
4
|
+
export type { BackboneElement } from "../hl7-fhir-r4-core/BackboneElement";
|
|
5
|
+
export type { CodeableConcept } from "../hl7-fhir-r4-core/CodeableConcept";
|
|
6
|
+
export interface OperationOutcomeIssue extends BackboneElement {
|
|
7
|
+
code: ("invalid" | "structure" | "required" | "value" | "invariant" | "security" | "login" | "unknown" | "expired" | "forbidden" | "suppressed" | "processing" | "not-supported" | "duplicate" | "multiple-matches" | "not-found" | "deleted" | "too-long" | "code-invalid" | "extension" | "too-costly" | "business-rule" | "conflict" | "transient" | "lock-error" | "no-store" | "exception" | "timeout" | "incomplete" | "throttled" | "informational");
|
|
8
|
+
details?: CodeableConcept;
|
|
9
|
+
diagnostics?: string;
|
|
10
|
+
expression?: string[];
|
|
11
|
+
location?: string[];
|
|
12
|
+
severity: ("fatal" | "error" | "warning" | "information");
|
|
13
|
+
}
|
|
14
|
+
export interface OperationOutcome extends DomainResource {
|
|
15
|
+
resourceType: "OperationOutcome";
|
|
16
|
+
issue: OperationOutcomeIssue[];
|
|
17
|
+
}
|
|
18
|
+
export declare const isOperationOutcome: (resource: unknown) => resource is OperationOutcome;
|
|
19
|
+
//# sourceMappingURL=OperationOutcome.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperationOutcome.d.ts","sourceRoot":"","sources":["../../../../src/fhir-types/hl7-fhir-r4-core/OperationOutcome.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEzE,YAAY,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,YAAY,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAE3E,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC1D,IAAI,EAAE,CAAC,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,OAAO,GAAG,WAAW,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,YAAY,GAAG,YAAY,GAAG,eAAe,GAAG,WAAW,GAAG,kBAAkB,GAAG,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc,GAAG,WAAW,GAAG,YAAY,GAAG,eAAe,GAAG,UAAU,GAAG,WAAW,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,GAAG,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,eAAe,CAAC,CAAC;IAC5b,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,EAAE,CAAC,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,aAAa,CAAC,CAAC;CAC7D;AAGD,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACpD,YAAY,EAAE,kBAAkB,CAAC;IAEjC,KAAK,EAAE,qBAAqB,EAAE,CAAC;CAClC;AACD,eAAO,MAAM,kBAAkB,GAAI,UAAU,OAAO,KAAG,QAAQ,IAAI,gBAElE,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
|
|
2
|
+
// GitHub: https://github.com/atomic-ehr/codegen
|
|
3
|
+
// Any manual changes made to this file may be overwritten.
|
|
4
|
+
function _type_of(obj) {
|
|
5
|
+
"@swc/helpers - typeof";
|
|
6
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
7
|
+
}
|
|
8
|
+
export var isOperationOutcome = function(resource) {
|
|
9
|
+
return resource !== null && (typeof resource === "undefined" ? "undefined" : _type_of(resource)) === "object" && resource.resourceType === "OperationOutcome";
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Element } from "../hl7-fhir-r4-core/Element";
|
|
2
|
+
export type { Element } from "../hl7-fhir-r4-core/Element";
|
|
3
|
+
export interface Period extends Element {
|
|
4
|
+
end?: string;
|
|
5
|
+
_end?: Element;
|
|
6
|
+
start?: string;
|
|
7
|
+
_start?: Element;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=Period.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Period.d.ts","sourceRoot":"","sources":["../../../../src/fhir-types/hl7-fhir-r4-core/Period.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAE3D,YAAY,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAG3D,MAAM,WAAW,MAAO,SAAQ,OAAO;IACnC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Element } from "../hl7-fhir-r4-core/Element";
|
|
2
|
+
import type { Identifier } from "../hl7-fhir-r4-core/Identifier";
|
|
3
|
+
export type { Element } from "../hl7-fhir-r4-core/Element";
|
|
4
|
+
export type { Identifier } from "../hl7-fhir-r4-core/Identifier";
|
|
5
|
+
export interface Reference<T extends string = string> extends Element {
|
|
6
|
+
display?: string;
|
|
7
|
+
_display?: Element;
|
|
8
|
+
identifier?: Identifier;
|
|
9
|
+
reference?: `${T}/${string}`;
|
|
10
|
+
_reference?: Element;
|
|
11
|
+
type?: string;
|
|
12
|
+
_type?: Element;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=Reference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Reference.d.ts","sourceRoot":"","sources":["../../../../src/fhir-types/hl7-fhir-r4-core/Reference.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE,YAAY,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAC3D,YAAY,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAGjE,MAAM,WAAW,SAAS,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,OAAO;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,GAAG,CAAC,IAAI,MAAM,EAAE,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Meta } from "../hl7-fhir-r4-core/Meta";
|
|
2
|
+
export type { Meta } from "../hl7-fhir-r4-core/Meta";
|
|
3
|
+
export interface Resource {
|
|
4
|
+
resourceType: "Bundle" | "DomainResource" | "OperationOutcome" | "Resource";
|
|
5
|
+
id?: string;
|
|
6
|
+
_id?: Element;
|
|
7
|
+
implicitRules?: string;
|
|
8
|
+
_implicitRules?: Element;
|
|
9
|
+
language?: string;
|
|
10
|
+
_language?: Element;
|
|
11
|
+
meta?: Meta;
|
|
12
|
+
}
|
|
13
|
+
export declare const isResource: (resource: unknown) => resource is Resource;
|
|
14
|
+
//# sourceMappingURL=Resource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Resource.d.ts","sourceRoot":"","sources":["../../../../src/fhir-types/hl7-fhir-r4-core/Resource.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAErD,YAAY,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAGrD,MAAM,WAAW,QAAQ;IACrB,YAAY,EAAE,QAAQ,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,UAAU,CAAC;IAE5E,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,IAAI,CAAC;CACf;AACD,eAAO,MAAM,UAAU,GAAI,UAAU,OAAO,KAAG,QAAQ,IAAI,QAE1D,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// WARNING: This file is autogenerated by @atomic-ehr/codegen.
|
|
2
|
+
// GitHub: https://github.com/atomic-ehr/codegen
|
|
3
|
+
// Any manual changes made to this file may be overwritten.
|
|
4
|
+
function _type_of(obj) {
|
|
5
|
+
"@swc/helpers - typeof";
|
|
6
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
7
|
+
}
|
|
8
|
+
export var isResource = function(resource) {
|
|
9
|
+
return resource !== null && (typeof resource === "undefined" ? "undefined" : _type_of(resource)) === "object" && resource.resourceType === "Resource";
|
|
10
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Coding } from "../hl7-fhir-r4-core/Coding";
|
|
2
|
+
import type { Element } from "../hl7-fhir-r4-core/Element";
|
|
3
|
+
import type { Reference } from "../hl7-fhir-r4-core/Reference";
|
|
4
|
+
export type { Coding } from "../hl7-fhir-r4-core/Coding";
|
|
5
|
+
export type { Element } from "../hl7-fhir-r4-core/Element";
|
|
6
|
+
export type { Reference } from "../hl7-fhir-r4-core/Reference";
|
|
7
|
+
export interface Signature extends Element {
|
|
8
|
+
data?: string;
|
|
9
|
+
_data?: Element;
|
|
10
|
+
onBehalfOf?: Reference<"Device" | "Organization" | "Patient" | "Practitioner" | "PractitionerRole" | "RelatedPerson">;
|
|
11
|
+
sigFormat?: string;
|
|
12
|
+
_sigFormat?: Element;
|
|
13
|
+
targetFormat?: string;
|
|
14
|
+
_targetFormat?: Element;
|
|
15
|
+
type: Coding[];
|
|
16
|
+
when: string;
|
|
17
|
+
_when?: Element;
|
|
18
|
+
who: Reference<"Device" | "Organization" | "Patient" | "Practitioner" | "PractitionerRole" | "RelatedPerson">;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=Signature.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Signature.d.ts","sourceRoot":"","sources":["../../../../src/fhir-types/hl7-fhir-r4-core/Signature.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE/D,YAAY,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,YAAY,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAC3D,YAAY,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAG/D,MAAM,WAAW,SAAU,SAAQ,OAAO;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,SAAS,CAAC,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,cAAc,GAAG,kBAAkB,GAAG,eAAe,CAAC,CAAC;IACtH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,EAAE,SAAS,CAAC,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,cAAc,GAAG,kBAAkB,GAAG,eAAe,CAAC,CAAC;CACjH"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type { BackboneElement } from "./BackboneElement";
|
|
2
|
+
export type { Bundle, BundleEntry, BundleEntryRequest, BundleEntryResponse, BundleEntrySearch, BundleLink } from "./Bundle";
|
|
3
|
+
export { isBundle } from "./Bundle";
|
|
4
|
+
export type { CodeableConcept } from "./CodeableConcept";
|
|
5
|
+
export type { Coding } from "./Coding";
|
|
6
|
+
export type { DomainResource } from "./DomainResource";
|
|
7
|
+
export { isDomainResource } from "./DomainResource";
|
|
8
|
+
export type { Element } from "./Element";
|
|
9
|
+
export type { Identifier } from "./Identifier";
|
|
10
|
+
export type { Meta } from "./Meta";
|
|
11
|
+
export type { Narrative } from "./Narrative";
|
|
12
|
+
export type { OperationOutcome, OperationOutcomeIssue } from "./OperationOutcome";
|
|
13
|
+
export { isOperationOutcome } from "./OperationOutcome";
|
|
14
|
+
export type { Period } from "./Period";
|
|
15
|
+
export type { Reference } from "./Reference";
|
|
16
|
+
export type { Resource } from "./Resource";
|
|
17
|
+
export { isResource } from "./Resource";
|
|
18
|
+
export type { Signature } from "./Signature";
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/fhir-types/hl7-fhir-r4-core/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC5H,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,YAAY,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,YAAY,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnC,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,YAAY,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,YAAY,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./client";
|
|
2
|
+
export type * from "./fhir-types/hl7-fhir-r4-core";
|
|
3
|
+
export * from "./fhir-types/hl7-fhir-r4-core";
|
|
4
|
+
export type * from "./result";
|
|
5
|
+
export * from "./result";
|
|
6
|
+
export type * from "./types";
|
|
7
|
+
export * from "./types";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,mBAAmB,+BAA+B,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,mBAAmB,UAAU,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,mBAAmB,SAAS,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type Ok<T> = {
|
|
2
|
+
ok: true;
|
|
3
|
+
value: T;
|
|
4
|
+
isOk: () => this is Ok<T>;
|
|
5
|
+
isErr: () => this is Err<never>;
|
|
6
|
+
map: <U>(f: (value: T) => U) => Result<U, never>;
|
|
7
|
+
mapErr: <U>(f: (value: never) => U) => Result<T, never>;
|
|
8
|
+
};
|
|
9
|
+
type Err<E> = {
|
|
10
|
+
ok: false;
|
|
11
|
+
value: E;
|
|
12
|
+
isOk: () => this is Ok<never>;
|
|
13
|
+
isErr: () => this is Err<E>;
|
|
14
|
+
map: <U>(f: (value: never) => U) => Result<never, E>;
|
|
15
|
+
mapErr: <U>(f: (value: E) => U) => Result<never, U>;
|
|
16
|
+
};
|
|
17
|
+
export type Result<T, E> = Ok<T> | Err<E>;
|
|
18
|
+
export declare const Ok: <T>(value: T) => Result<T, never>;
|
|
19
|
+
export declare const Err: <E>(error: E) => Result<never, E>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=result.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../src/result.ts"],"names":[],"mappings":"AAAA,KAAK,EAAE,CAAC,CAAC,IAAI;IACZ,EAAE,EAAE,IAAI,CAAC;IACT,KAAK,EAAE,CAAC,CAAC;IACT,IAAI,EAAE,MAAM,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC1B,KAAK,EAAE,MAAM,IAAI,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;IAChC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACjD,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,CAAC,KAAK,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;CACxD,CAAC;AAEF,KAAK,GAAG,CAAC,CAAC,IAAI;IACb,EAAE,EAAE,KAAK,CAAC;IACV,KAAK,EAAE,CAAC,CAAC;IACT,IAAI,EAAE,MAAM,IAAI,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC;IAC9B,KAAK,EAAE,MAAM,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;IAC5B,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,CAAC,KAAK,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACrD,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,C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