Opened 6 years ago
Closed 6 years ago
#2235 closed enhancement (fixed)
Delete pathology test codes that have no associated records
| Reported by: | Lisa Burke | Owned by: | Benjamin Haag |
|---|---|---|---|
| Priority: | medium | Milestone: | |
| Component: | Database, Data Updates | Version: | N/A |
| Severity: | Keywords: | Pathogen test zero records | |
| Cc: | devteam@…, lisa.burke@… | Database Engine: | N/A |
| Operating System: | N/A |
Description
Delete Pathogen Test codes that have no associated records. See attachment for examples
Attachments (1)
Change History (3)
by , 6 years ago
| Attachment: | Pathogen tests for zero records.xlsx added |
|---|
comment:1 by , 6 years ago
Ran the following SQL successfully on prod:
DELETE FROM code_value WHERE group_name = 'PATHOLOGY_TEST' AND value NOT IN (SELECT DISTINCT contaminant_code FROM inventory_quality_status)
comment:2 by , 6 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.

zero record pathology test codes