Skip to content

Add emergency contact address to patient connectathon form#49

Open
mlaletina95 wants to merge 2 commits into
beda-software:mainfrom
mlaletina95:feat/patient-contact-address
Open

Add emergency contact address to patient connectathon form#49
mlaletina95 wants to merge 2 commits into
beda-software:mainfrom
mlaletina95:feat/patient-contact-address

Conversation

@mlaletina95

@mlaletina95 mlaletina95 commented Jun 25, 2026

Copy link
Copy Markdown

Ref: #47

Summary

  • Add contact-address group under contact-group (Emergency Contact) in patient-create-connectathon questionnaire — same PH Core address fields as patient address-group (use, line, region, province, city/municipality, barangay, city, district, postal code, country), with itemPopulationContext: %context.address
  • Extend patient-create-extract-connectathon mapper to persist Patient.contact.address on $extract
  • Use readable contact-address-* linkIds (instead of FCE-generated ids from Aidbox UI export)

Test plan

  • Reload seeds in Aidbox (watch-seeds or DB rebuild)
  • Open patient form — Emergency Contact section shows Address fields
  • $populate patient with contact.address — address fields prefilled (line, city, postal, PSGC extensions)
  • $extract round-trip — Patient.contact[0].address saved correctly
  • Create new patient with emergency contact + address via form UI

Marina and others added 2 commits June 25, 2026 10:50
Port Aidbox changes as-is: contact-address group with FCE linkIds and
matching extract mapper from patient-create-extract-connectathon.json.

Co-authored-by: Cursor <cursoragent@cursor.com>
Replace FCE-generated ids with contact-address-* names in questionnaire
and extract mapper, per review feedback.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant