akello-io / akello

Measurement based care infrastructure for absolutely everyone
https://akello.io
Apache License 2.0
35 stars 19 forks source link

Registry User API Endpoint #613

Open vselvarajijay opened 5 months ago

vselvarajijay commented 5 months ago

Registry User

Acceptance Criteria

API Routes

Model

class RegistryUser(BaseModel):
    """
    Stores the relationship between a User from the User Account Microservice and a Registry
    Providers and Patients will be mapped in this object and classified by the role field
    """
    registry_id: str
    user_id: str
    role: str
    state: str
    flags: dict[str, bool] = {}
    created_at: Decimal
    is_enabled: bool