10 Sample implementation

This section shows possible sample implementations, such as Issuing Birth Certificate; Appointment Booking With a Health Care Worker

Use Case Tables and Component diagrams

This is a high-level overview of how the Messaging BB acts internally, but also to cover the expectation for a third party to deliver requests (to and from).

Birth Certificate to Children

This is a Use Case Table to cover providing a birth certificate to a child.

Name

Messaging – Birth Certificate to Children

Description

The use case explains the implementation of the messaging for the birth certificate to minor children.

Main Benefits

1. Provides permanent and official record of a child’s existence.

2. Provides right to an official identity, a recognized name, and a nationality.

3. Provides essential element of national planning for children since it provides a demographic base.

Trigger

(the event that triggers the use case)

  1. The birth registry at hospitals/municipalities-driven.

  2. Citizen-driven and digital application.

  3. Citizen-driven and paper-based application.

Preconditions

(list of conditions that MUST be met in order for the use case to be successful)

  1. The application admin/user is logged into the system and has sufficient privileges to use the system.

  2. A Messaging Policy exists and is based on existing electronic data handling laws and regulations.

  3. Registry of birth exists for digital processing.

  4. Workflow for processing of birth verification and certificate attestation exists.

  5. Assumption: Parent/Guardian is in possession of a digital communication device and an application, capable of receiving and sending messages.

  6. Assumption: The messaging is happening in the language of comprehension for the user.

  7. Assumption: Government/GovStack implementation has Building Blocks namely Identity and Authentication, Registration and Workflow in operation.

  8. Assumption: Government/GovStack implementation has web and mobile-supported technologies such as Push/Pull SMS, IVRS, Mobile-enabled Web Interface, Mobile App, etc.

Data inputs

  1. Registration Details

  2. Application Form Details

  3. Required Documents

3.1 A copy of the birth proof

3.2 A copy of the passport of both the parents

3.3 A copy of the certificate of citizenship if acquired by registration/naturalization

3.4 A copy of the marriage certificate of the parents

3.5 Declaration letter that the child does not hold the passport of any other country

3.6 Scan the documents in PDF format

3.7 Each document can have multiple pages

3.8 The size of each document should not exceed 1 Mb (illustrative)

4. Image

4.1 Passport size photo of the applicant

4.2 Image Dimension of Photograph should be 100(Width) * 120(Hight) Pixel only (illustrative)

4.3 Size of the scanned image is not more than 20kb (illustrative)

4.4 Uploading image should be in jpg format only (illustrative)

4.5 Use the Picture manager for resizing the image

Actors

(a person, a company or organisation, a computer program, or a computer system - hardware, software, or both)

  1. The application admin/user who configures the messaging policy (A person, IT admin).

  2. Applicant (A person, Citizen).

  3. Maker/Checker/Approver (A person, Government/Authorized official).

  4. The birth certificate provider application (A computer system).

  5. Auditors (A person, or an independent authority).

  6. Registration Block –Birth Registry, Marriage Registry, etc. (A computer system).

  7. Identity and Authentication Block for checking the Identity of the applicant, parent (A computer system).

  8. Workflow Block for rule-based processing (A computer system).

  9. Email for communication (A system).

  10. Mobile – Push/Pull/IVRS/USSD/App (A system).

  11. Web Application (A computer system).

Normal Course (what happens if the event is triggered and the preconditions have been met)

  1. Acknowledgment message for receipt of application.

  2. Birth certificate approval message.

  3. The Messaging Building Block application user can invoke the identity and authentication Building Block, registry Building Block and workflow Building Block for e-auth (electronic authentication), birth entry, and rule-based processing respectively.

Alternative Course

(links to other use cases in case there are different ways how to solve the same use case)

-

Data output

The messaging Building Block can send a message to applicants through email or SMS. The types of message(s) include:

  1. Acknowledgement of application receipt;

  2. Application progress status;

  3. Duly signed Birth certificate.

Post-Conditions (the success criteria)

  1. The conformance check including metadata and data standard validation of the message is done.

  2. The exceptions are communicated to the system (through error code and message) and to the user through message.

  3. The accepted message is passed on to the Workflow Building Block, which in return, may make use of Registration, Identity, Security, and Consent Building Blocks.

  4. The system is configured and ready for routing messages during a workflow.

  5. User feedback is taken on messaging and factored in.

Exceptions

(error situations)

