Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local testing updates for shr and fhir-converter #41

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
SHR_VERSION=v0.5.2
FHIR_CONVERTER_VERSION=v3.1.4
SHR_VERSION=v0.6.0
OMANG_SVC_VERSION=v1.6.2
FHIR_CONVERTER_VERSION=v3.2.1
293 changes: 270 additions & 23 deletions configs/omang/db/init.sql
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
-- ALTER SESSION SET CONTAINER = ORCLPDB1;

CREATE USER omang IDENTIFIED BY "some-password";

-- ALTER SESSION SET CONTAINER = ORCLPDB1;
CREATE USER bdr IDENTIFIED BY "some-password";

-- ALTER SESSION SET CONTAINER = ORCLPDB1;
GRANT CONNECT TO omang;

GRANT CONNECT TO bdr;

GRANT CREATE SESSION TO omang;

GRANT CREATE SESSION TO bdr;

GRANT RESOURCE TO omang;

GRANT RESOURCE TO bdr;

ALTER USER omang QUOTA 100M ON USERS;

ALTER USER bdr QUOTA 100M ON USERS;

-- ALTER SESSION SET CONTAINER = ORCLPDB1;
-- ALTER SESSION SET CURRENT_SCHEMA = omang;

--Create table
CREATE TABLE omang.OMANG_CITIZEN(
DECEASED_DTE timestamp NULL,
Expand All @@ -38,29 +47,267 @@ CREATE TABLE omang.OMANG_CITIZEN(
MARITAL_STATUS_DESCR VARCHAR2(50) NOT NULL,
ID_NO VARCHAR2(50) NOT NULL,
POSTAL_ADDR VARCHAR2(200),
RESIDENTIAL_ADDR VARCHAR2(200)
RESIDENTIAL_ADDR VARCHAR2(200)
);
--Insert into table

INSERT INTO omang.OMANG_CITIZEN (DECEASED_DTE, FIRST_NME, BIRTH_DTE_UNKNOWN, DISTRICT_NME, OCCUPATION_DESCR, BIRTH_PLACE_NME, CHANGE_DTE, DISTRICT_CDE, SEX, SPOUSE_NME, CITIZEN_STATUS_CDE, DEATH_CERT_NO, BIRTH_DTE, DECEASED_DTE_UNKNOWN, CITIZEN_STATUS_DTE, SURNME, OCCUPATION_CDE, MARITAL_STATUS_CDE, EXPIRY_DTE, PERSON_STATUS, MARITAL_STATUS_DESCR, ID_NO) VALUES (NULL, 'OLEBILE', 'False', 'CENTRAL-TUTUME', 'NOT IN THE LABOUR FORCE (STUDENT)', 'FRANCISTOW', TO_TIMESTAMP('2009-06-18', 'YYYY-MM-DD'), '18', 'M', NULL, 'CITZ', NULL, TO_TIMESTAMP('1992-08-27','YYYY-MM-DD'), NULL, TO_TIMESTAMP('2009-06-18','YYYY-MM-DD'), 'SURNAME3', '28', 'SGL', TO_TIMESTAMP('2019-05-27','YYYY-MM-DD'), 'LIVE', 'Single', '210711926');

-- INSERT omang.OMANG_CITIZEN (DECEASED_DTE, FIRST_NME, BIRTH_DTE_UNKNOWN, DISTRICT_NME, OCCUPATION_DESCR, BIRTH_PLACE_NME, CHANGE_DTE, DISTRICT_CDE, SEX, SPOUSE_NME, CITIZEN_STATUS_CDE, DEATH_CERT_NO, BIRTH_DTE, DECEASED_DTE_UNKNOWN, CITIZEN_STATUS_DTE, SURNME, OCCUPATION_CDE, MARITAL_STATUS_CDE, EXPIRY_DTE, PERSON_STATUS, MARITAL_STATUS_DESCR, ID_NO) VALUES (NULL, N'OLEBILE', N'N', N'CENTRAL-TUTUME', N'NOT IN THE LABOUR FORCE (STUDENT)', N'FRANCISTOWN', CAST(N'2009-06-18T09:00:32.000' AS DateTime), N'18', N'M', NULL, N'CITZ', NULL, CAST(N'1992-08-27T00:00:00.000' AS DateTime), NULL, CAST(N'2009-06-18T09:00:32.000' AS DateTime), N'SURNAME3', N'28', N'SGL', CAST(N'2019-05-27T00:00:00.000' AS DateTime), N'LIVE', N'Single', N'210711926')

-- INSERT omang.OMANG_CITIZEN (DECEASED_DTE, FIRST_NME, BIRTH_DTE_UNKNOWN, DISTRICT_NME, OCCUPATION_DESCR, BIRTH_PLACE_NME, CHANGE_DTE, DISTRICT_CDE, SEX, SPOUSE_NME, CITIZEN_STATUS_CDE, DEATH_CERT_NO, BIRTH_DTE, DECEASED_DTE_UNKNOWN, CITIZEN_STATUS_DTE, SURNME, OCCUPATION_CDE, MARITAL_STATUS_CDE, EXPIRY_DTE, PERSON_STATUS, MARITAL_STATUS_DESCR, ID_NO) VALUES (NULL, N'ARABANG', N'N', N'NORTH-EAST', N'NOT IN THE LABOUR FORCE (STUDENT)', N'FRANCISTOWN', CAST(N'2015-05-20T08:03:52.000' AS DateTime), N'19', N'M', NULL, N'CITZ', NULL, CAST(N'1999-05-02T00:00:00.000' AS DateTime), NULL, CAST(N'2015-05-20T08:03:52.000' AS DateTime), N'SURNAME1', N'28', N'SGL', CAST(N'2025-05-18T00:00:00.000' AS DateTime), N'LIVE', N'Single', N'237718130')

-- INSERT omang.OMANG_CITIZEN (DECEASED_DTE, FIRST_NME, BIRTH_DTE_UNKNOWN, DISTRICT_NME, OCCUPATION_DESCR, BIRTH_PLACE_NME, CHANGE_DTE, DISTRICT_CDE, SEX, SPOUSE_NME, CITIZEN_STATUS_CDE, DEATH_CERT_NO, BIRTH_DTE, DECEASED_DTE_UNKNOWN, CITIZEN_STATUS_DTE, SURNME, OCCUPATION_CDE, MARITAL_STATUS_CDE, EXPIRY_DTE, PERSON_STATUS, MARITAL_STATUS_DESCR, ID_NO) VALUES (NULL, N'EMMANUEL', N'N', N'CENTRAL-TUTUME', N'NOT IN THE LABOUR FORCE (STUDENT)', N'FRANCISTOWN', CAST(N'2011-01-25T10:05:15.000' AS DateTime), N'18', N'M', NULL, N'CITZ', NULL, CAST(N'1994-11-30T00:00:00.000' AS DateTime), NULL, CAST(N'2011-01-25T10:05:15.000' AS DateTime), N'SURNAME5', N'28', N'SGL', CAST(N'2020-12-22T00:00:00.000' AS DateTime), N'LIVE', N'Single', N'249716717')

-- INSERT omang.OMANG_CITIZEN (DECEASED_DTE, FIRST_NME, BIRTH_DTE_UNKNOWN, DISTRICT_NME, OCCUPATION_DESCR, BIRTH_PLACE_NME, CHANGE_DTE, DISTRICT_CDE, SEX, SPOUSE_NME, CITIZEN_STATUS_CDE, DEATH_CERT_NO, BIRTH_DTE, DECEASED_DTE_UNKNOWN, CITIZEN_STATUS_DTE, SURNME, OCCUPATION_CDE, MARITAL_STATUS_CDE, EXPIRY_DTE, PERSON_STATUS, MARITAL_STATUS_DESCR, ID_NO) VALUES (NULL, N'IPONENG', N'N', N'NORTH-EAST', N'NOT IN THE LABOUR FORCE (STUDENT)', N'FRANCISTOWN', CAST(N'2012-10-05T12:44:34.000' AS DateTime), N'19', N'M', NULL, N'CITZ', NULL, CAST(N'1995-01-29T00:00:00.000' AS DateTime), NULL, CAST(N'2012-10-05T12:44:34.000' AS DateTime), N'SURNAME2', N'28', N'SGL', CAST(N'2022-10-04T00:00:00.000' AS DateTime), N'LIVE', N'Single', N'255715019')

-- INSERT omang.OMANG_CITIZEN (DECEASED_DTE, FIRST_NME, BIRTH_DTE_UNKNOWN, DISTRICT_NME, OCCUPATION_DESCR, BIRTH_PLACE_NME, CHANGE_DTE, DISTRICT_CDE, SEX, SPOUSE_NME, CITIZEN_STATUS_CDE, DEATH_CERT_NO, BIRTH_DTE, DECEASED_DTE_UNKNOWN, CITIZEN_STATUS_DTE, SURNME, OCCUPATION_CDE, MARITAL_STATUS_CDE, EXPIRY_DTE, PERSON_STATUS, MARITAL_STATUS_DESCR, ID_NO) VALUES (NULL, N'CAROLINE', N'N', N'FRANCISTOWN', N'NOT IN THE LABOUR FORCE (STUDENT)', N'FRANCISTOWN', CAST(N'2017-01-13T11:33:23.000' AS DateTime), N'02', N'F', NULL, N'CITZ', NULL, CAST(N'1987-01-13T00:00:00.000' AS DateTime), NULL, CAST(N'2017-01-13T11:33:23.000' AS DateTime), N'SURNAME10', N'28', N'SGL', CAST(N'2027-01-10T00:00:00.000' AS DateTime), N'LIVE', N'Single', N'258628219')

-- INSERT omang.OMANG_CITIZEN (DECEASED_DTE, FIRST_NME, BIRTH_DTE_UNKNOWN, DISTRICT_NME, OCCUPATION_DESCR, BIRTH_PLACE_NME, CHANGE_DTE, DISTRICT_CDE, SEX, SPOUSE_NME, CITIZEN_STATUS_CDE, DEATH_CERT_NO, BIRTH_DTE, DECEASED_DTE_UNKNOWN, CITIZEN_STATUS_DTE, SURNME, OCCUPATION_CDE, MARITAL_STATUS_CDE, EXPIRY_DTE, PERSON_STATUS, MARITAL_STATUS_DESCR, ID_NO) VALUES (NULL, N'JAMES', N'N', N'NORTH-EAST', N'NOT IN THE LABOUR FORCE (STUDENT)', N'FRANCISTOWN', CAST(N'2011-02-17T18:14:15.000' AS DateTime), N'19', N'F', NULL, N'CITZ', NULL, CAST(N'1993-01-21T00:00:00.000' AS DateTime), NULL, CAST(N'2011-02-17T18:14:15.000' AS DateTime), N'SURNAME4', N'28', N'SGL', CAST(N'2021-02-16T00:00:00.000' AS DateTime), N'LIVE', N'Single', N'259573715')

-- INSERT omang.OMANG_CITIZEN (DECEASED_DTE, FIRST_NME, BIRTH_DTE_UNKNOWN, DISTRICT_NME, OCCUPATION_DESCR, BIRTH_PLACE_NME, CHANGE_DTE, DISTRICT_CDE, SEX, SPOUSE_NME, CITIZEN_STATUS_CDE, DEATH_CERT_NO, BIRTH_DTE, DECEASED_DTE_UNKNOWN, CITIZEN_STATUS_DTE, SURNME, OCCUPATION_CDE, MARITAL_STATUS_CDE, EXPIRY_DTE, PERSON_STATUS, MARITAL_STATUS_DESCR, ID_NO) VALUES (NULL, N'OLORATO', N'N', N'CENTRAL-SEROWE', N'BOOK-KEEPERS, CASHIERS AND RELATED WORKERS', N'FRANCISTOWN', CAST(N'2016-04-26T15:00:38.000' AS DateTime), N'14', N'F', NULL, N'CITZ', NULL, CAST(N'1988-09-16T00:00:00.000' AS DateTime), NULL, CAST(N'2016-04-26T15:00:38.000' AS DateTime), N'SURNAME7', N'33', N'SGL', CAST(N'2026-04-25T00:00:00.000' AS DateTime), N'LIVE', N'Single', N'264520419')
--Insert into table
INSERT INTO
omang.OMANG_CITIZEN (
DECEASED_DTE,
FIRST_NME,
BIRTH_DTE_UNKNOWN,
DISTRICT_NME,
OCCUPATION_DESCR,
BIRTH_PLACE_NME,
CHANGE_DTE,
DISTRICT_CDE,
SEX,
SPOUSE_NME,
CITIZEN_STATUS_CDE,
DEATH_CERT_NO,
BIRTH_DTE,
DECEASED_DTE_UNKNOWN,
CITIZEN_STATUS_DTE,
SURNME,
OCCUPATION_CDE,
MARITAL_STATUS_CDE,
EXPIRY_DTE,
PERSON_STATUS,
MARITAL_STATUS_DESCR,
ID_NO
)
VALUES
(
NULL,
'OLEBILE',
'False',
'CENTRAL-TUTUME',
'NOT IN THE LABOUR FORCE (STUDENT)',
'FRANCISTOW',
TO_TIMESTAMP('2009-06-18', 'YYYY-MM-DD'),
'18',
'M',
NULL,
'CITZ',
NULL,
TO_TIMESTAMP('1992-08-27', 'YYYY-MM-DD'),
NULL,
TO_TIMESTAMP('2009-06-18', 'YYYY-MM-DD'),
'SURNAME3',
'28',
'SGL',
TO_TIMESTAMP('2019-05-27', 'YYYY-MM-DD'),
'LIVE',
'Single',
'210711926'
);

-- INSERT omang.OMANG_CITIZEN (DECEASED_DTE, FIRST_NME, BIRTH_DTE_UNKNOWN, DISTRICT_NME, OCCUPATION_DESCR, BIRTH_PLACE_NME, CHANGE_DTE, DISTRICT_CDE, SEX, SPOUSE_NME, CITIZEN_STATUS_CDE, DEATH_CERT_NO, BIRTH_DTE, DECEASED_DTE_UNKNOWN, CITIZEN_STATUS_DTE, SURNME, OCCUPATION_CDE, MARITAL_STATUS_CDE, EXPIRY_DTE, PERSON_STATUS, MARITAL_STATUS_DESCR, ID_NO) VALUES (NULL, N'THATO', N'N', N'CENTRAL-TUTUME', N'TRANSPORT CONDUCTORS', N'FRANCISTOWN', CAST(N'2016-10-24T09:00:50.000' AS DateTime), N'18', N'M', NULL, N'CITZ', NULL, CAST(N'1988-03-14T00:00:00.000' AS DateTime), NULL, CAST(N'2016-10-24T09:00:50.000' AS DateTime), N'SURNAME8', N'36', N'SGL', CAST(N'2026-10-18T00:00:00.000' AS DateTime), N'LIVE', N'Single', N'272116516')
CREATE TABLE bdr.V_BIRTH(
BIRTH_CERTIFICATE VARCHAR2(50) NULL,
BIRTH_CERTIFICATE_OLD VARCHAR2(50) NULL,
DISTRICT_OF_BIRTH VARCHAR2(50) NULL,
DISTRICT_OF_BIRTH_NAME VARCHAR2(50) NULL,
TYPE_OF_BIRTH VARCHAR2(50) NULL,
ID_NUMBER VARCHAR2(50) NOT NULL,
REGISTRATION_NUMBER VARCHAR2(50) NULL,
FORENAME VARCHAR2(50) NOT NULL,
SURNAME VARCHAR2(50) NOT NULL,
OTHER_NAME VARCHAR2(50) NULL,
NATIONALITY VARCHAR2(50) NULL,
DATE_OF_BIRTH timestamp NULL,
SEX VARCHAR2(50) NOT NULL,
TOWN_VILL VARCHAR2(200) NULL,
WARD_STREET VARCHAR2(200) NULL,
DATE_OF_REGISTRATION timestamp NULL,
DISTRICT_OF_REGISTRATION VARCHAR2(50) NULL,
FATHER_ID_NUMBER VARCHAR2(50) NULL,
FATHER_FORENAME VARCHAR2(50) NULL,
FATHER_SURNAME VARCHAR2(50) NULL,
FATHER_OTHER_NAME VARCHAR2(50) NULL,
FATHER_NATIONALITY VARCHAR2(50) NULL,
MOTHER_ID_NUMBER VARCHAR2(50) NULL,
MOTHER_FORENAME VARCHAR2(50) NULL,
MOTHER_SURNAME VARCHAR2(50) NULL,
MOTHER_OTHER_NAME VARCHAR2(50) NULL,
MOTHER_NATIONALITY VARCHAR2(50) NULL,
MOTHER_AGE VARCHAR2(50) NULL,
MOTHER_MARITAL_STATUS VARCHAR2(50) NULL,
DATE_OF_ISSUE timestamp NULL,
DATE_OF_COLLECTION timestamp NULL,
YEAR_OF_REGISTRATION VARCHAR2(50) NULL
);

-- INSERT omang.OMANG_CITIZEN (DECEASED_DTE, FIRST_NME, BIRTH_DTE_UNKNOWN, DISTRICT_NME, OCCUPATION_DESCR, BIRTH_PLACE_NME, CHANGE_DTE, DISTRICT_CDE, SEX, SPOUSE_NME, CITIZEN_STATUS_CDE, DEATH_CERT_NO, BIRTH_DTE, DECEASED_DTE_UNKNOWN, CITIZEN_STATUS_DTE, SURNME, OCCUPATION_CDE, MARITAL_STATUS_CDE, EXPIRY_DTE, PERSON_STATUS, MARITAL_STATUS_DESCR, ID_NO) VALUES (NULL, N'MONTY', N'N', N'NORTH-EAST', N'NOT IN THE LABOUR FORCE (STUDENT)', N'FRANCISTOWN', CAST(N'2009-08-12T09:53:30.000' AS DateTime), N'19', N'M', NULL, N'CITZ', NULL, CAST(N'1990-07-13T00:00:00.000' AS DateTime), NULL, CAST(N'2009-08-12T09:53:30.000' AS DateTime), N'SURNAME6', N'28', N'SGL', CAST(N'2017-01-05T00:00:00.000' AS DateTime), N'LIVE', N'Single', N'286815515')
INSERT INTO
bdr.V_BIRTH (
BIRTH_CERTIFICATE,
BIRTH_CERTIFICATE_OLD,
DISTRICT_OF_REGISTRATION,
DISTRICT_OF_BIRTH_NAME,
DISTRICT_OF_BIRTH,
TYPE_OF_BIRTH,
ID_NUMBER,
REGISTRATION_NUMBER,
FORENAME,
SURNAME,
OTHER_NAME,
NATIONALITY,
DATE_OF_BIRTH,
SEX,
TOWN_VILL,
WARD_STREET,
DATE_OF_REGISTRATION,
FATHER_ID_NUMBER,
FATHER_FORENAME,
FATHER_SURNAME,
FATHER_OTHER_NAME,
FATHER_NATIONALITY,
MOTHER_ID_NUMBER,
MOTHER_FORENAME,
MOTHER_SURNAME,
MOTHER_OTHER_NAME,
MOTHER_NATIONALITY,
DATE_OF_ISSUE,
YEAR_OF_REGISTRATION,
DATE_OF_COLLECTION,
MOTHER_AGE,
MOTHER_MARITAL_STATUS
)
VALUES
(
'654651651651',
'65461651',
'18',
'CENTRAL-TUTUME',
'18',
NULL,
'23423423422',
'324239022390',
'OLEBILE',
'SURNAME3',
NULL,
'BW',
TO_TIMESTAMP('1992-08-27', 'YYYY-MM-DD'),
'M',
'FRANCISTOW',
NULL,
TO_TIMESTAMP('2009-06-18', 'YYYY-MM-DD'),
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
TO_TIMESTAMP('2009-06-18', 'YYYY-MM-DD'),
'2009',
TO_TIMESTAMP('2019-05-27', 'YYYY-MM-DD'),
'60',
NULL
);

-- INSERT omang.OMANG_CITIZEN (DECEASED_DTE, FIRST_NME, BIRTH_DTE_UNKNOWN, DISTRICT_NME, OCCUPATION_DESCR, BIRTH_PLACE_NME, CHANGE_DTE, DISTRICT_CDE, SEX, SPOUSE_NME, CITIZEN_STATUS_CDE, DEATH_CERT_NO, BIRTH_DTE, DECEASED_DTE_UNKNOWN, CITIZEN_STATUS_DTE, SURNME, OCCUPATION_CDE, MARITAL_STATUS_CDE, EXPIRY_DTE, PERSON_STATUS, MARITAL_STATUS_DESCR, ID_NO) VALUES (NULL, N'KA', N'N', N'NORTH-EAST', N'WORKERS REPORTING UNIDENTIFIABLE OCCUPATIONS', N'FRANCISTOWN', CAST(N'2015-09-22T11:45:34.000' AS DateTime), N'19', N'F', NULL, N'CITZ', NULL, CAST(N'1988-09-11T00:00:00.000' AS DateTime), NULL, CAST(N'2015-09-22T11:45:34.000' AS DateTime), N'SURNAME9', N'25', N'SGL', CAST(N'2025-09-21T00:00:00.000' AS DateTime), N'LIVE', N'Single', N'373821113')
CREATE TABLE bdr.V_DEATH(
DEATH_CERTIFICATE VARCHAR2(50) NULL,
DISTRICT_OF_REGISTRATION VARCHAR2(50) NULL,
DISTRICT_OF_DEATH VARCHAR2(50) NULL,
DISTRICT_OF_DEATH_NAME VARCHAR2(50) NULL,
ID_NUMBER VARCHAR2(50) NOT NULL,
REGISTRATION_NUMBER VARCHAR2(50) NULL,
FORENAME VARCHAR2(50) NOT NULL,
SURNAME VARCHAR2(50) NOT NULL,
OTHER_NAME VARCHAR2(50) NULL,
NATIONALITY VARCHAR2(50) NULL,
OCCUPATION VARCHAR2(50) NULL,
DATE_OF_DEATH timestamp NULL,
SEX VARCHAR2(50) NOT NULL,
TOWN_VILL VARCHAR2(200) NULL,
WARD_STREET VARCHAR2(200) NULL,
PLACE_OF_DEATH VARCHAR2(50) NULL,
DATE_OF_REGISTRATION timestamp NULL,
AGE_DAYS VARCHAR2(50) NULL,
AGE_MONTHS VARCHAR2(50) NULL,
AGE_YEARS VARCHAR2(50) NULL,
CODE_ICD10 VARCHAR2(50) NULL,
CAUSE_OF_DEATH VARCHAR2(50) NULL,
DATE_OF_ISSUE timestamp NULL,
YEAR_OF_REGISTRATION VARCHAR2(50) NULL,
TYPE_OF_RELATIONSHIP VARCHAR2(50) NULL,
ID_NUMBER_NEXT_OF_KIN VARCHAR2(50) NULL,
MOTHER_NATIONALITY VARCHAR2(50) NULL,
FORENAME_NEXT_OF_KIN VARCHAR2(50) NULL,
SURNAME_NEXT_OF_KIN VARCHAR2(50) NULL,
OTHER_NAME_NEXT_OF_KIN VARCHAR2(50) NULL,
NATIONALITY_NEXT_OF_KIN VARCHAR2(50) NULL,
DATE_OF_COLLECTION timestamp NULL
);

INSERT INTO
bdr.V_DEATH (
DEATH_CERTIFICATE,
DISTRICT_OF_REGISTRATION,
DISTRICT_OF_DEATH_NAME,
DISTRICT_OF_DEATH,
ID_NUMBER,
REGISTRATION_NUMBER,
FORENAME,
SURNAME,
OTHER_NAME,
NATIONALITY,
OCCUPATION,
DATE_OF_DEATH,
SEX,
TOWN_VILL,
WARD_STREET,
PLACE_OF_DEATH,
DATE_OF_REGISTRATION,
AGE_DAYS,
AGE_MONTHS,
AGE_YEARS,
CODE_ICD10,
CAUSE_OF_DEATH,
DATE_OF_ISSUE,
YEAR_OF_REGISTRATION,
TYPE_OF_RELATIONSHIP,
ID_NUMBER_NEXT_OF_KIN,
FORENAME_NEXT_OF_KIN,
SURNAME_NEXT_OF_KIN,
OTHER_NAME_NEXT_OF_KIN,
NATIONALITY_NEXT_OF_KIN,
DATE_OF_COLLECTION
)
VALUES
(
'654651651651',
'18',
'CENTRAL-TUTUME',
'18',
'23423423422',
'324239022390',
'OLEBILE',
'SURNAME3',
NULL,
'BW',
'NOT IN THE LABOUR FORCE (STUDENT)',
NULL,
'M',
'FRANCISTOW',
NULL,
NULL,
TO_TIMESTAMP('2009-06-18', 'YYYY-MM-DD'),
30,
0,
0,
NULL,
NULL,
TO_TIMESTAMP('2019-05-27', 'YYYY-MM-DD'),
'2009',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
TO_TIMESTAMP('2009-06-18', 'YYYY-MM-DD')
);
4 changes: 4 additions & 0 deletions configs/opencr/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CR_DATABASE_URL=jdbc:postgresql://postgres:5432/opencr
CR_DATABASE_USERNAME=postgres
CR_DATABASE_PW=postgres
JAVA_OPTS='-Dspring.datasource.url=${CR_DATABASE_URL} -Dspring.datasource.username=${CR_DATABASE_USERNAME} -Dspring.datasource.password=${CR_DATABASE_PW} -Dspring.datasource.driverClassName=org.postgresql.Driver'
4 changes: 4 additions & 0 deletions configs/opencr/.env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CR_DATABASE_URL=jdbc:postgresql://postgres:5432/opencr
CR_DATABASE_USERNAME=postgres
CR_DATABASE_PW=postgres
JAVA_OPTS='-Dspring.datasource.url=${CR_DATABASE_URL} -Dspring.datasource.username=${CR_DATABASE_USERNAME} -Dspring.datasource.password=${CR_DATABASE_PW} -Dspring.datasource.driverClassName=org.postgresql.Driver'
Loading