I'll have the API URL in a sec and will post below. OnClick of the button it should post to the API url as JSON an array of footprint objects representing a timeline, with following keys in each object:
patientId
date
time
latitude
longitude
After posting it should redirect the user to UpFrontForm (and return patientId to '' in order to show the form). Ultimately we we will want to redirect them to a /dataview route using react-router (dataview being part of DATA project in AirTable) but since that is not ready yet, this is an in-between step.
I'll have the API URL in a sec and will post below. OnClick of the button it should post to the API url as JSON an array of footprint objects representing a timeline, with following keys in each object:
After posting it should redirect the user to UpFrontForm (and return patientId to '' in order to show the form). Ultimately we we will want to redirect them to a /dataview route using react-router (dataview being part of DATA project in AirTable) but since that is not ready yet, this is an in-between step.