I don’t really have any PHP experience and minimal HTTP experience, so I was trying to use the written API to write and read patient info from the test environment I created using Docker as suggested. When I run the provided test code to obtain an API token, I get an error saying “URL using bad/illegal format or missing URL” (this is after changing “api” to “fhir” as it says you can do. Before doing that I got the error “Failed to connect to localhost port 8300: Connection refused”). When I navigate to URLs given in the example commands, I see the data there, but I don’t know how to get the token necessary to write data and to then use it. The document I’m referencing is the API_README. Can someone aid in using the API? The end goal is just to learn how to read and write patient data to OpenEMR from some external source.
Yeah, exactly. Update: the specific error I am getting when I use the verbose curl is “error:1400410B:SSL routines:CONNECT_CR_SRVR_HELLO:wrong version number”, so it seems to be a problem with the security protocols. I don’t know much about these security aspects related to FHIR, but am currently just trying to make anything to transfer data between systems. (is there somehow a way to just bypass these security measures?) The full verbose output I’m getting is below:
Note: Unnecessary use of -X or --request, POST is already inferred.