Skip to content

Commit

Permalink
Server updates & version publish (#93)
Browse files Browse the repository at this point in the history
* Version Bump
  • Loading branch information
pmanko authored Nov 17, 2023
1 parent c446696 commit 80dadbc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .eslintcache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"/u01/code/shared-health-record/src/lib/kafkaConsumerUtil.ts":"1","/u01/code/shared-health-record/src/workflows/botswana/IpmsWorkflows.ts":"2","/u01/code/shared-health-record/src/workflows/botswana/helpers.ts":"3","/u01/code/shared-health-record/src/workflows/botswana/patientIdentityWorkflows.ts":"4","/u01/code/shared-health-record/src/workflows/botswana/workflowHandler.ts":"5","/u01/code/shared-health-record/src/workflows/botswana/locationWorkflows.ts":"6"},{"size":3503,"mtime":1700178819830,"results":"7","hashOfConfig":"8"},{"size":12350,"mtime":1700178820038,"results":"9","hashOfConfig":"8"},{"size":3130,"mtime":1700255872114},{"size":1486,"mtime":1700178820182,"results":"10","hashOfConfig":"8"},{"size":11215,"mtime":1700178820270,"results":"11","hashOfConfig":"8"},{"size":6760,"mtime":1700255448566,"results":"12","hashOfConfig":"8"},{"filePath":"13","messages":"14","suppressedMessages":"15","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"29hqh",{"filePath":"16","messages":"17","suppressedMessages":"18","errorCount":0,"fatalErrorCount":0,"warningCount":14,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"19","messages":"20","suppressedMessages":"21","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"22","messages":"23","suppressedMessages":"24","errorCount":0,"fatalErrorCount":0,"warningCount":10,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"25","messages":"26","suppressedMessages":"27","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/u01/code/shared-health-record/src/lib/kafkaConsumerUtil.ts",[],[],"/u01/code/shared-health-record/src/workflows/botswana/IpmsWorkflows.ts",["28","29","30","31","32","33","34","35","36","37","38","39","40","41"],[],"/u01/code/shared-health-record/src/workflows/botswana/patientIdentityWorkflows.ts",["42","43"],[],"/u01/code/shared-health-record/src/workflows/botswana/workflowHandler.ts",["44","45","46","47","48","49","50","51","52","53"],["54"],"/u01/code/shared-health-record/src/workflows/botswana/locationWorkflows.ts",[],[],{"ruleId":"55","severity":1,"message":"56","line":63,"column":46,"nodeType":"57","messageId":"58","endLine":63,"endColumn":49,"suggestions":"59"},{"ruleId":"60","severity":1,"message":"61","line":70,"column":20,"nodeType":"62","messageId":"63","endLine":70,"endColumn":36,"suggestions":"64"},{"ruleId":"55","severity":1,"message":"56","line":70,"column":55,"nodeType":"57","messageId":"58","endLine":70,"endColumn":58,"suggestions":"65"},{"ruleId":"55","severity":1,"message":"56","line":143,"column":23,"nodeType":"57","messageId":"58","endLine":143,"endColumn":26,"suggestions":"66"},{"ruleId":"55","severity":1,"message":"56","line":162,"column":70,"nodeType":"57","messageId":"58","endLine":162,"endColumn":73,"suggestions":"67"},{"ruleId":"60","severity":1,"message":"61","line":180,"column":22,"nodeType":"62","messageId":"63","endLine":180,"endColumn":47,"suggestions":"68"},{"ruleId":"60","severity":1,"message":"61","line":218,"column":25,"nodeType":"62","messageId":"63","endLine":218,"endColumn":44},{"ruleId":"60","severity":1,"message":"61","line":257,"column":9,"nodeType":"62","messageId":"63","endLine":258,"endColumn":21},{"ruleId":"60","severity":1,"message":"61","line":257,"column":9,"nodeType":"62","messageId":"63","endLine":257,"endColumn":94,"suggestions":"69"},{"ruleId":"60","severity":1,"message":"61","line":262,"column":9,"nodeType":"62","messageId":"63","endLine":264,"endColumn":21},{"ruleId":"60","severity":1,"message":"61","line":262,"column":9,"nodeType":"62","messageId":"63","endLine":264,"endColumn":11,"suggestions":"70"},{"ruleId":"60","severity":1,"message":"61","line":268,"column":9,"nodeType":"62","messageId":"63","endLine":269,"endColumn":21},{"ruleId":"60","severity":1,"message":"61","line":268,"column":9,"nodeType":"62","messageId":"63","endLine":268,"endColumn":98,"suggestions":"71"},{"ruleId":"60","severity":1,"message":"61","line":280,"column":17,"nodeType":"62","messageId":"63","endLine":280,"endColumn":34},{"ruleId":"60","severity":1,"message":"61","line":15,"column":21,"nodeType":"62","messageId":"63","endLine":15,"endColumn":34,"suggestions":"72"},{"ruleId":"60","severity":1,"message":"61","line":27,"column":24,"nodeType":"62","messageId":"63","endLine":27,"endColumn":43},{"ruleId":"73","severity":1,"message":"74","line":19,"column":7,"nodeType":"75","messageId":"76","endLine":19,"endColumn":10},{"ruleId":"77","severity":1,"message":"78","line":19,"column":7,"nodeType":"75","messageId":"76","endLine":19,"endColumn":10},{"ruleId":"73","severity":1,"message":"79","line":29,"column":7,"nodeType":"75","messageId":"76","endLine":29,"endColumn":25},{"ruleId":"77","severity":1,"message":"80","line":29,"column":7,"nodeType":"75","messageId":"76","endLine":29,"endColumn":25},{"ruleId":"73","severity":1,"message":"81","line":97,"column":64,"nodeType":"75","messageId":"76","endLine":97,"endColumn":70},{"ruleId":"77","severity":1,"message":"82","line":97,"column":64,"nodeType":"75","messageId":"76","endLine":97,"endColumn":70},{"ruleId":"55","severity":1,"message":"56","line":120,"column":57,"nodeType":"57","messageId":"58","endLine":120,"endColumn":60,"suggestions":"83"},{"ruleId":"55","severity":1,"message":"56","line":121,"column":19,"nodeType":"57","messageId":"58","endLine":121,"endColumn":22,"suggestions":"84"},{"ruleId":"55","severity":1,"message":"56","line":222,"column":44,"nodeType":"57","messageId":"58","endLine":222,"endColumn":47,"suggestions":"85"},{"ruleId":"55","severity":1,"message":"56","line":257,"column":14,"nodeType":"57","messageId":"58","endLine":257,"endColumn":17,"suggestions":"86"},{"ruleId":"87","severity":2,"message":"88","line":19,"column":13,"nodeType":"89","messageId":"90","endLine":19,"endColumn":27,"suppressions":"91"},"@typescript-eslint/no-explicit-any","Unexpected any. Specify a different type.","TSAnyKeyword","unexpectedAny",["92","93"],"@typescript-eslint/no-non-null-assertion","Forbidden non-null assertion.","TSNonNullExpression","noNonNull",["94"],["95","96"],["97","98"],["99","100"],["101"],["102"],["103"],["104"],["105"],"unused-imports/no-unused-vars","'hl7' is assigned a value but never used. Allowed unused vars must match /^_/u.","Identifier","unusedVar","@typescript-eslint/no-unused-vars","'hl7' is assigned a value but never used.","'KafkaCallbackError' is defined but never used. Allowed unused vars must match /^_/u.","'KafkaCallbackError' is defined but never used.","'report' is defined but never used. Allowed unused args must match /^_/u.","'report' is defined but never used.",["106","107"],["108","109"],["110","111"],["112","113"],"@typescript-eslint/no-var-requires","Require statement not part of import statement.","CallExpression","noVarReqs",["114"],{"messageId":"115","fix":"116","desc":"117"},{"messageId":"118","fix":"119","desc":"120"},{"messageId":"121","fix":"122","desc":"123"},{"messageId":"115","fix":"124","desc":"117"},{"messageId":"118","fix":"125","desc":"120"},{"messageId":"115","fix":"126","desc":"117"},{"messageId":"118","fix":"127","desc":"120"},{"messageId":"115","fix":"128","desc":"117"},{"messageId":"118","fix":"129","desc":"120"},{"messageId":"121","fix":"130","desc":"123"},{"messageId":"121","fix":"131","desc":"123"},{"messageId":"121","fix":"132","desc":"123"},{"messageId":"121","fix":"133","desc":"123"},{"messageId":"121","fix":"134","desc":"123"},{"messageId":"115","fix":"135","desc":"117"},{"messageId":"118","fix":"136","desc":"120"},{"messageId":"115","fix":"137","desc":"117"},{"messageId":"118","fix":"138","desc":"120"},{"messageId":"115","fix":"139","desc":"117"},{"messageId":"118","fix":"140","desc":"120"},{"messageId":"115","fix":"141","desc":"117"},{"messageId":"118","fix":"142","desc":"120"},{"kind":"143","justification":"144"},"suggestUnknown",{"range":"145","text":"146"},"Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct.","suggestNever",{"range":"147","text":"148"},"Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of.","suggestOptionalChain",{"range":"149","text":"150"},"Consider using the optional chain operator `?.` instead. This operator includes runtime checks, so it is safer than the compile-only non-null assertion operator.",{"range":"151","text":"146"},{"range":"152","text":"148"},{"range":"153","text":"146"},{"range":"154","text":"148"},{"range":"155","text":"146"},{"range":"156","text":"148"},{"range":"157","text":"150"},{"range":"158","text":"150"},{"range":"159","text":"150"},{"range":"160","text":"150"},{"range":"161","text":"150"},{"range":"162","text":"146"},{"range":"163","text":"148"},{"range":"164","text":"146"},{"range":"165","text":"148"},{"range":"166","text":"146"},{"range":"167","text":"148"},{"range":"168","text":"146"},{"range":"169","text":"148"},"directive","",[1747,1750],"unknown",[1747,1750],"never",[2033,2034],"?",[2053,2056],[2053,2056],[4479,4482],[4479,4482],[5228,5231],[5228,5231],[5753,5754],[8407,8408],[8618,8619],[8783,8784],[424,425],[4687,4690],[4687,4690],[4737,4740],[4737,4740],[8208,8211],[8208,8211],[9372,9375],[9372,9375]]
2 changes: 1 addition & 1 deletion config/mediator_docker.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"urn": "urn:mediator:shared-health-record",
"version": "v0.12.0-rc.5",
"version": "v0.12.0",
"name": "Shared Health Record",
"description": "Shared Health Record",
"defaultChannelConfig": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shared-health-registry",
"version": "v0.12.0-rc.5",
"version": "v0.12.0",
"description": "Open Implementation of an OpenHIE Shared Health Record",
"main": "app.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/workflows/botswana/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export async function postWithRetry(
crUrl: string,
options: OptionsOfTextResponseBody,
retryLimit = 2,
timeout = 3000,
timeout = 30000,
) {
for (let attempt = 1; attempt <= retryLimit; attempt++) {
try {
Expand Down
4 changes: 2 additions & 2 deletions src/workflows/botswana/locationWorkflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ export async function addBwLocations(bundle: R4.IBundle): Promise<R4.IBundle> {
)

if (!orderingLocation) {
logger.error('Could not find ordering Location! Using Omrs Location instead.')
logger.warning('Could not find ordering Location! Using Omrs Location instead.')
orderingLocation = <R4.ILocation>getBundleEntry(bundle.entry, 'Location')
}

if (orderingLocation) {
if (!orderingOrganization) {
logger.error('No ordering Organization found - copying location info!')
logger.warning('No ordering Organization found - copying location info!')
orderingOrganization = {
resourceType: 'Organization',
id: crypto
Expand Down

0 comments on commit 80dadbc

Please sign in to comment.