@nsshunt/stsfhirpg 1.2.32 → 1.2.33
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/index.mjs
CHANGED
|
@@ -6217,24 +6217,6 @@ var PGFhirAccessLayer = class extends TinyEmitter {
|
|
|
6217
6217
|
GetFhirResourceVersionController = () => {
|
|
6218
6218
|
return this.#dbSTSResourceVersion;
|
|
6219
6219
|
};
|
|
6220
|
-
async DeleteAllIndexes(client, data) {
|
|
6221
|
-
try {
|
|
6222
|
-
await client.query(`
|
|
6223
|
-
DELETE FROM stsresfhirlink WHERE RES_ID = $1 AND RES_TYPE = $2;
|
|
6224
|
-
DELETE FROM stsresfhirstring WHERE RES_ID = $1 AND RES_TYPE = $2;
|
|
6225
|
-
DELETE FROM stsresfhirtoken WHERE RES_ID = $1 AND RES_TYPE = $2;
|
|
6226
|
-
DELETE FROM stsresfhirquantity WHERE RES_ID = $1 AND RES_TYPE = $2;
|
|
6227
|
-
DELETE FROM stsresfhirnumber WHERE RES_ID = $1 AND RES_TYPE = $2;
|
|
6228
|
-
DELETE FROM stsresfhirdate WHERE RES_ID = $1 AND RES_TYPE = $2;
|
|
6229
|
-
DELETE FROM stsresfhiruri WHERE RES_ID = $1 AND RES_TYPE = $2;
|
|
6230
|
-
DELETE FROM stsresfhircombo WHERE RES_ID = $1 AND RES_TYPE = $2;
|
|
6231
|
-
`, [data.RES_ID, data.RES_TYPE]);
|
|
6232
|
-
} catch (error) {
|
|
6233
|
-
const message = `PGFhirAccessLayer:DeleteAllIndexes(): Error: [${error}]`;
|
|
6234
|
-
this.#options.logger.error(message);
|
|
6235
|
-
throw new Error(message);
|
|
6236
|
-
}
|
|
6237
|
-
}
|
|
6238
6220
|
UpdateIndexes = async (client, resource) => {
|
|
6239
6221
|
let start = performance.now();
|
|
6240
6222
|
const oa = start;
|
|
@@ -6246,7 +6228,35 @@ var PGFhirAccessLayer = class extends TinyEmitter {
|
|
|
6246
6228
|
searchIndexData = await this.#dbSearchIndex.GetSearchIndexData(resource);
|
|
6247
6229
|
lap1 = performance.now() - start;
|
|
6248
6230
|
start = performance.now();
|
|
6249
|
-
await this.
|
|
6231
|
+
await this.#dbSTSResourceLink.DeleteResourceLinkRecord(client, {
|
|
6232
|
+
RES_ID: resource.id,
|
|
6233
|
+
RES_TYPE: resource.resourceType
|
|
6234
|
+
});
|
|
6235
|
+
await this.#dbSTSString.DeleteRecord(client, {
|
|
6236
|
+
RES_ID: resource.id,
|
|
6237
|
+
RES_TYPE: resource.resourceType
|
|
6238
|
+
});
|
|
6239
|
+
await this.#dbSTSToken.DeleteRecord(client, {
|
|
6240
|
+
RES_ID: resource.id,
|
|
6241
|
+
RES_TYPE: resource.resourceType
|
|
6242
|
+
});
|
|
6243
|
+
await this.#dbSTSQuantity.DeleteRecord(client, {
|
|
6244
|
+
RES_ID: resource.id,
|
|
6245
|
+
RES_TYPE: resource.resourceType
|
|
6246
|
+
});
|
|
6247
|
+
await this.#dbSTSNumber.DeleteRecord(client, {
|
|
6248
|
+
RES_ID: resource.id,
|
|
6249
|
+
RES_TYPE: resource.resourceType
|
|
6250
|
+
});
|
|
6251
|
+
await this.#dbSTSDate.DeleteRecord(client, {
|
|
6252
|
+
RES_ID: resource.id,
|
|
6253
|
+
RES_TYPE: resource.resourceType
|
|
6254
|
+
});
|
|
6255
|
+
await this.#dbSTSUri.DeleteRecord(client, {
|
|
6256
|
+
RES_ID: resource.id,
|
|
6257
|
+
RES_TYPE: resource.resourceType
|
|
6258
|
+
});
|
|
6259
|
+
await this.#dbSTSCombo.DeleteRecord(client, {
|
|
6250
6260
|
RES_ID: resource.id,
|
|
6251
6261
|
RES_TYPE: resource.resourceType
|
|
6252
6262
|
});
|