hmislk / MaglumiX3

Apache License 2.0
0 stars 0 forks source link

Initial Settings #2

Open buddhika75 opened 3 months ago

buddhika75 commented 3 months ago

Initial Settings

buddhika75 commented 3 months ago

Sample config.json

{ "middlewareSettings": { "analyzerDetails": { "analyzerName": "MaglumiX3", "serialNumber": "12345-67890", "analyzerId": "yourAnalyzerId", "analyzerIP": "192.168.1.100", "analyzerPort": "8080", "hostIP": "192.168.1.200", "hostPort": "9090", "comPort": "COM2", "baudRate": "9600", "dataBits": 8, "parity": "None", "stopBits": 1, "delimiters": { "recordDelimiter": "", "fieldDelimiter": "|", "repeatDelimiter": "\", "componentDelimiter": "^", "escapeDelimiter": "&" }, "controlCodes": { "enq": "0x05", "ack": "0x06", "stx": "0x02", "etx": "0x03", "eot": "0x04", "cr": "0x0D" }, "retryTimeout": 15 }, "limsSettings": { "pullSampleDataEndpoint": "http://example.com/api/pullSampleData", "pushSampleAcceptanceEndpoint": "http://example.com/api/pushSampleAcceptance", "pushResultsEndpoint": "http://example.com/api/pushResults", "pullResultsEndpoint": "http://example.com/api/pullResults", "username": "yourUsername", "password": "yourPassword", "departmentId": "yourDepartmentId" } } }

buddhika75 commented 3 months ago

Sample Json that will be received from LIS to MW { "samples": [ { "sampleId": "SAMPLE12345", "testCodes": ["TSH", "FT4", "FT3"] }, { "sampleId": "SAMPLE67890", "testCodes": ["CBC", "BMP"] }, { "sampleId": "SAMPLE54321", "testCodes": ["LFT", "RFT"] }, { "sampleId": "SAMPLE98765", "testCodes": ["LIPID", "HBA1C"] }, { "sampleId": "SAMPLE11223", "testCodes": ["CRP", "ESR"] } ] }

buddhika75 commented 3 months ago

Sample JSON that will be send from MW to LIS { "results": [ { "sampleId": "SAMPLE12345", "testResults": [ { "testCode": "TSH", "result": "1.22", "units": "uIU/mL", "referenceRange": "0.4 to 4.5", "resultStatus": "N", "timestamp": "20240730162937" }, { "testCode": "FT4", "result": "11.06", "units": "pg/mL", "referenceRange": "7.2 to 17.2", "resultStatus": "N", "timestamp": "20240730161701" }, { "testCode": "FT3", "result": "1.743", "units": "pg/mL", "referenceRange": "1.21 to 4.18", "resultStatus": "N", "timestamp": "20240730162319" } ] }, { "sampleId": "SAMPLE67890", "testResults": [ { "testCode": "CBC", "result": "5.0", "units": "10^9/L", "referenceRange": "4.0 to 11.0", "resultStatus": "N", "timestamp": "20240730150000" }, { "testCode": "BMP", "result": "140", "units": "mmol/L", "referenceRange": "135 to 145", "resultStatus": "N", "timestamp": "20240730151000" } ] } ] }

buddhika75 commented 3 months ago

EMpty response from LIS to MW

{ "samples": [] }