Skip to content

Commit

Permalink
#184 add source on data_record
Browse files Browse the repository at this point in the history
  • Loading branch information
1yuv committed Nov 25, 2024
1 parent 52831fa commit f23e7cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions models/forms/data_record.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ SELECT
document_metadata.saved_timestamp,
to_timestamp((NULLIF(doc->>'reported_date'::text, ''::text)::bigint / 1000)::double precision) AS reported,
doc->>'form' as form,
doc#>>'{fields,inputs,source}' as source,
doc->>'from' as from_phone,

COALESCE(
Expand Down
2 changes: 2 additions & 0 deletions models/forms/forms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ models:
data_type: timestamp with time zone
- name: form
data_type: string
- name: source
data_type: string
- name: from_phone
data_type: string
- name: patient_id
Expand Down

0 comments on commit f23e7cb

Please sign in to comment.