go to post Enrico Parisi · Jun 3, 2024 I'd suggest to check the returned %Status from the %FromFHIRJSON() method. Instead of: do ..FHIRAdapter.%FromFHIRJSON(pRequest.Payload.Read(),.pmReqFHIRobj,"HS.FHIR.Model.Resource.Bundle") Use: set sc=..FHIRAdapter.%FromFHIRJSON(pRequest.Payload.Read(),.pmReqFHIRobj,"HS.FHIR.Model.Resource.Bundle") Then check the status.
go to post Enrico Parisi · Jun 1, 2024 What platform? Using the IRIS Community Edition kit you can install only client components, including ODBC driver:
go to post Enrico Parisi · May 31, 2024 There is also this recent announce from @Rob Tweed that mention support for legacy weblink applications: mg_web for ObjectScript Developers
go to post Enrico Parisi · May 30, 2024 You may have the option of using Extended Global References and in particular Bracket Syntax with References to Databases. In your code you need to change all your global references from:^SYS("CommonConfig")to^[%dbConfig]SYS("CommonConfig") Then, for normal situation where you want the %ALL mapping to apply, just use:set %dbConfig=""When you need to explicitly map it to a BARCONFIG database, then:set %dbConfig="^^:ds:BARCONFIG" This way you can switch from default %ALL mapping to "explicit reference" within your code.In the example I used a % local variable (%dbConfig) to hold the "database name reference" because it has a global scope, you may use a different approach like a property in some of your classes, a macro with some reference (in a global?) or...whatever is appropriate for your environment.
go to post Enrico Parisi · May 28, 2024 Length 50 Spoiler ClassMethod Count(i As %String) As %Integer { f p=1:1:$l(i){i ")]}D>"[$e(i,p),$i(c)} q +$g(c) }
go to post Enrico Parisi · May 28, 2024 Length: 77 Spoiler ClassMethod Count(i As %String) As %Integer { s i=$tr(i,":;8B=-^co~","") f p=1:1:$l(i){i ")]}D>"[$e(i,p),$i(c)} q +$g(c) }
go to post Enrico Parisi · May 27, 2024 I'm no Python expert at all, but it looks like user and password are missing. (uid and pwd??)
go to post Enrico Parisi · May 24, 2024 From the error you get I suspect you are sending your HS.Message.PatientFetchRequestAsync to the wrong service/endpoint in the remote server. How are you sending your request and how the operation is configured?
go to post Enrico Parisi · May 23, 2024 What does the file alert.log (in mgr dir as messages.log) contains?
go to post Enrico Parisi · May 23, 2024 irislib database is mounted as readonly database, so journal is disabled. irislocaldata database contains items used internally by IRIS and journal is disabled by design. This is standard/normal in any IRIS installation. I doubt your issue is caused by these journal being disabled and I would not tamper default/standard journal configuration for system databases.
go to post Enrico Parisi · May 23, 2024 The class HS.FHIR.DTL.vR4.Model.Resource.Bundle is a registered object and cannot be used in a persistent class property.
go to post Enrico Parisi · May 23, 2024 The first parameter (Lookup Table Name) of Exists function must be quoted: Exists("HologicProcedureFilter",.....) If you want, you can switch to the old zen based rule editor, in the upper right of the page click on the user icon and select Open in Zen rule editor: Note that it will open the rule in new tab, leaving the old tab open, make sure you use only one tab to edit the rule!
go to post Enrico Parisi · May 23, 2024 A production/ensemble message, a request in your case, MUST be a %Persistent class. BundleObject is a %DynamicObject and is not (does not extend) a %Presistent class.
go to post Enrico Parisi · May 23, 2024 In your messages.log do you see entries like: [Generic.Event] VSS Writer: OnFreeze............[Generic.Event] VSS Writer: OnThaw This is what is logged when a VSS snapshot is performed in windows. In "well behaved Windows server" this two messages are less that a minute apart
go to post Enrico Parisi · May 23, 2024 VSS in Windows is Volume Shadow Copy Service that (to simplify) provide snapshots for the disk storage. IRIS now support VSS for external backups. Are you performing a backup when this happen? I suggest to check the Windows event log for issues with VSS.
go to post Enrico Parisi · May 22, 2024 Assuming response1 json ALWAYS contain a single entry, then: ; import stream into Dynamic Object Set Response1=##class(%DynamicObject).%FromJSON(response1.informesAutorizadosRangoFechas) Set Response2=##class(%DynamicObject).%FromJSON(response2.informesAutorizadosRangoFechas) Write "Response1 has ",Response1.entry.%Size()," entries",! Write "Response2 has ",Response2.entry.%Size()," entries",! ; loop all the entries in Response2 Set EntryIter=Response2.entry.%GetIterator() While EntryIter.%GetNext(.EntryKey, .Entry) { Write "Response2, entry ",EntryKey+1," has ",Entry.resource.%Size()," resources",! ; loop all resources within Entry Set ResourceIter=Entry.resource.%GetIterator() While ResourceIter.%GetNext(.ResourceKey, .Resource) { ; add resource from Result2 in first entry of Result1 Do Response1.entry.%Get(0).resource.%Push(Resource) } } Write "Merged Response1 has ",Response1.entry.%Get(0).resource.%Size()," resources",! Using your samples the output is: Response1 has 1 entries Response2 has 7 entries Response2, entry 1 has 1 resources Response2, entry 2 has 1 resources Response2, entry 3 has 1 resources Response2, entry 4 has 1 resources Response2, entry 5 has 1 resources Response2, entry 6 has 1 resources Response2, entry 7 has 1 resources Merged Response1 has 8 resources The resulting json is different than your manual merge.......
go to post Enrico Parisi · May 22, 2024 So, the merged json should contain a single entry with all the resources inside this single entry? Does the response1 json ALWAYS contain a single entry? (as in your example)
go to post Enrico Parisi · May 21, 2024 What do you refer to with "frequency of transaction"? Are you using a Business Process with an adapter? Usually transactios refer to database operations (like data insert, update).
go to post Enrico Parisi · May 21, 2024 Do you need to join/merge resources or entries? Your manual merged json is a mix of merging resources and entries. The resource with "id": "35043996" is merged in the first entry of response1, the rest are merged as additional entries of response1. response 1 has 1 entryresponse2 has 7 entriesmerged json has 7 entries What's the required logic?