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

Measurement API Endpoint #609

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

Measurement API Endpoint #609

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

Comments

@vselvarajijay
Copy link
Collaborator

vselvarajijay commented May 4, 2024

Measurement

API Endpoint to collect measurements for a patient in a registry and query it

Acceptance Criteria

  • Endpoint to attach a new measurement to a patient
  • Endpoint to fetch all measurements for a patient
  • Endpoint to query al measurements for a patient give a measurement type (e.g, weight, PHQ-9, etc.)
  • Measurements can be filtered by its attributes (date, type, value)

API Routes

  • /v1/registry/{registry_id}/patient/{patient_id}/measurement/
  • /v1/registry/{registry_id}/patient/{patient_id}/measurement
  • /v1/registry/{registry_id}/patient/{patient_id}/measurement/{type}

Measurement Model

class Measurement(BaseModel):
    user_id: str
    registry_id: str
    measurement_id: str
    label: str
    value: float
    measured_at: float
    created_at: float
@vselvarajijay vselvarajijay added this to the Microservices Architecture with GraphQL milestone May 4, 2024
@vselvarajijay vselvarajijay self-assigned this May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant