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

Initial Settings #2

Open
buddhika75 opened this issue Jul 31, 2024 · 4 comments
Open

Initial Settings #2

buddhika75 opened this issue Jul 31, 2024 · 4 comments

Comments

@buddhika75
Copy link
Member

Initial Settings

@buddhika75
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

EMpty response from LIS to MW

{
"samples": []
}

buddhika75 added a commit that referenced this issue Sep 3, 2024
Signed-off-by: buddhika75 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant