@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.cjs
CHANGED
|
@@ -7262,22 +7262,21 @@ class ResourceHelper {
|
|
|
7262
7262
|
return filterByNameAndUrl[0];
|
|
7263
7263
|
}
|
|
7264
7264
|
};
|
|
7265
|
+
GetSearchParamFromResourceType = (resourceType, name) => {
|
|
7266
|
+
const filterByName = this.definitions.searchParametersByResourceType[resourceType].params.filter((rt) => rt.SP_NAME.localeCompare(name) === 0);
|
|
7267
|
+
if (filterByName.length > 0) {
|
|
7268
|
+
return filterByName[0];
|
|
7269
|
+
}
|
|
7270
|
+
};
|
|
7265
7271
|
/*
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
}
|
|
7271
|
-
}
|
|
7272
|
-
|
|
7273
|
-
GetPathsFromResourceType = (resourceType: string, name: string): string[] => {
|
|
7274
|
-
const filterByName = this.definitions.searchParametersByResourceType[resourceType].params.filter(rt => rt.SP_NAME.localeCompare(name) === 0);
|
|
7275
|
-
if (filterByName.length > 0) {
|
|
7276
|
-
return filterByName[0].expressions.map(e => e.path)
|
|
7277
|
-
}
|
|
7278
|
-
return [ ];
|
|
7272
|
+
GetPathsFromResourceType = (resourceType: string, name: string): string[] => {
|
|
7273
|
+
const filterByName = this.definitions.searchParametersByResourceType[resourceType].params.filter(rt => rt.SP_NAME.localeCompare(name) === 0);
|
|
7274
|
+
if (filterByName.length > 0) {
|
|
7275
|
+
return filterByName[0].expressions.map(e => e.path)
|
|
7279
7276
|
}
|
|
7280
|
-
|
|
7277
|
+
return [ ];
|
|
7278
|
+
}
|
|
7279
|
+
*/
|
|
7281
7280
|
GetSearchParamsFromResourceType = (resourceType) => {
|
|
7282
7281
|
return this.definitions.searchParametersByResourceType[resourceType].params;
|
|
7283
7282
|
};
|
|
@@ -11433,15 +11432,14 @@ class DBSearchIndex {
|
|
|
11433
11432
|
return [];
|
|
11434
11433
|
}
|
|
11435
11434
|
};
|
|
11435
|
+
GetSearchParamFromResourceType = (resourceType, name) => {
|
|
11436
|
+
return this.resourceHelper.GetSearchParamFromResourceType(resourceType, name);
|
|
11437
|
+
};
|
|
11436
11438
|
/*
|
|
11437
11439
|
GetSearchParamFromResourceTypeUrl = (resourceType: string, url: string): ISearchParamRecord | undefined => {
|
|
11438
11440
|
return this.resourceHelper.GetSearchParamFromResourceTypeUrl(resourceType, url);
|
|
11439
11441
|
}
|
|
11440
11442
|
|
|
11441
|
-
GetSearchParamFromResourceType = (resourceType: string, name: string): ISearchParamRecord | undefined => {
|
|
11442
|
-
return this.resourceHelper.GetSearchParamFromResourceType(resourceType, name);
|
|
11443
|
-
}
|
|
11444
|
-
|
|
11445
11443
|
GetPathsFromResourceType = (resourceType: string, name: string): string[] => {
|
|
11446
11444
|
return this.resourceHelper.GetPathsFromResourceType(resourceType, name);
|
|
11447
11445
|
}
|