sdc-qrf 0.3.22 → 0.3.23
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/converter/fhirToFce/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE9D,wBAAgB,6BAA6B,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/converter/fhirToFce/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE9D,wBAAgB,6BAA6B,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,CAWxF;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,GAAG,OAqBnC"}
|
|
@@ -5,10 +5,9 @@ exports.trimUndefined = trimUndefined;
|
|
|
5
5
|
function checkFhirQuestionnaireProfile(fhirQuestionnaire) {
|
|
6
6
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
7
7
|
if (!(((_c = (_b = (_a = fhirQuestionnaire.meta) === null || _a === void 0 ? void 0 : _a.profile) === null || _b === void 0 ? void 0 : _b.length) !== null && _c !== void 0 ? _c : 0) === 1 &&
|
|
8
|
-
(((_e = (_d = fhirQuestionnaire.meta) === null || _d === void 0 ? void 0 : _d.profile) === null || _e === void 0 ? void 0 : _e[0]) ===
|
|
9
|
-
'https://beda.software/beda-emr-questionnaire' ||
|
|
8
|
+
(((_e = (_d = fhirQuestionnaire.meta) === null || _d === void 0 ? void 0 : _d.profile) === null || _e === void 0 ? void 0 : _e[0]) === 'https://beda.software/beda-emr-questionnaire' ||
|
|
10
9
|
((_g = (_f = fhirQuestionnaire.meta) === null || _f === void 0 ? void 0 : _f.profile) === null || _g === void 0 ? void 0 : _g[0]) ===
|
|
11
|
-
'https://emr.beda.software/StructureDefinition/fhir-emr-questionnaire'))) {
|
|
10
|
+
'https://emr-core.beda.software/StructureDefinition/fhir-emr-questionnaire'))) {
|
|
12
11
|
throw new Error('Only beda emr questionanire supported');
|
|
13
12
|
}
|
|
14
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/converter/fhirToFce/utils.ts"],"names":[],"mappings":";;AAEA,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/converter/fhirToFce/utils.ts"],"names":[],"mappings":";;AAEA,sEAWC;AAED,sCAqBC;AAlCD,SAAgB,6BAA6B,CAAC,iBAAoC;;IAC9E,IACI,CAAC,CACG,CAAC,MAAA,MAAA,MAAA,iBAAiB,CAAC,IAAI,0CAAE,OAAO,0CAAE,MAAM,mCAAI,CAAC,CAAC,KAAK,CAAC;QACpD,CAAC,CAAA,MAAA,MAAA,iBAAiB,CAAC,IAAI,0CAAE,OAAO,0CAAG,CAAC,CAAC,MAAK,8CAA8C;YACpF,CAAA,MAAA,MAAA,iBAAiB,CAAC,IAAI,0CAAE,OAAO,0CAAG,CAAC,CAAC;gBAChC,2EAA2E,CAAC,CACvF,EACH,CAAC;QACC,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;IAC7D,CAAC;AACL,CAAC;AAED,SAAgB,aAAa,CAAC,CAAM;IAChC,KAAK,MAAM,IAAI,IAAI,CAAC,EAAE,CAAC;QACnB,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC;YAChD,MAAM,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;YACpB,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;gBACpB,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;YACnB,CAAC;iBAAM,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;gBACjC,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;oBACrB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;wBAClC,IAAI,OAAO,GAAG,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE,CAAC;4BAC7B,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;wBAC1B,CAAC;oBACL,CAAC;gBACL,CAAC;qBAAM,CAAC;oBACJ,aAAa,CAAC,GAAG,CAAC,CAAC;gBACvB,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;IAED,OAAO,CAAC,CAAC;AACb,CAAC"}
|
package/package.json
CHANGED
|
@@ -4,10 +4,9 @@ export function checkFhirQuestionnaireProfile(fhirQuestionnaire: FHIRQuestionnai
|
|
|
4
4
|
if (
|
|
5
5
|
!(
|
|
6
6
|
(fhirQuestionnaire.meta?.profile?.length ?? 0) === 1 &&
|
|
7
|
-
(fhirQuestionnaire.meta?.profile?.[0] ===
|
|
8
|
-
'https://beda.software/beda-emr-questionnaire' ||
|
|
7
|
+
(fhirQuestionnaire.meta?.profile?.[0] === 'https://beda.software/beda-emr-questionnaire' ||
|
|
9
8
|
fhirQuestionnaire.meta?.profile?.[0] ===
|
|
10
|
-
'https://emr.beda.software/StructureDefinition/fhir-emr-questionnaire')
|
|
9
|
+
'https://emr-core.beda.software/StructureDefinition/fhir-emr-questionnaire')
|
|
11
10
|
)
|
|
12
11
|
) {
|
|
13
12
|
throw new Error('Only beda emr questionanire supported');
|