Update Platform To Use lab_code_1
Instead of collecting_institution
#368
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Description
lab_code_1
oncore.Profile
and expose helpers that always return a valid string (auto-populating from the lab catalogue when needed)access control
(get_available_samples_for_user, intranet views, search table, dash selectors) to filter by lab_code_1, falling back to the legacy name only when a code is missingpre-processing pipelines
(samples_per_date_all_lab_detailed, search_samples_summary) and their consumers to serialise datasets keyed by lab_code_1, while keeping collecting_institution asdisplay metadata
.API endpoints
(create_sample_data, check_sample_exists) socollecting_institution_code_1
is the authoritative identifier; derive and normalise collecting_institution via ensure_lab_display before fingerprints are computed