-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.ts
54 lines (50 loc) · 1.18 KB
/
main.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import {
generateMSOutput,
generateFHIRDosage,
generatePCDHOutput,
generateFHIRMSL
} from "./src/index"
console.log("MS STARTED");
generateMSOutput({
CONFIGURATIONS_PATH: `${__dirname}/configurations/ms`,
OUTPUT_PATH: `${__dirname}/output/ms`,
})
.then(() => {
console.log("MS FINISHED");
})
.catch((error) => {
console.error(error);
});
console.log("PCDH STARTED");
generatePCDHOutput({
CONFIGURATIONS_PATH: `${__dirname}/configurations/pcdh`,
OUTPUT_PATH: `${__dirname}/output/pcdh`,
})
.then(() => {
console.log("PCDH FINISHED");
})
.catch((error) => {
console.error(error);
});
console.log("FHIR DOSAGE STARTED");
generateFHIRDosage({
CONFIGURATIONS_PATH: `${__dirname}/configurations/fhir-dosage`,
OUTPUT_PATH: `${__dirname}/output/fhir-dosage`,
})
.then(() => {
console.log("FHIR DOSAGE FINISHED");
})
.catch((error) => {
console.error(error);
});
console.log("FHIR Medication Scheme lines STARTED");
generateFHIRMSL({
CONFIGURATIONS_PATH: `${__dirname}/configurations/ms`,
OUTPUT_PATH: `${__dirname}/output/fhir-ms`,
})
.then(() => {
console.log("MS FINISHED");
})
.catch((error) => {
console.error(error);
});