New post

Encontrar

Question
· Sep 26, 2024

Navigate XML Bundle resource

Hi everyone,

I'm struggling with the extraction of information from the following XML:


<Bundle xmlns="http://hl7.org/fhir">
  <id value="b35061d2-7bf1-11ef-a57c-005056b65e2f"/>
  <type value="transaction-response"/>
  <timestamp value="2024-09-26T10:10:43Z"/>
  <entry>
    <resource>
      <Observation>
        <id value="2005"/>
        <meta>
          <versionId value="1"/>
          <lastUpdated value="2024-09-26T10:10:43Z"/>
        </meta>
        <status value="final"/>
        <code>
          <coding>
            <system value="urn:oid:2.16.840.1.113883.6.1"/>
            <code value="1-8"/>
            <display value="Acyclovir [Susceptibility]"/>
          </coding>
        </code>
        <subject>
          <reference value="Patient/5978971"/>
        </subject>
        <effectiveDateTime value="2024-09-09T13:20:24Z"/>
        <valueCodeableConcept id="5670">
          <coding>
            <system value="urn:oid:2.16.840.1.113883.6.103"/>
            <code value="612.5"/>
            <display value="Prova"/>
          </coding>
        </valueCodeableConcept>
        <interpretation>
          <coding>
            <code value="Media"/>
          </coding>
        </interpretation>
        <bodySite>
          <coding>
            <system value="urn:oid:2.16.840.1.113883.12.163"/>
            <code value="LA"/>
            <display value="Braccio sinistro"/>
          </coding>
        </bodySite>
      </Observation>
    </resource>
    <response>
      <status value="201"/>
      <location value="https://fser-test.regione.veneto.it/PROXYFHIR/r4/Observation/2005"/>
      <etag value="W/&quot;1&quot;"/>
      <lastModified value="2024-09-26T10:10:43Z"/>
    </response>
  </entry>
  <entry>
    <resource>
      <Observation>
        <id value="2006"/>
        <meta>
          <versionId value="1"/>
          <lastUpdated value="2024-09-26T10:10:43Z"/>
        </meta>
        <status value="final"/>
        <code>
          <coding>
            <system value="urn:oid:2.16.840.1.113883.6.1"/>
            <code value="1-8"/>
            <display value="Acyclovir [Susceptibility]"/>
          </coding>
        </code>
        <subject>
          <reference value="Patient/5978971"/>
        </subject>
        <effectiveDateTime value="2024-09-09T13:20:24Z"/>
        <valueCodeableConcept id="5670">
          <coding>
            <system value="urn:oid:2.16.840.1.113883.6.103"/>
            <code value="612.5"/>
            <display value="Prova"/>
          </coding>
        </valueCodeableConcept>
        <interpretation>
          <coding>
            <code value="Media"/>
          </coding>
        </interpretation>
        <bodySite>
          <coding>
            <system value="urn:oid:2.16.840.1.113883.12.163"/>
            <code value="LA"/>
            <display value="Braccio sinistro"/>
          </coding>
        </bodySite>
      </Observation>
    </resource>
    <response>
      <status value="201"/>
      <location value="https://fser-test.regione.veneto.it/PROXYFHIR/r4/Observation/2006"/>
      <etag value="W/&quot;1&quot;"/>
      <lastModified value="2024-09-26T10:10:43Z"/>
    </response>
  </entry>
</Bundle>

I'm doing:

set Bundle = ##class(A2Lib.FHIR.v400.Bundle).%New()
do reader.Correlate("Bundle","A2Lib.FHIR.v400.Bundle")
do reader.Next(.Bundle,.st)
        
for e=1:1:Bundle.entry.Count(){
            set locationValue = Bundle.entry.GetAt(e).response.location.value
... ...

But locationValue remain empty.

 

Can someone help me about what I'm doing wrong? 

Thank you
 

2 Comments
Discussion (2)2
Log in or sign up to continue
Article
· Sep 25, 2024 1m read

第三十三章 使用派生密钥令牌进行加密和签名 - 使用 DerivedKeyToken _进行加密(一)

第三十三章 使用派生密钥令牌进行加密和签名 - 使用

进行加密(一)

  1. 如果加密了任何安全标头元素,请将它们添加到 WS-Security 标头元素中。为此,请调用 Web 客户端或 Web 服务的SecurityOut 属性的 AddSecurityElement() 方法。在这种情况下,需要两个参数:

a. 安全标头元素(而不是从中生成的的 %XML.Security.EncryptedData)。

b. 引用列表实例。第二个参数指定将第一个参数指定的项目放在何处。如果参数是 AB,则 IRIS 确保 AB 之后。指定此项以便收件人首先处理引用列表,然后再处理依赖于它的加密安全标头元素。

Discussion (0)1
Log in or sign up to continue
Question
· Sep 25, 2024

VSCode debugging doesn't work with version 2024.2

Hello,

I'm trying to debug objectscript ClassMethods in VSCode, but nothing happens when clicking the Debug button over the ClassMethod.

This was working with previous versions - tested with IRIS 2020.

This is the server configuration:


"intersystems.servers": {

        "iris": {

            "webServer": {

                "scheme": "http",

                "host": "localhost",

                "port": 80

            },

            "username": "superuser"

        }

    },

Editing and compiling ObjectScript is working:

 

I checked the vscode devtools and saw an error every time I click debug:

 

Any help will be appreciated, 

Thanks.

1 Comment
Discussion (1)2
Log in or sign up to continue
Question
· Sep 25, 2024

LDAP Authentication Question

I am trying to track down a problem we saw this morning with our TEST environment. We had a momentary issue where InterSystems HealthShare Health Connect could not connect correctly to LDAP. When we tried to login and could not connect to LDAP, the system would Delete our users.

the Test LDAP function would return a "Can't contact LDAP server". I went through the Certificates, made sure they had the correct permissions and were not expired.

At the OS level we had no problems using our LDAP accounts to authenticate against the server, so we know the server could connect to LDAP, the trouble was the application itself.

We had to add our users back into the system as password users, then delete them, in order for us to connect to LDAP correctly and rebuild the users.

The System Audit logs show the Delete right before the LDAP sign on failures. None of our other boxes that are a part of the Mirror, or our Production box was affected.

We ended up failing over to a Mirror member since this was isolated to 1 server.

Is the LDAP functionality within the Application supposed to Delete Users if it cannot communicate correctly with LDAP?

Shouldn't it try to connect first and if it can't validate against LDAP, but the password is still cached use the cached login?

Beside using the Terminal to troubleshoot, is there any additional debug logging that could of been turned on to see what the LDAP authentication was doing besides REDEBUG?

2 Comments
Discussion (2)1
Log in or sign up to continue
Announcement
· Sep 25, 2024

Operate IPM / ZPM on your IRIS instances easily from within VS Code

Please allow me to introduce you to a new way of interacting with IPM (InterSystems Package Manager), also known as ZPM, directly from inside Visual Studio Code.

First, install into VS Code the free InterSystems Package Manager extension, published to Marketplace by George James Software. A quick way is to use the search field in VS Code's Extensions view and look for 'ipm zpm' (without the quotes). Alternatively browse to https://marketplace.visualstudio.com/items?itemName=georgejames.iris-pac...

Here's a short video showing the extension in action.

If you like it please vote for it in the 2024 Developer Tools Contest, but hurry because voting ends: 29 Sep, 2024, 11:59:59 PM EST

7 Comments
Discussion (7)4
Log in or sign up to continue