Skip to content

Example of a call to the visualization component:

The component provides a web service that can be accessed as follows:

Request

shellscript
curl -X 'POST' \
  'http://localhost:3000/v1/chmed' \
  -H 'accept: application/pdf' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer {valid bearer token *}' \
  -d '{
  "chmed": "https://eprescription.hin.ch/#CHMED16A1H4sIAAAAg{....}FQG3DI5AUAAA==&i=Testarzt+HIN+%28HIN%7Cerezept123%29&t=1749131873&s=3066023100{....}2978c8bfaa8b50bd09c1aa21708e",
  "lang": "en"
}' --output '/outputfolder/erx_pdf.pdf'

*The bearer token must be from one of these token groups: hin_sign, hin_authservice or hin_sds

The logfile on MacOS X intallations can be found here: /Users/%USERNAME%/Library/Application Suapport/erx/logs/main.log

version 1.0.0