This public postman workspace is super useful!!
I think this deserves more attention and promotion in the community. It’s another example of lowering the barrier of entry.
I think we could add it to the ITS REST API spec. And potentially to the ehrbase documentation and or github readme.
I did encounter some issues though.
- the first run of the api gave an error:
There was an error in evaluating the Pre-request Script:Error: Cannot find package '@freshehr/openehr-shim'
, I disabled (commented out) the script. Which fixed the issue, but I don’t know the downsides. - a set of environment variable is required. I couldn’t find a way to import/set the environment, it doesn’t
- the create ehr calls fail: { “error”: “Bad Request”, “message”: “Subject’s namespace format invalid”}, disabling the api’s preprocess script solves this
- multiple ehrscap calls fail (non succeeded) with error 401 unauthorized. enabling the authorization environment variable didn’t help. ehrbase console didn’t show a log.
An import of your collection and environment with my changes is available at: Postman