@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.cjs
CHANGED
|
@@ -6244,24 +6244,6 @@ var PGFhirAccessLayer = class extends tiny_emitter.TinyEmitter {
|
|
|
6244
6244
|
GetFhirResourceVersionController = () => {
|
|
6245
6245
|
return this.#dbSTSResourceVersion;
|
|
6246
6246
|
};
|
|
6247
|
-
async DeleteAllIndexes(client, data) {
|
|
6248
|
-
try {
|
|
6249
|
-
await client.query(`
|
|
6250
|
-
DELETE FROM stsresfhirlink WHERE RES_ID = $1 AND RES_TYPE = $2;
|
|
6251
|
-
DELETE FROM stsresfhirstring WHERE RES_ID = $1 AND RES_TYPE = $2;
|
|
6252
|
-
DELETE FROM stsresfhirtoken WHERE RES_ID = $1 AND RES_TYPE = $2;
|
|
6253
|
-
DELETE FROM stsresfhirquantity WHERE RES_ID = $1 AND RES_TYPE = $2;
|
|
6254
|
-
DELETE FROM stsresfhirnumber WHERE RES_ID = $1 AND RES_TYPE = $2;
|
|
6255
|
-
DELETE FROM stsresfhirdate WHERE RES_ID = $1 AND RES_TYPE = $2;
|
|
6256
|
-
DELETE FROM stsresfhiruri WHERE RES_ID = $1 AND RES_TYPE = $2;
|
|
6257
|
-
DELETE FROM stsresfhircombo WHERE RES_ID = $1 AND RES_TYPE = $2;
|
|
6258
|
-
`, [data.RES_ID, data.RES_TYPE]);
|
|
6259
|
-
} catch (error) {
|
|
6260
|
-
const message = `PGFhirAccessLayer:DeleteAllIndexes(): Error: [${error}]`;
|
|
6261
|
-
this.#options.logger.error(message);
|
|
6262
|
-
throw new Error(message);
|
|
6263
|
-
}
|
|
6264
|
-
}
|
|
6265
6247
|
UpdateIndexes = async (client, resource) => {
|
|
6266
6248
|
let start = performance.now();
|
|
6267
6249
|
const oa = start;
|
|
@@ -6273,7 +6255,35 @@ var PGFhirAccessLayer = class extends tiny_emitter.TinyEmitter {
|
|
|
6273
6255
|
searchIndexData = await this.#dbSearchIndex.GetSearchIndexData(resource);
|
|
6274
6256
|
lap1 = performance.now() - start;
|
|
6275
6257
|
start = performance.now();
|
|
6276
|
-
await this.
|
|
6258
|
+
await this.#dbSTSResourceLink.DeleteResourceLinkRecord(client, {
|
|
6259
|
+
RES_ID: resource.id,
|
|
6260
|
+
RES_TYPE: resource.resourceType
|
|
6261
|
+
});
|
|
6262
|
+
await this.#dbSTSString.DeleteRecord(client, {
|
|
6263
|
+
RES_ID: resource.id,
|
|
6264
|
+
RES_TYPE: resource.resourceType
|
|
6265
|
+
});
|
|
6266
|
+
await this.#dbSTSToken.DeleteRecord(client, {
|
|
6267
|
+
RES_ID: resource.id,
|
|
6268
|
+
RES_TYPE: resource.resourceType
|
|
6269
|
+
});
|
|
6270
|
+
await this.#dbSTSQuantity.DeleteRecord(client, {
|
|
6271
|
+
RES_ID: resource.id,
|
|
6272
|
+
RES_TYPE: resource.resourceType
|
|
6273
|
+
});
|
|
6274
|
+
await this.#dbSTSNumber.DeleteRecord(client, {
|
|
6275
|
+
RES_ID: resource.id,
|
|
6276
|
+
RES_TYPE: resource.resourceType
|
|
6277
|
+
});
|
|
6278
|
+
await this.#dbSTSDate.DeleteRecord(client, {
|
|
6279
|
+
RES_ID: resource.id,
|
|
6280
|
+
RES_TYPE: resource.resourceType
|
|
6281
|
+
});
|
|
6282
|
+
await this.#dbSTSUri.DeleteRecord(client, {
|
|
6283
|
+
RES_ID: resource.id,
|
|
6284
|
+
RES_TYPE: resource.resourceType
|
|
6285
|
+
});
|
|
6286
|
+
await this.#dbSTSCombo.DeleteRecord(client, {
|
|
6277
6287
|
RES_ID: resource.id,
|
|
6278
6288
|
RES_TYPE: resource.resourceType
|
|
6279
6289
|
});
|