In case of any configuration change in messaging or any error in the processing of messaging:

1. An error message is displayed and communicated back to the system that made the request.

2. An error message is communicated in easy-to-understand language to the impacted user.

Related Building Blocks

(related to that particular use case)

  1. Identity Building Block - for acquiring authentication token.

  2. Workflow Building Block – for workflow management.

  3. Registries Building Block – for storing the data.

  4. Information Mediator Building Block - providing interfaces and publishing the Building Block services, routing policy, etc.

  5. Security Building Block – for supervision and safety.

  6. Consent Building Block - for using personal data.

  7. Payment Building Block – for making delayed payment.

Messaging

Examples

  1. Sample Message – Email for user registration

User XXXX has been registered successfully.

User ID: XXXX

Please click here to reset the password or copy the link to your browser

<weblink>

  1. Sample Message – SMS for birth certificate approval

Birth Certificate Approved, please make a note of Acknowledgement Number for Future Reference '1202117XXXXX'—Govt. Organization Name.

Best Practices

  1. Birth certificate in Digital Locker

Digital Locker to provide lifelong access to authentic digital documents to citizen’s digital document wallet. The issued documents in Digital Locker system are deemed to be at par with original physical documents as per rule.

Appointment booking confirmation for health services

This is a Use Case Table to cover the process of confirming an appointment booking when using health services.

ID

Description

Name

Messaging – Appointment booking confirmation for health services.

Description

The use case explains the implementation of the Messaging Building Block for the confirmation and acknowledgment of appointment booking of health services.

Main Benefits

1. Provides a clear and accessible path for citizens to confirm appointment booking through different digital messaging channels (SMS, email, WhatsApp, Voice message, etc.);

2. Provides transparency for the citizens that need to move to a health facility to consume services;

3. Provides efficient usage of the health services by occupying booking slots accordingly to the demand.

Trigger

(the event that triggers the use case)

  1. Citizen registers an appointment booking through digital messaging channels.

  2. Citizen-driven and digital messaging channels.

Preconditions

(list of conditions that MUST be met in order for the use case to be successful)

  1. The application admin/user is logged into the system and has sufficient privileges to use the system,

  2. A Messaging Policy exists, based on existing electronic data handling laws and regulations.

  3. Citizens are previously registered.

  4. Workflow for registering an appointment booking exists.

  5. Assumption: Parent/Guardian is in possession of a digital communication device and an application, capable of receiving and sending messages.

  6. Assumption: The messaging is happening in the language of comprehension for citizens.

  7. Assumption: Government/GovStack implementation has Building Blocks namely Identity and Authentication, Registration and Workflow in operation.

  8. Assumption: Government/GovStack implementation has web and mobile-supported technologies such as Push/Pull SMS, IVRS, Mobile-enabled Web Interface, Mobile App, etc.

Data inputs

  1. Citizen Registration Details;

  2. Message minimal data such as Unique Material Identifier (UMID), content, policy, and priority.

Actors

(a person, a company or organisation, a computer program, or a computer system - hardware, software, or both)

  1. The application admin/user that configures the messaging policy. (A person, IT admin).

  2. Applicant (A person, Citizen).

  3. Scheduler Block for setting up events that triggers a message (A computer system).

  4. Registration Block – Birth Registry, Marriage Registry, etc. (A computer system).

  5. Identity and Authentication Block for checking Identity of an applicant, parent (A computer system).

  6. Workflow Block for rule-based processing (A computer system).

  7. Email for communication (A system).

  8. Mobile – Push/Pull/IVRS/USSD/App (A system).

  9. Web Application (A computer system).

Normal Course (what happens if the event is triggered and the preconditions have been met)

  1. Acknowledgment message about an appointment booking with the information given by the input;

  2. Citizen answers the message about the appointment booking;

  3. Messaging Building Block application delivers the citizen input to the Workflow Building Block that handles it properly.

Alternative Course

(links to other use cases in case there are different ways how to solve the same use case)

-

Data output

The Messaging Building Block can send and receive messages from citizens through different communication channels, and keep the status of the delivery along with metadata about it.

Post-Conditions (the success criteria)

  1. The conformance check including metadata, data standard validation of message is done.

  2. The exceptions are communicated to the system (through error code and message) and to the user through message.

  3. The accepted message passed on to the Workflow Building Block, which in return, may make use of Registration, Identity, Security, and Consent Building Blocks.

  4. The system is configured and ready for routing messages during a workflow.

  5. User feedback is taken on messaging and factored in.

