Skip to content

Commit

Permalink
Re-add static measurements
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcdermott authored Feb 15, 2024
1 parent 274ba5c commit d192cc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/meds/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def patient_schema(per_event_metadata_schema=pa.null()):
patient = pa.schema(
[
("patient_id", pa.int64()),
("static_measurements", pa.list_(measurement)),
("events", pa.list_(event)), # Require ordered by time
]
)
Expand All @@ -61,7 +62,7 @@ def patient_schema(per_event_metadata_schema=pa.null()):

Event = TypedDict("Event", {"time": datetime.datetime, "measurements": List[Measurement]})

Patient = TypedDict("Patient", {"patient_id": int, "events": List[Event]})
Patient = TypedDict("Patient", {"patient_id": int, "static_measurements": List[Measurement], "events": List[Event]})

############################################################

Expand Down

0 comments on commit d192cc6

Please sign in to comment.