@fhir-dsl/runtime 0.1.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.
- package/LICENSE +21 -0
- package/dist/index.cjs +160 -0
- package/dist/index.d.cts +56 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.js +129 -0
- package/package.json +49 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Abdelhadi Sabani
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
FhirError: () => FhirError,
|
|
24
|
+
FhirExecutor: () => FhirExecutor,
|
|
25
|
+
fetchAllPages: () => fetchAllPages,
|
|
26
|
+
paginate: () => paginate,
|
|
27
|
+
unwrapBundle: () => unwrapBundle
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(index_exports);
|
|
30
|
+
|
|
31
|
+
// src/errors.ts
|
|
32
|
+
var FhirError = class extends Error {
|
|
33
|
+
constructor(status, statusText, operationOutcome) {
|
|
34
|
+
const message = operationOutcome?.issue?.[0]?.diagnostics ?? operationOutcome?.issue?.[0]?.details?.text ?? `${status} ${statusText}`;
|
|
35
|
+
super(`FHIR Error: ${message}`);
|
|
36
|
+
this.status = status;
|
|
37
|
+
this.statusText = statusText;
|
|
38
|
+
this.operationOutcome = operationOutcome;
|
|
39
|
+
this.name = "FhirError";
|
|
40
|
+
}
|
|
41
|
+
status;
|
|
42
|
+
statusText;
|
|
43
|
+
operationOutcome;
|
|
44
|
+
get issues() {
|
|
45
|
+
return this.operationOutcome?.issue ?? [];
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
// src/executor.ts
|
|
50
|
+
var FhirExecutor = class {
|
|
51
|
+
#config;
|
|
52
|
+
#fetch;
|
|
53
|
+
constructor(config) {
|
|
54
|
+
this.#config = config;
|
|
55
|
+
this.#fetch = config.fetch ?? globalThis.fetch;
|
|
56
|
+
}
|
|
57
|
+
async execute(query) {
|
|
58
|
+
const url = new URL(
|
|
59
|
+
query.path,
|
|
60
|
+
this.#config.baseUrl.endsWith("/") ? this.#config.baseUrl : `${this.#config.baseUrl}/`
|
|
61
|
+
);
|
|
62
|
+
for (const param of query.params) {
|
|
63
|
+
const value = param.prefix ? `${param.prefix}${param.value}` : String(param.value);
|
|
64
|
+
url.searchParams.append(param.name, value);
|
|
65
|
+
}
|
|
66
|
+
const headers = {
|
|
67
|
+
Accept: "application/fhir+json",
|
|
68
|
+
"Content-Type": "application/fhir+json",
|
|
69
|
+
...this.#config.headers,
|
|
70
|
+
...query.headers
|
|
71
|
+
};
|
|
72
|
+
if (this.#config.auth) {
|
|
73
|
+
const { type, credentials } = this.#config.auth;
|
|
74
|
+
headers.Authorization = type === "bearer" ? `Bearer ${credentials}` : `Basic ${credentials}`;
|
|
75
|
+
}
|
|
76
|
+
const response = await this.#fetch(url.toString(), {
|
|
77
|
+
method: query.method,
|
|
78
|
+
headers,
|
|
79
|
+
...query.body ? { body: JSON.stringify(query.body) } : {}
|
|
80
|
+
});
|
|
81
|
+
if (!response.ok) {
|
|
82
|
+
const errorBody = await response.json().catch(() => null);
|
|
83
|
+
throw new FhirError(response.status, response.statusText, errorBody);
|
|
84
|
+
}
|
|
85
|
+
return response.json();
|
|
86
|
+
}
|
|
87
|
+
async executeUrl(url) {
|
|
88
|
+
const headers = {
|
|
89
|
+
Accept: "application/fhir+json",
|
|
90
|
+
...this.#config.headers
|
|
91
|
+
};
|
|
92
|
+
if (this.#config.auth) {
|
|
93
|
+
const { type, credentials } = this.#config.auth;
|
|
94
|
+
headers.Authorization = type === "bearer" ? `Bearer ${credentials}` : `Basic ${credentials}`;
|
|
95
|
+
}
|
|
96
|
+
const response = await this.#fetch(url, { method: "GET", headers });
|
|
97
|
+
if (!response.ok) {
|
|
98
|
+
const errorBody = await response.json().catch(() => null);
|
|
99
|
+
throw new FhirError(response.status, response.statusText, errorBody);
|
|
100
|
+
}
|
|
101
|
+
return response.json();
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
// src/pagination.ts
|
|
106
|
+
async function* paginate(executor, firstBundle) {
|
|
107
|
+
let bundle = firstBundle;
|
|
108
|
+
while (bundle) {
|
|
109
|
+
const entries = bundle.entry ?? [];
|
|
110
|
+
const resources = entries.filter((e) => e.resource !== void 0).map((e) => e.resource);
|
|
111
|
+
if (resources.length > 0) {
|
|
112
|
+
yield resources;
|
|
113
|
+
}
|
|
114
|
+
const nextLink = bundle.link?.find((l) => l.relation === "next");
|
|
115
|
+
if (nextLink?.url) {
|
|
116
|
+
bundle = await executor.executeUrl(nextLink.url);
|
|
117
|
+
} else {
|
|
118
|
+
bundle = void 0;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
async function fetchAllPages(executor, firstBundle) {
|
|
123
|
+
const all = [];
|
|
124
|
+
for await (const page of paginate(executor, firstBundle)) {
|
|
125
|
+
all.push(...page);
|
|
126
|
+
}
|
|
127
|
+
return all;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// src/result.ts
|
|
131
|
+
function unwrapBundle(bundle) {
|
|
132
|
+
const entries = bundle.entry ?? [];
|
|
133
|
+
const data = [];
|
|
134
|
+
const included = [];
|
|
135
|
+
for (const entry of entries) {
|
|
136
|
+
if (!entry.resource) continue;
|
|
137
|
+
if (entry.search?.mode === "include") {
|
|
138
|
+
included.push(entry.resource);
|
|
139
|
+
} else {
|
|
140
|
+
data.push(entry.resource);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
const nextLink = bundle.link?.find((l) => l.relation === "next");
|
|
144
|
+
return {
|
|
145
|
+
data,
|
|
146
|
+
included,
|
|
147
|
+
total: bundle.total,
|
|
148
|
+
hasNext: !!nextLink,
|
|
149
|
+
nextUrl: nextLink?.url,
|
|
150
|
+
raw: bundle
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
154
|
+
0 && (module.exports = {
|
|
155
|
+
FhirError,
|
|
156
|
+
FhirExecutor,
|
|
157
|
+
fetchAllPages,
|
|
158
|
+
paginate,
|
|
159
|
+
unwrapBundle
|
|
160
|
+
});
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { CompiledQuery } from '@fhir-dsl/core';
|
|
2
|
+
import { Resource, Bundle } from '@fhir-dsl/types';
|
|
3
|
+
|
|
4
|
+
interface FhirClientConfig {
|
|
5
|
+
baseUrl: string;
|
|
6
|
+
auth?: {
|
|
7
|
+
type: "bearer" | "basic";
|
|
8
|
+
credentials: string;
|
|
9
|
+
} | undefined;
|
|
10
|
+
headers?: Record<string, string> | undefined;
|
|
11
|
+
fetch?: typeof globalThis.fetch | undefined;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface OperationOutcome {
|
|
15
|
+
resourceType: "OperationOutcome";
|
|
16
|
+
issue: OperationOutcomeIssue[];
|
|
17
|
+
}
|
|
18
|
+
interface OperationOutcomeIssue {
|
|
19
|
+
severity: "fatal" | "error" | "warning" | "information";
|
|
20
|
+
code: string;
|
|
21
|
+
details?: {
|
|
22
|
+
text?: string;
|
|
23
|
+
};
|
|
24
|
+
diagnostics?: string;
|
|
25
|
+
location?: string[];
|
|
26
|
+
expression?: string[];
|
|
27
|
+
}
|
|
28
|
+
declare class FhirError extends Error {
|
|
29
|
+
readonly status: number;
|
|
30
|
+
readonly statusText: string;
|
|
31
|
+
readonly operationOutcome?: (OperationOutcome | null) | undefined;
|
|
32
|
+
constructor(status: number, statusText: string, operationOutcome?: (OperationOutcome | null) | undefined);
|
|
33
|
+
get issues(): OperationOutcomeIssue[];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare class FhirExecutor {
|
|
37
|
+
#private;
|
|
38
|
+
constructor(config: FhirClientConfig);
|
|
39
|
+
execute<T = unknown>(query: CompiledQuery): Promise<T>;
|
|
40
|
+
executeUrl<T = unknown>(url: string): Promise<T>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare function paginate<T extends Resource>(executor: FhirExecutor, firstBundle: Bundle): AsyncGenerator<T[], void, undefined>;
|
|
44
|
+
declare function fetchAllPages<T extends Resource>(executor: FhirExecutor, firstBundle: Bundle): Promise<T[]>;
|
|
45
|
+
|
|
46
|
+
interface SearchResult<Primary extends Resource, Included extends Resource = never> {
|
|
47
|
+
data: Primary[];
|
|
48
|
+
included: [Included] extends [never] ? [] : Included[];
|
|
49
|
+
total?: number | undefined;
|
|
50
|
+
hasNext: boolean;
|
|
51
|
+
nextUrl?: string | undefined;
|
|
52
|
+
raw: Bundle;
|
|
53
|
+
}
|
|
54
|
+
declare function unwrapBundle<Primary extends Resource, Included extends Resource = never>(bundle: Bundle): SearchResult<Primary, Included>;
|
|
55
|
+
|
|
56
|
+
export { type FhirClientConfig, FhirError, FhirExecutor, type OperationOutcome, type OperationOutcomeIssue, type SearchResult, fetchAllPages, paginate, unwrapBundle };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { CompiledQuery } from '@fhir-dsl/core';
|
|
2
|
+
import { Resource, Bundle } from '@fhir-dsl/types';
|
|
3
|
+
|
|
4
|
+
interface FhirClientConfig {
|
|
5
|
+
baseUrl: string;
|
|
6
|
+
auth?: {
|
|
7
|
+
type: "bearer" | "basic";
|
|
8
|
+
credentials: string;
|
|
9
|
+
} | undefined;
|
|
10
|
+
headers?: Record<string, string> | undefined;
|
|
11
|
+
fetch?: typeof globalThis.fetch | undefined;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface OperationOutcome {
|
|
15
|
+
resourceType: "OperationOutcome";
|
|
16
|
+
issue: OperationOutcomeIssue[];
|
|
17
|
+
}
|
|
18
|
+
interface OperationOutcomeIssue {
|
|
19
|
+
severity: "fatal" | "error" | "warning" | "information";
|
|
20
|
+
code: string;
|
|
21
|
+
details?: {
|
|
22
|
+
text?: string;
|
|
23
|
+
};
|
|
24
|
+
diagnostics?: string;
|
|
25
|
+
location?: string[];
|
|
26
|
+
expression?: string[];
|
|
27
|
+
}
|
|
28
|
+
declare class FhirError extends Error {
|
|
29
|
+
readonly status: number;
|
|
30
|
+
readonly statusText: string;
|
|
31
|
+
readonly operationOutcome?: (OperationOutcome | null) | undefined;
|
|
32
|
+
constructor(status: number, statusText: string, operationOutcome?: (OperationOutcome | null) | undefined);
|
|
33
|
+
get issues(): OperationOutcomeIssue[];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare class FhirExecutor {
|
|
37
|
+
#private;
|
|
38
|
+
constructor(config: FhirClientConfig);
|
|
39
|
+
execute<T = unknown>(query: CompiledQuery): Promise<T>;
|
|
40
|
+
executeUrl<T = unknown>(url: string): Promise<T>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare function paginate<T extends Resource>(executor: FhirExecutor, firstBundle: Bundle): AsyncGenerator<T[], void, undefined>;
|
|
44
|
+
declare function fetchAllPages<T extends Resource>(executor: FhirExecutor, firstBundle: Bundle): Promise<T[]>;
|
|
45
|
+
|
|
46
|
+
interface SearchResult<Primary extends Resource, Included extends Resource = never> {
|
|
47
|
+
data: Primary[];
|
|
48
|
+
included: [Included] extends [never] ? [] : Included[];
|
|
49
|
+
total?: number | undefined;
|
|
50
|
+
hasNext: boolean;
|
|
51
|
+
nextUrl?: string | undefined;
|
|
52
|
+
raw: Bundle;
|
|
53
|
+
}
|
|
54
|
+
declare function unwrapBundle<Primary extends Resource, Included extends Resource = never>(bundle: Bundle): SearchResult<Primary, Included>;
|
|
55
|
+
|
|
56
|
+
export { type FhirClientConfig, FhirError, FhirExecutor, type OperationOutcome, type OperationOutcomeIssue, type SearchResult, fetchAllPages, paginate, unwrapBundle };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
// src/errors.ts
|
|
2
|
+
var FhirError = class extends Error {
|
|
3
|
+
constructor(status, statusText, operationOutcome) {
|
|
4
|
+
const message = operationOutcome?.issue?.[0]?.diagnostics ?? operationOutcome?.issue?.[0]?.details?.text ?? `${status} ${statusText}`;
|
|
5
|
+
super(`FHIR Error: ${message}`);
|
|
6
|
+
this.status = status;
|
|
7
|
+
this.statusText = statusText;
|
|
8
|
+
this.operationOutcome = operationOutcome;
|
|
9
|
+
this.name = "FhirError";
|
|
10
|
+
}
|
|
11
|
+
status;
|
|
12
|
+
statusText;
|
|
13
|
+
operationOutcome;
|
|
14
|
+
get issues() {
|
|
15
|
+
return this.operationOutcome?.issue ?? [];
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
// src/executor.ts
|
|
20
|
+
var FhirExecutor = class {
|
|
21
|
+
#config;
|
|
22
|
+
#fetch;
|
|
23
|
+
constructor(config) {
|
|
24
|
+
this.#config = config;
|
|
25
|
+
this.#fetch = config.fetch ?? globalThis.fetch;
|
|
26
|
+
}
|
|
27
|
+
async execute(query) {
|
|
28
|
+
const url = new URL(
|
|
29
|
+
query.path,
|
|
30
|
+
this.#config.baseUrl.endsWith("/") ? this.#config.baseUrl : `${this.#config.baseUrl}/`
|
|
31
|
+
);
|
|
32
|
+
for (const param of query.params) {
|
|
33
|
+
const value = param.prefix ? `${param.prefix}${param.value}` : String(param.value);
|
|
34
|
+
url.searchParams.append(param.name, value);
|
|
35
|
+
}
|
|
36
|
+
const headers = {
|
|
37
|
+
Accept: "application/fhir+json",
|
|
38
|
+
"Content-Type": "application/fhir+json",
|
|
39
|
+
...this.#config.headers,
|
|
40
|
+
...query.headers
|
|
41
|
+
};
|
|
42
|
+
if (this.#config.auth) {
|
|
43
|
+
const { type, credentials } = this.#config.auth;
|
|
44
|
+
headers.Authorization = type === "bearer" ? `Bearer ${credentials}` : `Basic ${credentials}`;
|
|
45
|
+
}
|
|
46
|
+
const response = await this.#fetch(url.toString(), {
|
|
47
|
+
method: query.method,
|
|
48
|
+
headers,
|
|
49
|
+
...query.body ? { body: JSON.stringify(query.body) } : {}
|
|
50
|
+
});
|
|
51
|
+
if (!response.ok) {
|
|
52
|
+
const errorBody = await response.json().catch(() => null);
|
|
53
|
+
throw new FhirError(response.status, response.statusText, errorBody);
|
|
54
|
+
}
|
|
55
|
+
return response.json();
|
|
56
|
+
}
|
|
57
|
+
async executeUrl(url) {
|
|
58
|
+
const headers = {
|
|
59
|
+
Accept: "application/fhir+json",
|
|
60
|
+
...this.#config.headers
|
|
61
|
+
};
|
|
62
|
+
if (this.#config.auth) {
|
|
63
|
+
const { type, credentials } = this.#config.auth;
|
|
64
|
+
headers.Authorization = type === "bearer" ? `Bearer ${credentials}` : `Basic ${credentials}`;
|
|
65
|
+
}
|
|
66
|
+
const response = await this.#fetch(url, { method: "GET", headers });
|
|
67
|
+
if (!response.ok) {
|
|
68
|
+
const errorBody = await response.json().catch(() => null);
|
|
69
|
+
throw new FhirError(response.status, response.statusText, errorBody);
|
|
70
|
+
}
|
|
71
|
+
return response.json();
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
// src/pagination.ts
|
|
76
|
+
async function* paginate(executor, firstBundle) {
|
|
77
|
+
let bundle = firstBundle;
|
|
78
|
+
while (bundle) {
|
|
79
|
+
const entries = bundle.entry ?? [];
|
|
80
|
+
const resources = entries.filter((e) => e.resource !== void 0).map((e) => e.resource);
|
|
81
|
+
if (resources.length > 0) {
|
|
82
|
+
yield resources;
|
|
83
|
+
}
|
|
84
|
+
const nextLink = bundle.link?.find((l) => l.relation === "next");
|
|
85
|
+
if (nextLink?.url) {
|
|
86
|
+
bundle = await executor.executeUrl(nextLink.url);
|
|
87
|
+
} else {
|
|
88
|
+
bundle = void 0;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
async function fetchAllPages(executor, firstBundle) {
|
|
93
|
+
const all = [];
|
|
94
|
+
for await (const page of paginate(executor, firstBundle)) {
|
|
95
|
+
all.push(...page);
|
|
96
|
+
}
|
|
97
|
+
return all;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// src/result.ts
|
|
101
|
+
function unwrapBundle(bundle) {
|
|
102
|
+
const entries = bundle.entry ?? [];
|
|
103
|
+
const data = [];
|
|
104
|
+
const included = [];
|
|
105
|
+
for (const entry of entries) {
|
|
106
|
+
if (!entry.resource) continue;
|
|
107
|
+
if (entry.search?.mode === "include") {
|
|
108
|
+
included.push(entry.resource);
|
|
109
|
+
} else {
|
|
110
|
+
data.push(entry.resource);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
const nextLink = bundle.link?.find((l) => l.relation === "next");
|
|
114
|
+
return {
|
|
115
|
+
data,
|
|
116
|
+
included,
|
|
117
|
+
total: bundle.total,
|
|
118
|
+
hasNext: !!nextLink,
|
|
119
|
+
nextUrl: nextLink?.url,
|
|
120
|
+
raw: bundle
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
export {
|
|
124
|
+
FhirError,
|
|
125
|
+
FhirExecutor,
|
|
126
|
+
fetchAllPages,
|
|
127
|
+
paginate,
|
|
128
|
+
unwrapBundle
|
|
129
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fhir-dsl/runtime",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Runtime execution layer for FHIR DSL queries with pagination and error handling",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"require": {
|
|
16
|
+
"types": "./dist/index.d.cts",
|
|
17
|
+
"default": "./dist/index.cjs"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@fhir-dsl/core": "0.1.0",
|
|
23
|
+
"@fhir-dsl/types": "0.1.0"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
28
|
+
"author": "Abdelhadi Sabani",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://github.com/abellaismail7/fhir-dsl.git",
|
|
33
|
+
"directory": "packages/runtime"
|
|
34
|
+
},
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"access": "public"
|
|
37
|
+
},
|
|
38
|
+
"keywords": [
|
|
39
|
+
"fhir",
|
|
40
|
+
"runtime",
|
|
41
|
+
"typescript",
|
|
42
|
+
"healthcare"
|
|
43
|
+
],
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsup",
|
|
46
|
+
"typecheck": "tsc --noEmit",
|
|
47
|
+
"dev": "tsup --watch"
|
|
48
|
+
}
|
|
49
|
+
}
|