Exceptions

(error situations)

In case of any configuration change in messaging or any error in the processing of messaging:

1. An error message is displayed and communicated back to the system that made the request.

2. An error message is communicated in easy-to-understand language to impacted users.

Related Building Blocks

(related to that particular use case)

  1. Identity Building Block - for acquiring authentication token.

  2. Scheduler Building Block - for scheduling events.

  3. Workflow Building Block – for workflow management.

  4. Registries Building Block – for storing the data.

  5. Information Mediator Building Block - providing interfaces and publishing the Building Block services, routing policy, etc.

  6. Security Building Block – for supervision and safety.

  7. Consent Building Block - for using personal data.

Messaging

Examples

  1. Sample Message – Appointment Booking Confirmation XXXX, can you confirm an appointment booking for the service ZZZZ scheduled for YYYY? (Answer with YES to confirm or NO otherwise).

  2. Sample Message – Appointment Reminder XXXX, you have an appointment booking confirmed for YYYY, make sure to be prepared for the event as follows: ZZZZ.

Best Practices

  1. The content of the messages may have as much information as possible to the citizen but respecting the restrictions of the communication channel used such as the content length of messages;

  2. The frequency of the confirmation messages should take into consideration the regulations of each country to avoid blacklisting a communication channel considered spam.

Alert Message

This is a Use Case Table to cover the process of sending alert messages.

Name

Messaging – Alert

Description

The use case explains the implementation of the messaging for alerts especially alerts linked to cyclone disaster management.

Main Benefits

1. Prevent the loss of lives (human and animal) and livelihood.

2. Coordinated efforts for previous, during, and post-disaster events.

Trigger

(the event that triggers the use case)

  1. Early warning on cyclone.

  2. Early warning on a flood.

It can be customized for warning on landslides and/or earthquakes.

It can be tailored and customized for alerts on banking and covid/healthcare.

Preconditions

(list of conditions that MUST be met in order for the use case to be successful)

  1. The application admin/user is logged into the system (mobile, computer, TV, and/or Radio) and has sufficient privileges to use the system,

  2. A Messaging Policy exists and is based on existing electronic data handling laws and regulations.

  3. Common Alert Protocol is in place for synergies among Government Institutions.

  4. Early Warning System is in place.

  5. Observation is available from space (satellites), upper air (Balloon, Radar, Aircraft), and surface (Automatic Weather Station, Automatic Raingauge Station, surface synoptic observations, etc.).

  6. Language translation system and moderator are in place.

  7. Workflow for processing disaster-related data exist.

  8. Assumption: Government Agencies and Residents are in possession of a digital communication device and an application, capable of receiving and sending messages.

  9. Assumption: The messaging is happening in the language of comprehension for the user.

  10. Assumption: Government/GovStack implementation has Building Blocks namely Identity and Authentication, Registration and Workflow in operation.

  11. Assumption: Government/GovStack implementation has web and mobile-supported technologies such as Push/Pull SMS, IVRS, Mobile-enabled Web Interface, Mobile App, etc.

Data inputs

  1. Warning Message for disaster.

  2. What-to-do Message regarding pre-, during, and post-disaster.

  3. Language localization of message.

  4. Friendliness of messages towards disabled people.

  5. Mobile and Email Database.

  6. Geographical and location-based targets for alert messages on a disaster.

  7. Directory of Telecom Service Providers, Social Media Influencers, Government Institutions, Language Translators.

Actors

(a person, a company or organisation, a computer program, or a computer system - hardware, software, or both)

  1. The application admin/user who configures the messaging policy (A person, IT admin).

  2. Message consumer (A person, Resident).

  3. Government Agencies (Institutions).

  4. Language Translation Moderator (A Person, Expert).

  5. Early Warning System.

  6. Email for communication (A system).

  7. Mobile – Push/Pull/IVRS/USSD/App (A system).

  8. Web Application (A computer system).

  9. TV, Radio, social media (A system).

Normal Course (what happens if the event is triggered, and the preconditions have been met)

  1. Message to Government Institutions through Email, Telephone, Police Wireless, or Website.

  2. Message to the Public through Email, SMS, Radio, TV, social media, Newspaper (Electronic & Print Media), or Website.

  3. Message to marine through NAVTEX (NAVigational TEleX), Telephone, Telefax, or Broadcast.

