User bio
404 bio not found
Member since Nov 6, 2015
Posts:
Replies:
Good question. In OAuth the response will include the expiration time, so that's what I was expecting here.
If the response doesn't include an expiration time does the vendor's documentation say anything about if tokens can be used for more than 1 request and if so how long it's valid for? If you know it's supposed to be valid for 60 minutes then you could just log the time when you requested the token and use that to track it.
It doesn't look like OAuth. If it were, the payload should include a grant_type and username is called "username" rather than "email":
https://www.oauth.com/oauth2-servers/access-tokens/password-grant/
https://www.oauth.com/oauth2-servers/access-tokens/client-credentials/
Open Exchange applications:
Certifications & Credly badges:
Marc has no Certifications & Credly badges yet.
Global Masters badges:
![Open Sesame!](https://community.intersystems.com/sites/default/files/badges/303371180-6de11138-f4e7-4113-b5cc-836269f07693.png)
![1,000 Points](https://community.intersystems.com/sites/default/files/badges/290121674-53216c4b-fe0c-44e7-9d75-2f24390135ed.png)
![Challenge Starter](https://community.intersystems.com/sites/default/files/badges/295959213-b83dd91a-663f-4f07-8e0e-e3287b7c2309.png)
![5,000 Points](https://community.intersystems.com/sites/default/files/badges/290121698-6976e2e4-084b-4026-bc5f-728c5e1ebe41.png)
![10K Points](https://community.intersystems.com/sites/default/files/badges/290121716-e7d970ee-2b18-423a-8871-5cc231687a22.png)
![Challenge Pro](https://community.intersystems.com/sites/default/files/badges/295959188-ff491b32-f0e9-4485-ad40-1c6db234985a.png)
![20K Points](https://community.intersystems.com/sites/default/files/badges/290121739-e1a39538-d83e-4205-9906-8e6466bf9371.png)
Followers:
Following:
Marc has not followed anybody yet.
As you noted, fromDao is in the HS.FHIRModel classes, but in the code you pasted you're actually using a class under HS.FHIR:
Set cls = $CLASSMETHOD("HS.FHIR.DTL.vR4.Model.Resource.Patient","fromDao",dao)
I think you want to do this instead:
Set cls = $CLASSMETHOD("HS.FHIRModel.R4.Patient","fromDao",dao)
https://docs.intersystems.com/irisforhealth20241/csp/documatic/%25CSP.Do...