-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Jonathan Payne edited this page Mar 11, 2021
·
1 revision
- Use showmoh.py to export FY19 and FY20 MOH codelists in a supported format
- Requires that FY19 and FY20 MOH codelists are already loaded into OCL
python showmoh.py --env=staging-aws -v2 -pFY19 -fcsv
python showmoh.py --env=staging-aws -v2 -pFY19 -fhtml
python showmoh.py --env=staging-aws -v2 -pFY19 -fxml
python showmoh.py --env=staging-aws -v2 -pFY19 -fjson
python showmoh.py --env=staging-aws -v2 -pFY20 -fcsv
python showmoh.py --env=staging-aws -v2 -pFY20 -fhtml
python showmoh.py --env=staging-aws -v2 -pFY20 -fxml
python showmoh.py --env=staging-aws -v2 -pFY20 -fjson
- Use getimaporgs.py to return one result per IMAP loaded into OCL
python getimaporgs.py --env=staging-aws -t=...
- Get IMAPs by year, country, or both
python getimaporgs.py --env=staging-aws -t=... -p=FY19
python getimaporgs.py --env=staging-aws -t=... -c=TEST9
python getimaporgs.py --env=staging-aws -t=... -p=FY19 -c=TEST9
- Test IMAP import and exports directly, perform diffs
python imapimport.py -c=demojp -p=FY19 --env=staging-aws -t=... -v2 imap-samples/DEMO-FY19.csv
python imapexport.py -c=demojp -p=FY19 --env=staging-aws -t=... -v2
python imapdiff.py -c=demojp -p=FY19 --env=staging-aws -t=... -v2 imap-samples/DEMO-FY19.csv
python imapimport.py -c=demojp20 -p=FY20 --env=staging-aws -t=... -v2 imap-samples/DEMO-FY20.csv
python imapexport.py -c=demojp20 -p=FY20 --env=staging-aws -t=... -v2
python imapdiff.py -c=demojp20 -p=FY20 --env=staging-aws -t=... -v2 imap-samples/DEMO-FY20.csv
python imapimport.py -c=TEST98a -p=FY19 --env=staging-aws -t=... -v2 imap-samples/BI-FY19-baseline.csv
python imapexport.py -c=TEST98a -p=FY19 --env=staging-aws -t=... -v2
python imapdiff.py -c=TEST98a -p=FY19 --env=staging-aws -t=... -v2 imap-samples/BI-FY19-baseline.csv
- Test importing twice or exporting while an import is still underway -- this should return a "Country Locked" exception
- After testing these, try request the list of IMAPs again to make sure that these are still there
- Backup all IMAPs from an OCL environment (all countries and periods)
python imapbackup.py --env=staging-aws -t=... > imap-samples/staging-aws-imap-backup-20210311.json
- Display summary of each IMAP in the backup
python imaprestore.py -v1 --test_mode imap-samples/staging-aws-imap-backup-20210311.json
- Restore all IMAPs in the backup
python imaprestore.py --env=staging-aws -t=... -v2 staging-aws-imap-backup-20210311.json > logs/imap_restore_staging_aws_20210311.log
python getqmaprepos.py --env=staging-aws
python getqmaprepos.py --env=staging-aws -d=matches
python getqmaprepos.py --env=staging-aws -d=mAtches2
- Import
python importqmap.py -d=mAtches33 -t=... --env=staging-aws -v2 --fhir-url="https://test.ohie.datim.org/hapi-fhir-jpaserver/fhir/" qmap-questionnaires/qmaperrorimport.json
- Export
python exportqmap.py -d=mAtches2 -t=... --env=staging-aws -v2 --qmapid=4CmFkf