What if you split up the periods into the 1-day facts and make it this way:
For the patient who had a fact of contact with another infected person, create the observation records:
observation_date = a date of 1-day fact.
observation_id = 37311059 (Exposure to SARS-CoV-2) or any of its children.
Then connect the exposure facts with the objects the exposure happened to through the fact_relationship table:
domain_concept_id_1 = 1147304 (Observation table).
fact_id_1 = id of the exposure fact.
domain_concept_id_2 = 1147314 (Person table).
fact_id_2 = id of the person the exposure happened to.
relationship_concept_id = there’s no good one, but custom “Event to Subject” is something you can start with.
Unfortunately, the analysis will be painful. To go from one individual to another the path would be:
PERSON - OBSERVATION - FACT_RELATIONSHIP - PERSON tables.