Posts

How to get around CORS error from third party API

Image
 What are CORS error? CORS is an acronym for Cross-origin Resource Sharing, it is an HTTP header that allows a server choose an origin other than its own to have access to its resources. The origin in this case include domain and port. For instance I as the admin of https://xyz.com can determine if I want other domains to access resources on my server. Having gotten a basis of what CORS is, it is worthy of note that for security reasons browsers implement a CORS safety feature by default when a fetch API is being called from script. What happens is that the browser checks the header of the requested resources to see if the header contains the right CORS header. This situation can be easily solved if you have access to the server, as you can easily include the origin on the server page. Most developers get frustrated when they are trying to fetch a third party API using a script and run into CORS error. I had such case with justsms.com.ng, their API can only be called from a script ...

EHR in Nigeria

 EHR is an acronym for Electronic Health Record, in simple terms, it is the storage of patient's health information on computers; this helps for easy retrieval of patients information. Modern EHR not only store patients information, it also manage the hospital workflow as the patient moves from one service point to another, track/manage patients billing information, alert physician/clinician when a patient's investigations result is posted and manages patients prescription. It's a whole web of process that is broken down into modules as per job role. The benefits of a standard EHR system are numerous in my estimation. I would list some of the well established benefits below: 1. Improve in patients turn around time(T-A-T): The architecture of an EHR is such that there is a central database which all clients system post data to and/or fetch data from. The flow of patient in a hospital is from the Reception, to the Cash point (if the patient is to make payment), to the Triage ...