Hello community,
on my first steps with processing FHIR requests, I tried to create a capability statement resource an returning its content JSON or XML, depending on what is requested by the client.
I create a CapabilityStatement object by parsing a JSON file with:
#dim tCapStat as HS.FHIR.DTL.vR4.Model.Resource.CapabilityStatement = ##class(HS.FHIR.DTL.vR4.Model.Resource.CapabilityStatement).FromJSONFile("/opt/home/data/fhir/UkerQsCapabilityStatement.json","vR4")
then, depending on the content of pRequest.Request.ResponseFormatCode I create a HS.SDA3.QuickStream Object with
do tStrea
.png)
