Dear Community,
Weโre thrilled to announce the release of the new OpenCRVS Adaptor v1.0.0, designed to enable you conduct civil registration faster.
You can read the full details of the new Adaptor here.
Features
- Create a birth notification
- Make a
POSTrequest to OpenCRVS to create a birth notification.
createBirthNotification([
{
fullUrl: 'urn:uuid:abcde',
resource: {
resourceType: 'Composition',
section:[
{
title: "Mother's details",
code: {
coding: [
{
system: 'http://opencrvs.org/specs/sections',
code: 'mother-details',
},
],
text: "Mother's details",
},
entry: [
{
reference: 'urn:uuid:wxyz',
},
],
}
// ... other section details
]
// ... other resource details
},
},
{
fullUrl: 'urn:uuid:wxyz',
resource: {
resourceType: 'Patient',
// ... other resource details
},
},
]);
- Make a request to OpenCRVS to query an event
queryEvents(
{
event: 'birth',
registrationStatuses: ['REGISTERED'],
childGender: 'male',
dateOfRegistrationEnd: '2022-12-31T23:59:59.999Z',
dateOfRegistrationStart: '2021-11-01T00:00:00.000Z',
declarationJurisdictionId: '',
eventLocationId: 'abcde-efg',
fatherFirstNames: 'Dad',
motherFirstNames: 'Mom',
},
);
Example Workflow
Hereโs a real-world example from our Solutions Engineer โ a workflow that fetches new birth data from dhis2 and creates a birth record in OpenCRVS.
