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
}
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