Add targeted SQL data-fix script to remap mislabeled Mikrodilution tests to Micronaut#224
Add targeted SQL data-fix script to remap mislabeled Mikrodilution tests to Micronaut#224Copilot wants to merge 8 commits into
Conversation
Agent-Logs-Url: https://github.com/markusrt/NRZMyk/sessions/36db9834-5a84-42ac-b951-a849191f5564 Co-authored-by: markusrt <299753+markusrt@users.noreply.github.com>
|
@copilot Please fix linting config, it does not seem to be correctly setup for SQL yet: https://github.com/markusrt/NRZMyk/actions/runs/25628461114 |
Agent-Logs-Url: https://github.com/markusrt/NRZMyk/sessions/9168512f-6a8b-4326-8edb-ed1a353beb5d Co-authored-by: markusrt <299753+markusrt@users.noreply.github.com>
|
|
||
| -- Verification query (run before UPDATE) | ||
| SELECT * | ||
| FROM AntimicrobialSensitivityTest |
There was a problem hiding this comment.
@copilot please add the laboratorynumber and senderlaboratorynumber to this select via join so a human can verify the data is correct.
There was a problem hiding this comment.
Implemented in fb87f25. The verification SELECT now joins SentinelEntries and includes both SenderLaboratoryNumber and computed LaboratoryNumber so the affected rows can be reviewed by humans before running the UPDATE.
Agent-Logs-Url: https://github.com/markusrt/NRZMyk/sessions/9168512f-6a8b-4326-8edb-ed1a353beb5d Co-authored-by: markusrt <299753+markusrt@users.noreply.github.com>
Agent-Logs-Url: https://github.com/markusrt/NRZMyk/sessions/9168512f-6a8b-4326-8edb-ed1a353beb5d Co-authored-by: markusrt <299753+markusrt@users.noreply.github.com>
Implemented in |
Agent-Logs-Url: https://github.com/markusrt/NRZMyk/sessions/ba9bb53f-45f0-4aa3-ba6c-f1ccb0bcbfb0 Co-authored-by: markusrt <299753+markusrt@users.noreply.github.com>
Agent-Logs-Url: https://github.com/markusrt/NRZMyk/sessions/ba9bb53f-45f0-4aa3-ba6c-f1ccb0bcbfb0 Co-authored-by: markusrt <299753+markusrt@users.noreply.github.com>
Agent-Logs-Url: https://github.com/markusrt/NRZMyk/sessions/ba9bb53f-45f0-4aa3-ba6c-f1ccb0bcbfb0 Co-authored-by: markusrt <299753+markusrt@users.noreply.github.com>
|



Some
AntimicrobialSensitivityTestrows were labeled withTestingMethod = 1(Microdilution / “Mikrodilution”) even though they belong to Micronaut. This PR adds a focused data-fix script that remaps only the affected SentinelEntry ranges provided by the lab.What changed
Scripts/2026-05-10-FixTestMethodMikrodilutionToMicronaut.sql.SELECTthat joinsSentinelEntriesand includes:SenderLaboratoryNumberLaboratoryNumber(SN-<Year>-<YearlySequentialEntryNumber>)UPDATEfromTestingMethod = 1toTestingMethod = 3..sqlfluffto correctly configure SQL dialect (tsql) for CI linting.Update scope
TestingMethod = 1.1304–15981683–16931795–180119422788–2805Implementation snippet
Original prompt
This pull request was created from Copilot chat.