Module demographics

Source
Expand description

Patient demographics management.

This module provides functionality for initialising and updating patient demographic information within the VPR system. It handles:

  • Creation of new patient records with unique UUIDs
  • Storage in a sharded directory structure under patient_data/demographics/
  • Version control using Git with signed commits
  • Updates to patient name and birth date information

§Storage Layout

Demographics are stored as YAML files in a sharded structure:

demographics/
  <s1>/
    <s2>/
      <uuid>/
        patient.yaml    # FHIR-aligned patient resource
        .git/           # Git repository for versioning

where s1 and s2 are the first four hex characters of the UUID, providing scalable directory sharding.

§Pure Data Operations

This module contains only data operations—no API concerns such as authentication, HTTP/gRPC servers, or service interfaces. API-level logic belongs in api-grpc, api-rest, or api-shared.

Structs§

DemographicsService
Service for managing patient demographics operations.
Initialised
Marker type: demographics record exists.
Uninitialised
Marker type: demographics record does not yet exist.