@nsshunt/stsfhirpg 1.2.2 → 1.2.3
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/dist/stsfhirpg.cjs +16 -18
- package/dist/stsfhirpg.cjs.map +1 -1
- package/dist/stsfhirpg.mjs +16 -18
- package/dist/stsfhirpg.mjs.map +1 -1
- package/package.json +1 -1
- package/types/fhir-database/dbsearchindex.d.ts +1 -0
- package/types/fhir-database/dbsearchindex.d.ts.map +1 -1
- package/types/fhir-utils/resourceHelper.d.ts +1 -0
- package/types/fhir-utils/resourceHelper.d.ts.map +1 -1
package/dist/stsfhirpg.mjs
CHANGED
|
@@ -7260,22 +7260,21 @@ class ResourceHelper {
|
|
|
7260
7260
|
return filterByNameAndUrl[0];
|
|
7261
7261
|
}
|
|
7262
7262
|
};
|
|
7263
|
+
GetSearchParamFromResourceType = (resourceType, name) => {
|
|
7264
|
+
const filterByName = this.definitions.searchParametersByResourceType[resourceType].params.filter((rt) => rt.SP_NAME.localeCompare(name) === 0);
|
|
7265
|
+
if (filterByName.length > 0) {
|
|
7266
|
+
return filterByName[0];
|
|
7267
|
+
}
|
|
7268
|
+
};
|
|
7263
7269
|
/*
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
}
|
|
7269
|
-
}
|
|
7270
|
-
|
|
7271
|
-
GetPathsFromResourceType = (resourceType: string, name: string): string[] => {
|
|
7272
|
-
const filterByName = this.definitions.searchParametersByResourceType[resourceType].params.filter(rt => rt.SP_NAME.localeCompare(name) === 0);
|
|
7273
|
-
if (filterByName.length > 0) {
|
|
7274
|
-
return filterByName[0].expressions.map(e => e.path)
|
|
7275
|
-
}
|
|
7276
|
-
return [ ];
|
|
7270
|
+
GetPathsFromResourceType = (resourceType: string, name: string): string[] => {
|
|
7271
|
+
const filterByName = this.definitions.searchParametersByResourceType[resourceType].params.filter(rt => rt.SP_NAME.localeCompare(name) === 0);
|
|
7272
|
+
if (filterByName.length > 0) {
|
|
7273
|
+
return filterByName[0].expressions.map(e => e.path)
|
|
7277
7274
|
}
|
|
7278
|
-
|
|
7275
|
+
return [ ];
|
|
7276
|
+
}
|
|
7277
|
+
*/
|
|
7279
7278
|
GetSearchParamsFromResourceType = (resourceType) => {
|
|
7280
7279
|
return this.definitions.searchParametersByResourceType[resourceType].params;
|
|
7281
7280
|
};
|
|
@@ -11431,15 +11430,14 @@ class DBSearchIndex {
|
|
|
11431
11430
|
return [];
|
|
11432
11431
|
}
|
|
11433
11432
|
};
|
|
11433
|
+
GetSearchParamFromResourceType = (resourceType, name) => {
|
|
11434
|
+
return this.resourceHelper.GetSearchParamFromResourceType(resourceType, name);
|
|
11435
|
+
};
|
|
11434
11436
|
/*
|
|
11435
11437
|
GetSearchParamFromResourceTypeUrl = (resourceType: string, url: string): ISearchParamRecord | undefined => {
|
|
11436
11438
|
return this.resourceHelper.GetSearchParamFromResourceTypeUrl(resourceType, url);
|
|
11437
11439
|
}
|
|
11438
11440
|
|
|
11439
|
-
GetSearchParamFromResourceType = (resourceType: string, name: string): ISearchParamRecord | undefined => {
|
|
11440
|
-
return this.resourceHelper.GetSearchParamFromResourceType(resourceType, name);
|
|
11441
|
-
}
|
|
11442
|
-
|
|
11443
11441
|
GetPathsFromResourceType = (resourceType: string, name: string): string[] => {
|
|
11444
11442
|
return this.resourceHelper.GetPathsFromResourceType(resourceType, name);
|
|
11445
11443
|
}
|