Alternative Course

(links to other use cases in case there are different ways how to solve the same use case)

-

Data output

The Messaging Building Block can send alert messages to concerned institutions and persons. The types of message(s) include:

  1. Voice Alert Message

· With the help of Telecom Service Providers using Outbound Dialler (OBD) infrastructure in local languages.

· With the help of Radio.

  1. Text Alert Message

· With the help of Telecom Service Providers using SMS.

· With the help of an email database.

· With the help of social media/website.

  1. Image and video alert message

· TV.

· Electronic and Print Media – Newspaper, Bulletins.

Post-Conditions (the success criteria)

  1. The conformance check including metadata, data standard validation of message, and adherence to common alert protocol is done.

  2. The exceptions are communicated to the system (through error code and message) and to the user through message.

  3. The accepted message is passed on to the Workflow Building Block, which in turn, may make use of Registration, Identity, and Security. Security Building Block to take care of PI data in a personalized alert message.

  4. The system is configured and ready for routing messages during a workflow.

User feedback is taken on messaging and factored in.

Exceptions

(error situations)

In case of any configuration change in messaging or any error in the processing of messaging

1. An error message is displayed and communicated back to the system that made the request.

2. An error message is communicated in easy-to-understand language to the impacted user.

Related Building Blocks

(related to that particular use case)

  1. Identity Building Block - for acquiring authentication token.

  2. Workflow Building Block – for workflow management.

  3. Registries Building Block – for storing the data.

  4. Information Mediator Building Block - providing interfaces and publishing the Building Block services, routing policy, etc.

  5. Security Building Block – for supervision and safety.

  6. Consent Building Block - for using personal data.

  7. Payment Building Block – for making delayed payments.

Messaging

Examples

Sample Message – SMS for cyclone alert

Warning! Cyclone XXXXX will make landfall on Xth Day, 20XX. The wind speed may go up to 180kmph. Please stay at home, be safe. Or please go to the nearest cyclone shelter.

Best Practices

· Mass Messaging System.

· Universal Communication Interface.

· Reliable SMS Code.

· Common Alert Protocol.

· Warning through SMS (Pull SMS Push SMS).

· Mobile App Solution: - Notification through a unified mobile app – UMANG (Unified Mobile App for New-Age Governance).

· Voice/text bot.

· Warning Through social media: WhatsApp, Facebook, Twitter, and Mobile Apps.

· Electronic and Print Media for Publicity and Broadcast of Warning: National/Regional Bulletin, Poster and Films, Radio and TV Talks, and Newspapers.

· Mode of Dissemination: FAX, GTS, Email, SMS, FTP, Internet, Website, Telephone, Tale-fax, VHF/HFRT, Radio/TV network, IVRS (Interactive Voice Response System) Toll-Free Number, NAVTEX.

User Journeys with Use Case Tables

User Journey for post-partum mother and childcare

This is a sample user journey to cover post-partum mother and child care.

User Journey

Use Case

Capability

Functional Requirements

Technical Requirements

Post-partum mother and child care

Mother Registration

Inform the mother about registration through different modalities (SMS[1] , email, WhatsApp, Voice message etc.).

See the functional requirements and technical requirements.

Workflow, preconditions such as phone number/contact.

The user needs to register/connect its contact data to the Messaging Building Block (mailID, phone no etc)[2] [3] [4] or another Building Block.

For example, a) direct MSG Type (Emergency) has concrete API endpoints, blasting all channels/endpoints. Business logic and policy in separate Building Blocks can add MSG type, address: who-to-send-to, MSG channel etc.

In reverse communication, a unique identifier is created per user upon registering at the Messaging Building Block.[5] [6] Allowing push and pull models. To be able to understand and apply a routing policy in the particular Application,enabling the Messaging Building Block for routing the Message [7] [8] through specific channels [9] [10] and graceful degradation.

OpenAPI specifications for calling this function; resource models and data structures; [11] internal and external interfaces.

Stateless architecture.[12] Microservices require Rabbit MQ; Apache/Kafka or GRPC[13] [14] for data transfer speed purposes. Databases with unstructured data should be treated with Elasticsearch/Logstash. [15] [16]

Similarly to the client-to-client pubsub model also the end users can be registered as Message queue clients/subscribers in the Messaging Building Block. Subscription is required to receive a message.[17] [18] The message is put in the queue and communicated to the other Building Blocks[19] [20].

