শেয়ার্ড হেলথ রেকর্ড

ম্যানেজমেন্ট ইনফরমেশন সিস্টেম (এমআইএস)

Looking for help?
< All Topics
Print

Seed data set up

Seed data from registries

There are pipelines to set up such data in environments.

Bahmni – Bahmni-Seed-Data -> installs locations,facilities,providers[BDSHR-604]

MCI – MCI-Seed-Data -> installs locations[BDSHR-621]

We have representative data (source: HRM test) on our test instances so that we can figure out any data issues that we might face.

In integrated environments not using stub registries, we work with test instances of HRM (hrmtest). Also to avoid frequent pings to the registries from our test servers, we often advance the markers.

for example: update the markers table only on *test instances*

Bahmni:

update markers set feed_uri_for_last_read_entry=’http://hrmtest.dghs.gov.bd/api/1.0/locations/list/district?offset=0&limit=100&updatedSince=2015-03-01 00:00:00′ where feed_uri=’urn://lr/districts‘;
update markers set feed_uri_for_last_read_entry=’http://hrmtest.dghs.gov.bd/api/1.0/locations/list/division?offset=0&limit=100&updatedSince=2015-03-01 00:00:00′ where feed_uri=’urn://lr/divisions‘;
update markers set feed_uri_for_last_read_entry=’http://hrmtest.dghs.gov.bd/api/1.0/locations/list/paurasava?offset=0&limit=100&updatedSince=2015-03-01 00:00:00′ where feed_uri=’urn://lr/paurasavas‘;
update markers set feed_uri_for_last_read_entry=’http://hrmtest.dghs.gov.bd/api/1.0/locations/list/union?offset=0&limit=100&updatedSince=2015-03-01 00:00:00′ where feed_uri=’urn://lr/unions‘;
update markers set feed_uri_for_last_read_entry=’http://hrmtest.dghs.gov.bd/api/1.0/locations/list/upazila?offset=0&limit=100&updatedSince=2015-03-01 00:00:00′ where feed_uri=’urn://lr/upazilas‘;
update markers set feed_uri_for_last_read_entry=’http://hrmtest.dghs.gov.bd/api/1.0/locations/list/ward?offset=0&limit=100&updatedSince=2015-03-01 00:00:00′ where feed_uri=’urn://lr/wards‘;
update markers set feed_uri_for_last_read_entry=’http://hrmtest.dghs.gov.bd/api/1.0/facilities/list?offset=0&limit=100&updatedSince=2015-03-01 00:00:00′ where feed_uri=’urn://fr/facilities‘;
update markers set feed_uri_for_last_read_entry=’http://hrmtest.dghs.gov.bd/api/1.0/providers/list?offset=0&limit=100&updatedSince=2015-03-01 00:00:00′ where feed_uri=’urn://pr/providers‘;
MCI:
 update lr_markers set last_feed_url=’http://hrmtest.dghs.gov.bd/api/1.0/locations/list/union?offset=0&limit=100&updatedSince=2015-03-01 00:00:00′ where type=’UNION’;
 update lr_markers set last_feed_url=’http://hrmtest.dghs.gov.bd/api/1.0/locations/list/district?offset=0&limit=100&updatedSince=2015-03-01 00:00:00′ where type=’DISTRICT’;
 update lr_markers set last_feed_url=’http://hrmtest.dghs.gov.bd/api/1.0/locations/list/ward?offset=0&limit=100&updatedSince=2015-03-01 00:00:00′ where type=’WARD’;
 update lr_markers set last_feed_url=’http://hrmtest.dghs.gov.bd/api/1.0/locations/list/division?offset=0&limit=100&updatedSince=2015-03-01 00:00:00′ where type=’DIVISION’;
 update lr_markers set last_feed_url=’http://hrmtest.dghs.gov.bd/api/1.0/locations/list/upazila?offset=200&limit=100&updatedSince=2015-03-01 00:00:00′ where type=’UPAZILA’;
 update lr_markers set last_feed_url=’http://hrmtest.dghs.gov.bd/api/1.0/locations/list/paurasava?offset=0&limit=100&updatedSince=2015-03-01 00:00:00′ where type=’PAURASAVA’;
Table of Contents