Closed mapesa closed 9 years ago
Settled for the following as components of this feature:
Configurations for specifying details of available instruments
For example:
{ "ip":"192.168.25.11", "hostname":"ndovu", "name":"Celtac F", "tests":{ "Full Haemogram":"FullHaemogramInstrumentor", "WBC":"WBCInstrumentor", "HB":"HBInstrumentor" } }
setInstrumentHost(String ip/hostname)
//Receives host identification datapublic Object[measure_name => value] getResult()
// Returns test data from instrument host.getresult() will use a simple get_file_contents as stated above.
[client] --- retrievefiles()------> [server] ------getFileContents(host_with_celltac)------>[host_with_celltac]
[host_with_celltac] -----data.dump---> [server | process()] ------clean_data.json----> client------->update_fullhemogram_form(clean_data.json)
Features
Pending
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class 'KBLIS\\Instrumentation\\CelltacWBC' not found","file":"\/var\/www\/larablis\/app\/controllers\/InstrumentController.php","line":197}}
In the AbstractInstumentor->setIp you are using a varaible $id instead of $ip
@briankip, excellent calls especially about the evil security hole. I'll rework the implementation and get back ... and yes, in 2 days
Minor issues:
api
is too generic a name. Further I think we should be using packages/name spaces. Probably tied to the psr4 issue. I'll do more research.Quick update!
Disclaimer: I'm still trying to correlate these answers with my personal coding experience.
@briankip, I've streamlined the way to import plugins (really php class files extending KBLIS\instrumentation\Abstract
) into the system. See if you like it any better.
@briankip, nimemaliza kwa sasa. Please review!
AbstractInstrumentor
or does not implement the abstract methods, it fails with fatal error. You could try and check first.Otherwise it looks good for a merge.
@briankip, please check again.
This is OK.
We just need to put it to a semi-actual test, we set up a machine on the Lan, make a small web app that dumps dummy data to file, and then we try to pick it and parse it. Pretty much like in the actual case.
Does kblis have any api to integrate to other systems?
Does kblis have any api to integrate to other systems?
https://github.com/ilabafrica/Blis-V3/releases/tag/v3.0-alpha does to EMR, to Automated Machine Client.... this is the Automated Machine Client
Thanks for the quick response.Is there any documentation to start me up quickly on how to use these?