I will do it like so:
set tObj = {}.%FromJSON(stream)
set newObj=##class(HS.FHIR.DTL.vR4.Model.Resource.*).%New()
set newObj.Property=tObj.SameProperty
do newObj.%Save()
Having tested this outside a restricted environment I realised my problem was the proxy server as the htttpResponse was not being instantiated, the work around was to use the proxy sever and running everything through the proxy tunnel.
{
set tSC=$$$OK
set req = ##class(%Net.HttpRequest).%New()
set req.Server = "msedgewebdriverstorage.blob.core.windows.net"
set req.ProxyPort=**
set req.ProxyServer="*******"
set req.ProxyHTTPS=1
set req.ProxyTunnel=1
set req.SSLConfiguration="Open" do:tSC req.Get("/edgewebdriver/?comp=list") Do $System.OBJ.Dump(req.HttpResponse)
quit tSC
}
![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)
I have tried what you suggested but still getting the same error <INVALID OREF> have also checked to see if the JSON string is present and checked on the instantiated object can not pin point where the error is coming from had look here they had the same problem but my guess is we are using different versions as I don't have this class in my version HS.FHIR.Validation.ResourceValidator