Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registry User API Endpoint #613

Open
vselvarajijay opened this issue May 4, 2024 · 0 comments
Open

Registry User API Endpoint #613

vselvarajijay opened this issue May 4, 2024 · 0 comments
Assignees
Labels
ms-mbc Microservice for Measurement Based Care

Comments

@vselvarajijay
Copy link
Collaborator

vselvarajijay commented May 4, 2024

Registry User

  • Link a user to a registry
  • Set their role type (patient, provider)

Acceptance Criteria

  • API endpoint to link a user to the registry
  • API endpoint to set a users relationship to the registry
  • API endpoint to update/remove the relationship

API Routes

  • POST /v1/registry/{registry_id}/user
  • GET /v1/registry/{registry_id}/user/{user_id}
  • PUT /v1/registry/{registry_id}/user/{user_id}

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
@vselvarajijay vselvarajijay added the ms-mbc Microservice for Measurement Based Care label May 4, 2024
@vselvarajijay vselvarajijay self-assigned this May 4, 2024
@vselvarajijay vselvarajijay changed the title User API Endpoint Registry User API Endpoint May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ms-mbc Microservice for Measurement Based Care
Projects
Status: Backlog
Development

No branches or pull requests

1 participant