Mother confirmation of a child registration

Mother receives a confirmation registration message with a token that identifies that event for future interactions.

Appointment booking

Asking the mother for the booking confirmation of a doctor or vaccination appointment through different communicable channels (SMS, email, WhatsApp, Voice message, etc.).

Appointment reminder

Reminding the mother about the booking.

Use Case Table for post-partum mother and childcare

ID

UC-C-PIC-001

Name

Messaging - Postpartum and infant care (Configuration).

Description

The use case implements configuration of a Messaging Gateway in infant care use case scenarios. This results in a saved configuration to be issued to all mothers requiring infant care.

Trigger (the event that triggers the use case)

  1. The (healthcare) application admin/user wishes to configure the policies and assign user contact details associated with the Messaging service.

  2. Any change in the pre-condition that requires a re-configuration.

Preconditions (list of conditions that MUST be met in order for the use case to be successful)

  1. The application admin/user is logged into the system and has sufficient privileges to use the system.

  2. A Messaging Policy exists, based on existing electronic data handling laws and regulations.

  3. Assumption: The mother is in possession of a digital communication device and an application, capable of receiving and sending messages.

  4. Assumption: Government/GovStack implementation has an agreement and API GW with the service providers for transmitting text and voice messages, setting up conference calls.

Data inputs

  1. Existing data policies relevant to the messaging scenario.

  2. Contact information of end users accessed in another system or[21] [22] transmitted along the Messaging Request by another GovStack Building Block./Application.

  3. Any legal information, standards.

Actors (a person, a company or organisation, a computer program, or a computer system - hardware, software, or both)

  1. The application admin/user who configures the messaging policy (a person, IT admin)

  2. The health-care provider application (a computer system).

  3. Data Protection Officer, Auditors (A person, or an independent authority).

  1. GovStack application (HealthCareProvider Application, Workflow, Information Mediator) triggers a Message to be sent with an appropriate policy metadata.

Information Mediator publishes the services of the Messaging Building Block for the other Building Block to use (with available policies). When another Building Block discovers Messaging, it receives X number of policies. Metadata says which policy to pick and where to route it to.

Note from the Information Mediator: in order to make your Building Block service available on GovStack, you have to register those services (Open API specs and have a specific business agreement signed between the parties/applications/services).

Normal Course (what happens if the event is triggered and the preconditions have been met)

  1. The Messaging Building Block application user is able to invoke the configuration workflow.

  2. The healthcare application user uses the existing Messaging Building Block policy and relevant metadata about the user for registering for postpartum and infant care. This policy could be signed off by the organisation's Data Protection Officer, for example:

The data required are:

  • Usage purpose.

  • Data policies and rules.

  • Define what data is being collected.

  1. The configuration is saved.

  2. Once the DPO approves, the configuration is published toward the end-use case, i.e. Healthcare Professional registration system.

Alternative Course (links to other use cases in case there are different ways how to solve the same use case)

  1. Data configuration error scenarios.

  2. Data Protection Officer disapproves and the configuration is re-submitted for review and approval.

Data output

  1. The Messaging Building Block policy configuration data.

Post-Conditions (the success criteria)

  1. The Messaging policy is saved in the system and is published in the Information Mediator, making it available for use in the registration process.

  2. The system is now configured and ready for routing messages during a workflow.

Exceptions (error situations)

In case the policy has not been configured, an error message is displayed and communicated back to the system that made the request.

Related Building Blocks (related to that particular use case)

Identity Building Block (Required for acquiring authentication token).

Workflow Building Block - workflow management.

Registries Building Block - stores the data agreement data.

Information Mediator Building Block - providing interfaces and publishing the Building Block services, routing policy, etc.

Security Building Block - supervision.

Consent Building Block - for using personal data.

Interaction with a third-party application

In case of applying additional business logic-related functionality, third-party applications must be used.

Using a Scheduling BB to send reminder messages, etc. via Messaging BB.

Interaction with Scheduling Building Block

Reminder messages, time-based triggers.

  1. Appointment booking confirmation, where there are two levels of confirmation:

  • Immediate confirmation: I have received the message.

  • I have deposited a message, and have given the message a token number. And on the basis of this, I can pick up the message or a reply later.

  1. Reminder message is already there and an event will trigger it.

  2. Event notification, trigger: for example: please join the call.

Last updated

Copyright © 2024