+
Skip to content

[Location Hierarchy] Add Support for Recreating Ancestor Lineage Across All Locations #328

Open
2 of 2 issues completed
@dubdabasoduba

Description

@dubdabasoduba

Context

  • Enhance the LocationHierarchy endpoint to support two new query parameters:
    • recreate-lineage=true – Triggers the recalculation and updating of ancestor lineage tags for all Location resources in the hierarchy.
    • hierarchy-root-location=uuid – Specifies the UUID of the root location for the hierarchy to be updated.
  • If the hierarchy-root-location parameter is provided, the lineage recalculation process will start from the specified root location instead of automatically identifying the root.

Implementation

  • When the LocationHierarchy endpoint is called with recreate-lineage=true, the system should initiate a lineage recalculation process. The process should traverse the location hierarchy starting from the root location.
  • The root location must be explicitly specified using the hierarchy-root-location parameter.
    • his parameter is mandatory. If it is not provided, the endpoint should return an error response.
  • The lineage identification and addition should work as described here [Location Hierarchy] Enable storing ancestor tags on all locations. fhir-gateway-extension#110

Acceptance Criteria

  • The location hierarchy endpoint should have the ability to recreate the location ancestor tags.
  • The hierarchy-root-location is a mandatory parameter on the API if recreate-lineage=true is available.

Sub-issues

Metadata

Metadata

Assignees

Labels

EnhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载