This is a code that creates a REST service to parse HL7 to Json.
Based on this code here from @prschmid
The REST interface is made through Flask.
With the coding running, send a POST request to the URL:
http://localhost:5000/conversao/hl72json
The HL7 goes into the body, with content-type: application/x-www-form-urlencoded, into the parameter: data.
Here you can see the postman request example.