Skip to content

Conversation

@skeating
Copy link
Contributor

Adds fields to represent location metadata.

Adds rptGrpNine, isWardOrFlowArea, and isCoreInpatientArea to department and location metadata. Populates these fields in test data.

Adds fields to represent location metadata.

Adds rptGrpNine, isWardOrFlowArea, and isCoreInpatientArea to department and location metadata.
Populates these fields in test data.
@github-actions
Copy link

PR checklist

Default guide for a PR (if multiple PRs for the work, only keep one version of it and link to it on the other PRs)

  • From the UCLH data science desktop, a validation run has been set off
  • Check that content that reveals Epic IP (eg. Clarity/Caboodle queries) has not been checked into a public repo.
  • load times
    in UCL teams has been populated with the run information
  • During the run, glowroot has been checked for any queries which are taking a substantial proportion of the
    total processing time. This can be useful to identify indexes that are required.
  • After the run, look for any unexpected errors in the etl_per_message_logging table, the error_search.sql file
    on the shared drive can be used for this \\sharefs6\UCLH6\EMAP\Shared\EmapSqlScripts\devops\error_search.sql.
    Create an issue if you find an unexpected exception and is not related to the changes you've made, otherwise
    fix them!
  • After the run, populate the end time in
    load times
  • Let Aasiyah know about the completed validation and give her information on the changes and where to start
    with the validation
  • Check validation report and give any feedback to Aasiyah if there are any changes needed on her side,
    iterate on getting the validation to match at least 99% (validation and emap code).

Adds new fields to DepartmentMetadata to capture extra
information about departments, such as whether they are a ward,
flow area, or core inpatient area.
Adds `isWardOrFlowArea` and `isCoreInpatientArea` flags to the Department and DepartmentState entities.

These flags indicate whether a department is a ward or flow area and whether it is a core inpatient area, respectively.

Adds logic to update these flags in the database when processing location metadata.
Also adds validation to ensure that previous values of these flags match the database values before invalidating previous states.
@skeating skeating closed this Oct 19, 2025
@skeating skeating deleted the sarah_add_location_metadata branch October 19, 2025 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants