From 21410c219d8792fab605055149fd308593df98cc Mon Sep 17 00:00:00 2001 From: Ethan Steinberg Date: Sun, 28 Apr 2024 15:17:18 +0000 Subject: [PATCH] Add static event time --- src/meds/schema.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/meds/schema.py b/src/meds/schema.py index 095b0b8..2ce0ba7 100644 --- a/src/meds/schema.py +++ b/src/meds/schema.py @@ -21,6 +21,9 @@ birth_code = "SNOMED/184099003" death_code = "SNOMED/419620001" +# We define static events as always occurring on January 1st, 1 AD +static_event_time = datetime.datetime(1, 1, 1) + def patient_schema(per_event_properties_schema=pa.null()): # Return a patient schema with a particular per event metadata subschema