RELEASE: OpenCRVS integration & Form schema updates#62
Merged
phrogwrld merged 67 commits intoproductionfrom Jan 30, 2026
Merged
RELEASE: OpenCRVS integration & Form schema updates#62phrogwrld merged 67 commits intoproductionfrom
phrogwrld merged 67 commits intoproductionfrom
Conversation
* fix: update schema to match figma * fix: update form schema and validations for empty strings
* fix: update schema for deceased form to match figma * fix: gracefully fail if unable to connect to smtp server
…sell-goods-services fix (forms): Added missing schema validations for Sell Goods and Services on Beach
fix: add missing form field to form schema
…amme-schema chore: Update schema for "YDP community sports programme" to use nested values
…tificate-forms Fix (forms): Add contact info fields to certificate forms
* feat: add opencrvs integration * Updated Keys For Birth Form Submission * Added birth place address for Open CRVS submission * Fixed Validations + Updated Mapping * Added Informant Info + Fixed Alive Stats * Made Email Dynamic --------- Co-authored-by: ihtishamtanveer <ihtishamtanveer992@gmail.com> Co-authored-by: = <=>
…ange Revert changes to schemas/register-birth-form.json from commit 4ab1178
Send confirmation emails when payment is successfully processed via webhook: - Admin emails: sent to addresses configured in `confirmationEmailTo[]` array - Customer email: sent to address configured in `customerEmail` field Changes: - Add `confirmationEmailTo` (string[]) and `customerEmail` fields to PaymentProcessorConfig - Store email config in payment metadata for use during webhook processing - Inject EmailService into PaymentWebhookService - Send emails in processSuccessfulPayment() with submission ID in subject - Create payment-confirmation.hbs template for admin notifications - Create payment-confirmation-customer.hbs template for customer receipts
… email and telephone fields (#67)
…rm-schemas feat: add payment processor for post office related forms
Ethical-Ralph
requested changes
Jan 26, 2026
| opencrvs: opencrvsResult.success | ||
| ? { | ||
| success: true, | ||
| message: 'Birth registration submitted successfully', |
Collaborator
There was a problem hiding this comment.
Can we not hardcode this message even if only Birth registration is supported at the moment
this will become hard to manage when we need to support other forms
We should make it dymanic
| const isLocalhost = this.configService.get<boolean>('opencrvs.localhost'); | ||
|
|
||
| if (isLocalhost) { | ||
| this.authBaseUrl = 'http://localhost:4040'; |
Collaborator
There was a problem hiding this comment.
We do not need to hardcode these here
The localhost url can go in the env for opencrvs.authBaseUrl, opencrvs.eventsBaseUrl and opencrvs.locationsBaseUrl
We do not need to check for localhost specifically.
Fix (form): Fixed issue causing declaration page to not render correctly
* Update email template to match physical form structure * Added helper to get current date when sending an email * Updated structure to better match new figma design * Added missing `.` in title * Increased line height for info box * Updated Birth certificate admin email to match the updated structure * Added header to marriage certificate * Updated template for marriage certificate * Updated styling and typography * Added titleCase helper, and applied it to applicant.title * Fixed missing closing if statements * Fixed issue with incorrect if statement * Fixed issue where h2 tag was not closed * Removed unneeded message about multiple emails * Now sanitzes input better for titleCase helper * Cleaned up content to match suggestions --------- Co-authored-by: Akinola Raphael <54055273+Ethical-Ralph@users.noreply.github.com>
* Update email template to match physical form structure * Added helper to get current date when sending an email * Updated structure to better match new figma design * Added missing `.` in title * Increased line height for info box * Updated Birth certificate admin email to match the updated structure * Added header to marriage certificate * Updated template for marriage certificate * Updated styling and typography * Added titleCase helper, and applied it to applicant.title * Fixed missing closing if statements * Fixed issue with incorrect if statement * Fixed issue where h2 tag was not closed * Removed unneeded message about multiple emails * Now sanitzes input better for titleCase helper * Cleaned up content to match suggestions --------- Co-authored-by: IsaiahSama <isaiahcarrington46@gmail.com>
Fix (Forms): JobStartPlus - 'Willing to work at night' is now optional
chore: update sell goods/services schema
…ion-from-po-forms Update (Temporary): Removed payment integration for the PO forms
…hanges Update (Form): Updated schema and email template to match changes for redirect-individual-mail
…n 401 (#84) - Add OpenCRVSCacheService using node-cache for TTL-based caching - Implement automatic token refresh with 5-minute buffer before expiry - Add authenticatedFetch helper that retries once on 401 expired token - Replace manual token/location caching with node-cache service
…hanges Chore (Form): Update Redirect-Deceased-Mail to match Figma
…hanges Update (Form): Updated schema and email template to match changes for redirect-business-mail
chore: remove uploadDocumentUrls field from post-office-redirection-d…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces comprehensive OpenCRVS (Open Civil Registry Vital Statistics) integration for birth registration processing, along with multiple form schema improvements, payment processing enhancements, and validation updates. The release includes major new features enabling automated birth event registration with OpenCRVS and payment integration for certificate forms.
Type of Change
Changes Made
OpenCRVS Integration (Major Feature)
opencrvs.service.ts- Core service for OpenCRVS API communicationbirth-registration.mapper.ts- Data mapping from form to OpenCRVS formatopencrvs.processor.ts- Processor implementation for birth registration pipelinePayment Integration (Major Feature)
Form Schema Updates
Post Office Redirection Forms
Certificate Forms
Other Forms
Core Service Enhancements
forms.service.tsto support OpenCRVS and payment processor integrationform-schema.interface.tswith processor configuration supportconfiguration.tswith OpenCRVS and payment settingsprocessor-pipeline.service.tsto handle new processorsprocessors.module.tstitleCasehelper andcurrentDatehelper for email templatesBug Fixes
Related PRs Included
Testing
Checklist