发布新帖

Encontrar

公告
· 七月 1

Récapitulation de la communauté des développeurs, Juin 2025

Bonjour et bienvenue à la récapitulation de la communauté des développeurs de juin 2025.
Statistiques générales
✓ Nouvelles publications 24 publiées le juin :
 10 nouveaux articles
 13 nouvelles annonces
 1 nouvelle question
✓ Nouveaux membres 8 ayant rejoint le Juin
✓ Publications 1,199 publiées depuis le début
✓ Membres 178 ayant rejoint depuis le début
Meilleures publications
Un coup de poids
Par Andre Larsen Barbosa
Les meilleurs auteurs du mois
Articles
#InterSystems IRIS
 
#HealthShare
 
#InterSystems IRIS for Health
 
#Summit
Retour sur InterSystems Ready 2025
Par Irène Mykhailova
 
Annonces
#InterSystems IRIS
 
#Communauté des développeurs officielle
 
#InterSystems officiel
 
#Autre
InterSystems sur HIMSS25 Europe
Par Irène Mykhailova
 
#Supply Chain Orchestrator
 
#IRIS contest
 
#HealthShare
 
Questions
#InterSystems IRIS
 
Juin, 2025Month at a GlanceInterSystems Developer Community
讨论 (0)1
登录或注册以继续
公告
· 七月 1

Developer Community Recap, June 2025

Hello and welcome to the June 2025 Developer Community Recap.
General Stats
135 new posts published in June:
 20 new articles
 46 new announcements
 67 new questions
 2 new discussions
315 new members joined in June
15,132 posts published all time
16,724 members joined all time
Top posts
Top authors of the month
Articles
#InterSystems IRIS
IRIS Interop DevTools: A Jumpstart into IRIS Transformations for CCDA and FHIR
By Chi Nguyen-Rettig
Converting Oracle Hierarchical Queries to InterSystems IRIS: Generating Date Ranges
By Harry Tong
Building AI Agents: From Zero to Hero
By Henry Pereira
Configuring OpenTelemetry in IRIS
By Luis Angel Pérez Ramos
How to create your own search table for HL7 messaging
By Liam Evans
Options for Python Devs + Poll!
By Henry Ames
Innovating for Generative Elegance
By Alex Woodhead
Towards Smarter Table Statistics
By Benjamin De Boe
Transforming with Confidence: A GenAI Assistant for InterSystems OMOP
By Hannah Kimura
Exposing a Basic REST API with InterSystems IRIS: Step-by-Step Docker Example
By Marco Bahamondes
InterSystems for dummies – Machine learning II
By Kurro Lopez
REST API Debug: Page Not Found situation
By Evgeny Shvarov
IRIS Haiku
By Liam Evans
 
#InterSystems IRIS for Health
 
#Developer Community Official
 
#Summit
 
#InterSystems IRIS BI (DeepSee)
 
Announcements
#InterSystems IRIS
Announcing Deltanji 8.1 source control
By Laurel James (GJS)
Cambridge Developer Meetup - Building and Evaluating Agentic Generative Retrieval Systems
By Liubov Zelenskaia
[Video] Migrating 20TB to InterSystems IRIS with Near 0 Downtime
By Anastasia Dyubaylo
Point Releases Available to Address Namespace Switching and Global Display Issues in Recent 2025.1.0, 2024.1.4, 2023.1.6, and 2022.1.7 Versions
By Daniel Palevski
June 10, 2025 – Advisory: Namespace Switching and Global Display Failures
By Daniel Palevski
[Video] Foreign Tables in InterSystems IRIS 2025.1
By Anastasia Dyubaylo
[Video] RAG with built-in Vector Search in InterSystems IRIS 2025.1
By Anastasia Dyubaylo
Get Certified as a Development Professional
By Kristina Lauer
[Video] Chaining LLMs for Better Results using Agentic AI
By Anastasia Dyubaylo
Using InterSystems Embedded Analytics – Virtual July 14-18, 2025 - Registration space available
By Larry Finlayson
Memoria, an API accelerator
By Joel Espinoza
[Video] Using Character Slice Index in InterSystems IRIS
By Anastasia Dyubaylo
[Webinar] The Future of Healthcare Integration with Health Connect & InterSystems
By Anastasia Dyubaylo
 
#Developer Community Official
 
#IRIS contest
 
#Open Exchange
 
#Job Opportunity
 
#Learning Portal
 
#Other
 
#InterSystems IRIS for Health
 
#HealthShare
 
#Summit
 
#InterSystems Official
 
#Health Connect
 
#TrakCare
 
Questions
#InterSystems IRIS
Unable to Install Ensemble in IRIS for Health
By alon test
How to access and clean Application Error Log programmatically?
By Anna Golitsyna
What's this odd behavior with "select count()" and a Unique Index?
By Jean Millette
Proxy reverse to inside HTTP internal port 57772
By Matheus Augusto
How do I change the point I start reading a Stream?
By Evan Gabhart
$Name from a parameter
By Evgeny Shvarov
Pass a string to a routine from powershell
By Colin Gadumer
SQL Procedure - Equivalent to "IN LIKE"
By Andrew McCrevan
Shared code execution speed
By Anna Golitsyna
Web Gateway/Apache configuration to make SOAP Client Requests?
By Scott Roth
Create Python pages
By Nezla
Question about database defragmentation (several TB database)
By Norman W. Freeman
Yet Another Performance Puzzle
By Alexey Maslov
EnsLib.File.CSVService
By Saju Abraham
Multiselction Zen component
By Nezla
Cannot open file '/ensemble/TEST/iris.cpf_.... when trying to create a Database/Namespace
By Scott Roth
Base64Encode adding to SOAP Request
By Scott Roth
VS Code
By Matjaz Murko
How do I install IntegratedML in IRIS container
By Saba Nagervadze
Stop HTTP Response content
By Nezla
Where does IRIS Studio save its server connections?
By Pietro Di Leo
HTTP Request not returning data
By Nezla
Convert zone time code in zone number
By Kurro Lopez
Installing NodeJs in the container
By Nezla
Best way to "do this after another class compiles"?
By Justin Millette
Using %Net.WebSocket.Client
By Nezla
How do I set up a virtual environment for Embedded Python in IRIS?
By Justin Millette
Why is temporary database reported smaller than actual size of the disk ?
By Norman W. Freeman
What is best practice for calling macros from Embedded Python?
By Henry Ames
Http Request and Response format from %request object
By Ashok Kumar T
Accessing Response Content in %CSP.REST Before Writing to Output Buffer
By Ashok Kumar T
Identifying System-Defined vs User-Defined Web Applications in IRIS
By Ashok Kumar T
JSON fields and Class properties - are they case sensitive?
By Evgeny Shvarov
 
#InterSystems IRIS for Health
Primary startup failed, failed to read header ..... during Failover
By Scott Roth
In HL7 is there way to send bulk data
By Thembelani Mlalazi
EnsLib.SOAP.OutboundAdapter - Bind to Address?
By Scott Roth
End of EnsLib.SQL.Inbound Query
By Scott Roth
SQL Query - HL7 Message/HL7 ACK
By Scott Roth
After a new Windows install, the IRis Launcher does not respond. What might be the problem?
By Larry Goren
Switched from Community 2024.2 to licensed 2025.1, portal doesn't work, error 404
By Dmitrii Baranov
Protocol Error between the Web Gateway and InterSystems IRIS
By Laura Blázquez García
InterSystems Package Manager (ZPM) Installation errors
By Ashok Kumar T
question about "File Spec" - how to specific the filename, not wild card?
By Feng Wang
Handling HL7 Message Response from SOAP Request
By Scott Roth
Architectural Question about receiving HL7 via HTTPS
By Scott Roth
Decoding/Routing the Encoded HL7 Response from SOAP Request
By Scott Roth
Concatenation Issue
By Justin Ruggles
Databases inside a Namespace
By Phillip Wu
Custom Description Popup Text for Interoperability Production Business Hosts
By Jeffrey Drumm
Namespace vs database
By Phillip Wu
Business Service Error on Windows 11 machine
By Sizwe Hlatshwayo
Using CodeTidy in my GitHub automated workflow for linting ObjsectScript code
By JESUS (COGNOSANTE) BRAVO
How to search for re-submitted messages?
By Will
Difference between Index ZipIDX On ZipCode [ Data = (City,State) ]; and Index ZipIDX On (City,State)
By Shashvati Dash
Help with setting up SQL ODBC database connection in IRIS container
By Hjalmar Jacobson
 
#Ensemble
 
#HealthShare
 
#Caché
 
#Health Connect
 
Discussions
#InterSystems IRIS
 
#Summit
Welcome to Ready 2025!
By Eduard Lebedyuk
 
June, 2025Month at a GlanceInterSystems Developer Community
讨论 (0)1
登录或注册以继续
摘要
· 七月 1

Resumo do InterSystems Developer Community, Junho 2025

Olá e bem-vindo ao boletim informativo da comunidade de desenvolvedores Junho 2025.
Estatísticas gerais
15 novas postages publicadas em Junho:
 13 novos artigos
 2 novas perguntas
2 novos membros ingressaram em Junho
1,391 postagens publicadas ao todo
631 membros ingressaram ao todo
Principais publicações
Principais autores do mês
Artigos
#InterSystems IRIS
Um mergulho no Debugging de Embedded Python
Por Heloisa Paiva
IRIS Interop DevTools: Um Ponto de Partida para Transformações CCDA e FHIR no IRIS
Por Larissa Prussak
Usando Django e Vue.js para criar uma aplicação web no IRIS: Explorando o framework Django
Por Larissa Prussak
Usando Python no InterSystems Iris
Por Julio Esquerdo
codemonitor.MonLBL - Monitoramento de código ObjectScript Linha-por-linha
Por Heloisa Paiva
Integrando com Google Forms
Por Heloisa Paiva
Como habilitar a funcionalidade de Interoperabilidade em um namespace existente
Por Larissa Prussak
Convertendo Consultas Hierárquicas do Oracle para o InterSystems IRIS: Gerando Intervalos de Datas
Por Larissa Prussak
Utilitário Multilíngue de Generative AI para WorkBench de Pattern Match
Por Larissa Prussak
Depuração de API REST: Situação de Página Não Encontrada
Por Larissa Prussak
Construindo a Interface por Prompting vs Backend InterSystems IRIS: Lovable, Spec First e REST API
Por Larissa Prussak
#Open Exchange
#InterSystems IRIS BI (DeepSee)
Perguntas
Junho, 2025Month at a GlanceInterSystems Developer Community
摘要
· 七月 1

InterSystems Developer Community Digest, June 2025

Hello and welcome to the June 2025 Developer Community Newsletter.
General Stats
135 new posts published in June:
 20 new articles
 46 new announcements
 67 new questions
 2 new discussions
315 new members joined in June
15,132 posts published all time
16,724 members joined all time
Top posts
Top authors of the month
Articles
#InterSystems IRIS
IRIS Interop DevTools: A Jumpstart into IRIS Transformations for CCDA and FHIR
By Chi Nguyen-Rettig
Converting Oracle Hierarchical Queries to InterSystems IRIS: Generating Date Ranges
By Harry Tong
Building AI Agents: From Zero to Hero
By Henry Pereira
Configuring OpenTelemetry in IRIS
By Luis Angel Pérez Ramos
How to create your own search table for HL7 messaging
By Liam Evans
Options for Python Devs + Poll!
By Henry Ames
Innovating for Generative Elegance
By Alex Woodhead
Towards Smarter Table Statistics
By Benjamin De Boe
Transforming with Confidence: A GenAI Assistant for InterSystems OMOP
By Hannah Kimura
Exposing a Basic REST API with InterSystems IRIS: Step-by-Step Docker Example
By Marco Bahamondes
InterSystems for dummies – Machine learning II
By Kurro Lopez
REST API Debug: Page Not Found situation
By Evgeny Shvarov
IRIS Haiku
By Liam Evans
#InterSystems IRIS for Health
#Developer Community Official
#Summit
#InterSystems IRIS BI (DeepSee)
Announcements
#InterSystems IRIS
Announcing Deltanji 8.1 source control
By Laurel James (GJS)
Cambridge Developer Meetup - Building and Evaluating Agentic Generative Retrieval Systems
By Liubov Zelenskaia
[Video] Migrating 20TB to InterSystems IRIS with Near 0 Downtime
By Anastasia Dyubaylo
Point Releases Available to Address Namespace Switching and Global Display Issues in Recent 2025.1.0, 2024.1.4, 2023.1.6, and 2022.1.7 Versions
By Daniel Palevski
June 10, 2025 – Advisory: Namespace Switching and Global Display Failures
By Daniel Palevski
[Video] Foreign Tables in InterSystems IRIS 2025.1
By Anastasia Dyubaylo
[Video] RAG with built-in Vector Search in InterSystems IRIS 2025.1
By Anastasia Dyubaylo
Get Certified as a Development Professional
By Kristina Lauer
[Video] Chaining LLMs for Better Results using Agentic AI
By Anastasia Dyubaylo
Using InterSystems Embedded Analytics – Virtual July 14-18, 2025 - Registration space available
By Larry Finlayson
Memoria, an API accelerator
By Joel Espinoza
[Video] Using Character Slice Index in InterSystems IRIS
By Anastasia Dyubaylo
[Webinar] The Future of Healthcare Integration with Health Connect & InterSystems
By Anastasia Dyubaylo
#Developer Community Official
#IRIS contest
#Open Exchange
#Job Opportunity
#Learning Portal
#Other
#InterSystems IRIS for Health
#HealthShare
#Summit
#InterSystems Official
#Health Connect
#TrakCare
Questions
#InterSystems IRIS
Unable to Install Ensemble in IRIS for Health
By alon test
How to access and clean Application Error Log programmatically?
By Anna Golitsyna
What's this odd behavior with "select count()" and a Unique Index?
By Jean Millette
Proxy reverse to inside HTTP internal port 57772
By Matheus Augusto
How do I change the point I start reading a Stream?
By Evan Gabhart
$Name from a parameter
By Evgeny Shvarov
Pass a string to a routine from powershell
By Colin Gadumer
SQL Procedure - Equivalent to "IN LIKE"
By Andrew McCrevan
Shared code execution speed
By Anna Golitsyna
Web Gateway/Apache configuration to make SOAP Client Requests?
By Scott Roth
Create Python pages
By Nezla
Question about database defragmentation (several TB database)
By Norman W. Freeman
Yet Another Performance Puzzle
By Alexey Maslov
EnsLib.File.CSVService
By Saju Abraham
Multiselction Zen component
By Nezla
Cannot open file '/ensemble/TEST/iris.cpf_.... when trying to create a Database/Namespace
By Scott Roth
Base64Encode adding to SOAP Request
By Scott Roth
VS Code
By Matjaz Murko
How do I install IntegratedML in IRIS container
By Saba Nagervadze
Stop HTTP Response content
By Nezla
Where does IRIS Studio save its server connections?
By Pietro Di Leo
HTTP Request not returning data
By Nezla
Convert zone time code in zone number
By Kurro Lopez
Installing NodeJs in the container
By Nezla
Best way to "do this after another class compiles"?
By Justin Millette
Using %Net.WebSocket.Client
By Nezla
How do I set up a virtual environment for Embedded Python in IRIS?
By Justin Millette
Why is temporary database reported smaller than actual size of the disk ?
By Norman W. Freeman
What is best practice for calling macros from Embedded Python?
By Henry Ames
Http Request and Response format from %request object
By Ashok Kumar T
Accessing Response Content in %CSP.REST Before Writing to Output Buffer
By Ashok Kumar T
Identifying System-Defined vs User-Defined Web Applications in IRIS
By Ashok Kumar T
JSON fields and Class properties - are they case sensitive?
By Evgeny Shvarov
#InterSystems IRIS for Health
Primary startup failed, failed to read header ..... during Failover
By Scott Roth
In HL7 is there way to send bulk data
By Thembelani Mlalazi
EnsLib.SOAP.OutboundAdapter - Bind to Address?
By Scott Roth
End of EnsLib.SQL.Inbound Query
By Scott Roth
SQL Query - HL7 Message/HL7 ACK
By Scott Roth
After a new Windows install, the IRis Launcher does not respond. What might be the problem?
By Larry Goren
Switched from Community 2024.2 to licensed 2025.1, portal doesn't work, error 404
By Dmitrii Baranov
Protocol Error between the Web Gateway and InterSystems IRIS
By Laura Blázquez García
InterSystems Package Manager (ZPM) Installation errors
By Ashok Kumar T
question about "File Spec" - how to specific the filename, not wild card?
By Feng Wang
Handling HL7 Message Response from SOAP Request
By Scott Roth
Architectural Question about receiving HL7 via HTTPS
By Scott Roth
Decoding/Routing the Encoded HL7 Response from SOAP Request
By Scott Roth
Concatenation Issue
By Justin Ruggles
Databases inside a Namespace
By Phillip Wu
Custom Description Popup Text for Interoperability Production Business Hosts
By Jeffrey Drumm
Namespace vs database
By Phillip Wu
Business Service Error on Windows 11 machine
By Sizwe Hlatshwayo
Using CodeTidy in my GitHub automated workflow for linting ObjsectScript code
By JESUS (COGNOSANTE) BRAVO
How to search for re-submitted messages?
By Will
Difference between Index ZipIDX On ZipCode [ Data = (City,State) ]; and Index ZipIDX On (City,State)
By Shashvati Dash
Help with setting up SQL ODBC database connection in IRIS container
By Hjalmar Jacobson
#Ensemble
#HealthShare
#Caché
#Health Connect
Discussions
#InterSystems IRIS
#Summit
Welcome to Ready 2025!
By Eduard Lebedyuk
June, 2025Month at a GlanceInterSystems Developer Community
问题
· 七月 1

Iteration Help through JSON Response

I have built a REST operation to submit a JSON Request Body, and in the JSON Response Object, I need to pull out certain values like pureID, portalURL, and under the identifiers array the ClassifiedID that has a term."en_US" = "Scopus Author ID"

{
    "count": 1,
    "pageInformation": {
        "offset": 0,
        "size": 10
    },
    "items": [
        {
            "pureId": 0000000000000,
            "uuid": "xxxxxxxxxxxxxxxxxxxxx",
            "createdBy": "root",
            "createdDate": "2024-11-18T22:01:07.853Z",
            "modifiedBy": "root",
            "modifiedDate": "2025-06-25T13:26:38.733Z",
            "portalUrl": "https://xxxxxxxxxxxxxxxxxxxxx/en/persons/xxxxxxxxxx",
            "prettyUrlIdentifiers": [
                "samiksha-tarun"
            ],
            "version": "506af93393c24eeb70826afa0dd0ed473f1b61cc",
            "name": {
                "firstName": "xxxxxxxxxx",
                "lastName": "xxxxxxx"
            },
            "staffOrganizationAssociations": [
                {
                    "typeDiscriminator": "StaffOrganizationAssociation",
                    "pureId": 1540250714,
                    "employmentType": {
                        "uri": "/dk/atira/pure/person/employmenttypes/academic",
                        "term": {
                            "en_US": "Academic"
                        }
                    },
                    "organization": {
                        "systemName": "Organization",
                        "uuid": "def8fdb5-6206-4bb7-99d6-b1efe8c60939"
                    },
                    "period": {
                        "startDate": "xxxx-xx-xx"
                    },
                    "primaryAssociation": false,
                    "contractType": {
                        "uri": "/dk/atira/pure/person/personcontracttype/openended",
                        "term": {
                            "en_US": "Open ended"
                        }
                    },
                    "staffType": {
                        "uri": "/dk/atira/pure/person/personstafftype/academic",
                        "term": {
                            "en_US": "Academic"
                        }
                    }
                }
            ],
            "selectedForProfileRefinementService": true,
            "gender": {
                "uri": "/dk/atira/pure/person/gender/unknown",
                "term": {
                    "en_US": "Unknown"
                }
            },
            "titles": [
                {
                    "pureId": 1540250717,
                    "value": {
                        "en_US": "Assistant Professor"
                    },
                    "type": {
                        "uri": "/dk/atira/pure/person/titles/designation",
                        "term": {
                            "en_US": "Designation"
                        }
                    }
                }
            ],
            "visibility": {
                "key": "FREE",
                "description": {
                    "en_US": "Public - No restriction"
                }
            },
            "identifiers": [
                {
                    "typeDiscriminator": "PrimaryId",
                    "idSource": "synchronisedPerson",
                    "value": "xxxxxxxx"
                },
                {
                    "typeDiscriminator": "ClassifiedId",
                    "pureId": xxxxxxxxx,
                    "id": "xxxxxxxx",
                    "type": {
                        "uri": "/dk/atira/pure/person/personsources/employee",
                        "term": {
                            "en_US": "Employee ID"
                        }
                    }
                },
                {
                    "typeDiscriminator": "ClassifiedId",
                    "pureId": xxxxxxxx,
                    "id": "xxxxxxxx",
                    "type": {
                        "uri": "/dk/atira/pure/person/personsources/scopusauthor",
                        "term": {
                            "en_US": "Scopus Author ID"
                        }
                    }
                }
            ],
            "customDefinedFields": {},
            "systemName": "Person"
        }
    ]
  }

My REST Operation looks like...

Method PostSearchPerson(pRequest As osuwmc.COM.Request.SearchPerson, Output pResponse As osuwmc.COM.Response.StringResponse) As %Status
{
  #dim tSC As %Status = $$$OK
  try{
  set tHTTPRequest = ##class(%Net.HttpRequest).%New()
  set tHTTPRequest.SSLConfiguration = ..Adapter.SSLConfig
  set tHTTPRequest.Https = 1
  set tHTTPRequest.WriteRawMode = 1
  set tHTTPRequest.Port = ..Adapter.HTTPPort
  do tHTTPRequest.SetHeader("Host", ..Adapter.HTTPServer)
  Do tHTTPRequest.SetHeader("Accept","application/json")
  Do tHTTPRequest.SetHeader("Content-Type","application/json")
  Do tHTTPRequest.SetHeader("api-key",..ApiKey)
  do tHTTPRequest.EntityBody.Write()
  do tHTTPRequest.OutputHeaders()
  set tRequest = ##class(%DynamicObject).%New()
  set tRequest.searchString = pRequest.searchString
  set tPayload = tRequest.%ToJSON()

  set tURL=..Adapter.URL
  set tSC = tHTTPRequest.EntityBody.Write(tPayload)
  set tHTTPResponse = ##class(%Net.HttpResponse).%New()
  set tSC = ..Adapter.SendFormDataArray(.tHTTPResponse, "POST", tHTTPRequest, tURL, tPayload)
   If $$$ISERR(tSC)&&$IsObject(tHTTPResponse)&&$IsObject(tHTTPResponse.Data)&&tHTTPResponse.Data.Size {
         Set tSC=$$$ERROR($$$EnsErrGeneral,$$$StatusDisplayString(tSC)_":"_tHTTPResponse.Data.Read())
  }
  set tHttpResponseStatusCode = tHTTPResponse.StatusCode
  set tHttpResponseStatusLine = tHTTPResponse.StatusLine
  set tHttpResponseIsObject = $ISOBJECT(tHTTPResponse.Data)
  Set tHttpResponseContentLength = tHTTPResponse.ContentLength
  Set tHttpResponseContentInfo = tHTTPResponse.ContentInfo
  Set tHttpResponseContentType = tHTTPResponse.ContentType
  If ((tHttpResponseIsObject) && ($ZCONVERT(tHttpResponseContentType,"L") [ "application/json"))
  {
    set responseData = {}.%FromJSON(tHTTPResponse.Data)
    set pResponse = ##class(osuwmc.COM.Response.StringResponse).%New()
    if responseData.count =1{
      set pResponse.COMPortalURL = responseData.items.%Get(0).portalUrl
      set pResponse.COMPureID = responseData.items.%Get(0).pureId
      set iterator = responseData.items.%GetAt(0).identifiers.%GetIterator()
      while iterator.%GetNext(.key, .value) {
        if responseData.items.%GetAt(0).identifiers.%GetAt(iterator).typeDiscriminator = "ClassifiedId"
        {
          if responseData.items.%GetAt(0).identifiers.%GetAt(iterator).type.term."en_US" = "Scopus Author ID" {
            $$$LOGINFO(responseData.items.%GetAt(0).identifiers.%GetAt(iterator).value)
          }
        }
      }
    }
  }
  }
  catch ex {
    set tSC = ex.AsStatus()
  }
  quit tSC
}

But when I execute I am getting...

ERROR <Ens>ErrGeneral: Retrying Message body 9@osuwmc.COM.Request.SearchPerson / 3858480 because response 94@osuwmc.COM.Response.StringResponse / 121972 Status 'ERROR #5002: ObjectScript error: <METHOD DOES NOT EXIST>PostSearchPerson+37 ^osuwmc.COM.RESTOperation.1 *%GetAt,%Library.DynamicArray'

 

If I take out 

      set iterator = responseData.items.%GetAt(0).identifiers.%GetIterator()
      while iterator.%GetNext(.key, .value) {
        if responseData.items.%GetAt(0).identifiers.%GetAt(iterator).typeDiscriminator = "ClassifiedId"
        {
          if responseData.items.%GetAt(0).identifiers.%GetAt(iterator).type.term."en_US" = "Scopus Author ID" {
            $$$LOGINFO(responseData.items.%GetAt(0).identifiers.%GetAt(iterator).value)
          }
        }

the code works fine...

I tried using Iterate over dynamic object | InterSystems Developer Community | Best

and got this...

Key: count
Type: number
Path: obj.count
Value: 1

Key: pageInformation
Type: object
Path: obj.pageInformation
Value:
    Key: offset
    Type: number
    Path: obj.pageInformation.offset
    Value: 0

    Key: size
    Type: number
    Path: obj.pageInformation.size
    Value: 10

Key: items
Type: array
Path: obj.items
Value:
    Key: 0
    Type: object
    Path: obj.items.%GetAt(0)
    Value:
        Key: pureId
        Type: number
        Path: obj.items.%GetAt(0).pureId
        Value: 1540250713

        Key: uuid
        Type: string
        Path: obj.items.%GetAt(0).uuid
        Value: 2a4f9baa-e937-4671-a55f-3f3bd17667d1

        Key: createdBy
        Type: string
        Path: obj.items.%GetAt(0).createdBy
        Value: root

        Key: createdDate
        Type: string
        Path: obj.items.%GetAt(0).createdDate
        Value: 2024-11-18T22:01:07.853Z

        Key: modifiedBy
        Type: string
        Path: obj.items.%GetAt(0).modifiedBy
        Value: root

        Key: modifiedDate
        Type: string
        Path: obj.items.%GetAt(0).modifiedDate
        Value: 2025-06-25T13:26:38.733Z

        Key: portalUrl
        Type: string
        Path: obj.items.%GetAt(0).portalUrl
        Value: https://xxxxxxxxxxxxxxxxxxx/en/persons/xxxxxxxxxxxxxxxxxxxx

        Key: prettyUrlIdentifiers
        Type: array
        Path: obj.items.%GetAt(0).prettyUrlIdentifiers
        Value:
            Key: 0
            Type: string
            Path: obj.items.%GetAt(0).prettyUrlIdentifiers.%GetAt(0)
            Value: xxxxxxxxxx

        Key: version
        Type: string
        Path: obj.items.%GetAt(0).version
        Value: 506af93393c24eeb70826afa0dd0ed473f1b61cc

        Key: name
        Type: object
        Path: obj.items.%GetAt(0).name
        Value:
            Key: firstName
            Type: string
            Path: obj.items.%GetAt(0).name.firstName
            Value: xxxxxxxx

            Key: lastName
            Type: string
            Path: obj.items.%GetAt(0).name.lastName
            Value: xxxxxxxxxxxx

        Key: staffOrganizationAssociations
        Type: array
        Path: obj.items.%GetAt(0).staffOrganizationAssociations
        Value:
            Key: 0
            Type: object
            Path: obj.items.%GetAt(0).staffOrganizationAssociations.%GetAt(0)
            Value:
                Key: typeDiscriminator
                Type: string
                Path: obj.items.%GetAt(0).staffOrganizationAssociations.%GetAt(0).typeDiscriminator
                Value: StaffOrganizationAssociation

                Key: pureId
                Type: number
                Path: obj.items.%GetAt(0).staffOrganizationAssociations.%GetAt(0).pureId
                Value: xxxxxxxxxxxxx

                Key: employmentType
                Type: object
                Path: obj.items.%GetAt(0).staffOrganizationAssociations.%GetAt(0).employmentType
                Value:
                    Key: uri
                    Type: string
                    Path: obj.items.%GetAt(0).staffOrganizationAssociations.%GetAt(0).employmentType.uri
                    Value: /dk/atira/pure/person/employmenttypes/academic

                    Key: term
                    Type: object
                    Path: obj.items.%GetAt(0).staffOrganizationAssociations.%GetAt(0).employmentType.term
                    Value:
                        Key: en_US
                        Type: string
                        Path: obj.items.%GetAt(0).staffOrganizationAssociations.%GetAt(0).employmentType.term."en_US"
                        Value: Academic

                Key: organization
                Type: object
                Path: obj.items.%GetAt(0).staffOrganizationAssociations.%GetAt(0).organization
                Value:
                    Key: systemName
                    Type: string
                    Path: obj.items.%GetAt(0).staffOrganizationAssociations.%GetAt(0).organization.systemName
                    Value: Organization

                    Key: uuid
                    Type: string
                    Path: obj.items.%GetAt(0).staffOrganizationAssociations.%GetAt(0).organization.uuid
                    Value: xxxxxxxxxxxx

                Key: period
                Type: object
                Path: obj.items.%GetAt(0).staffOrganizationAssociations.%GetAt(0).period
                Value:
                    Key: startDate
                    Type: string
                    Path: obj.items.%GetAt(0).staffOrganizationAssociations.%GetAt(0).period.startDate
                    Value: xxxx-xx-xx

                Key: primaryAssociation
                Type: boolean
                Path: obj.items.%GetAt(0).staffOrganizationAssociations.%GetAt(0).primaryAssociation
                Value: 0

                Key: contractType
                Type: object
                Path: obj.items.%GetAt(0).staffOrganizationAssociations.%GetAt(0).contractType
                Value:
                    Key: uri
                    Type: string
                    Path: obj.items.%GetAt(0).staffOrganizationAssociations.%GetAt(0).contractType.uri
                    Value: /dk/atira/pure/person/personcontracttype/openended

                    Key: term
                    Type: object
                    Path: obj.items.%GetAt(0).staffOrganizationAssociations.%GetAt(0).contractType.term
                    Value:
                        Key: en_US
                        Type: string
                        Path: obj.items.%GetAt(0).staffOrganizationAssociations.%GetAt(0).contractType.term."en_US"
                        Value: Open ended

                Key: staffType
                Type: object
                Path: obj.items.%GetAt(0).staffOrganizationAssociations.%GetAt(0).staffType
                Value:
                    Key: uri
                    Type: string
                    Path: obj.items.%GetAt(0).staffOrganizationAssociations.%GetAt(0).staffType.uri
                    Value: /dk/atira/pure/person/personstafftype/academic

                    Key: term
                    Type: object
                    Path: obj.items.%GetAt(0).staffOrganizationAssociations.%GetAt(0).staffType.term
                    Value:
                        Key: en_US
                        Type: string
                        Path: obj.items.%GetAt(0).staffOrganizationAssociations.%GetAt(0).staffType.term."en_US"
                        Value: Academic

        Key: selectedForProfileRefinementService
        Type: boolean
        Path: obj.items.%GetAt(0).selectedForProfileRefinementService
        Value: 1

        Key: gender
        Type: object
        Path: obj.items.%GetAt(0).gender
        Value:
            Key: uri
            Type: string
            Path: obj.items.%GetAt(0).gender.uri
            Value: /dk/atira/pure/person/gender/unknown

            Key: term
            Type: object
            Path: obj.items.%GetAt(0).gender.term
            Value:
                Key: en_US
                Type: string
                Path: obj.items.%GetAt(0).gender.term."en_US"
                Value: Unknown

        Key: titles
        Type: array
        Path: obj.items.%GetAt(0).titles
        Value:
            Key: 0
            Type: object
            Path: obj.items.%GetAt(0).titles.%GetAt(0)
            Value:
                Key: pureId
                Type: number
                Path: obj.items.%GetAt(0).titles.%GetAt(0).pureId
                Value: xxxxxxx

                Key: value
                Type: object
                Path: obj.items.%GetAt(0).titles.%GetAt(0).value
                Value:
                    Key: en_US
                    Type: string
                    Path: obj.items.%GetAt(0).titles.%GetAt(0).value."en_US"
                    Value: Assistant Professor

                Key: type
                Type: object
                Path: obj.items.%GetAt(0).titles.%GetAt(0).type
                Value:
                    Key: uri
                    Type: string
                    Path: obj.items.%GetAt(0).titles.%GetAt(0).type.uri
                    Value: /dk/atira/pure/person/titles/designation

                    Key: term
                    Type: object
                    Path: obj.items.%GetAt(0).titles.%GetAt(0).type.term
                    Value:
                        Key: en_US
                        Type: string
                        Path: obj.items.%GetAt(0).titles.%GetAt(0).type.term."en_US"
                        Value: Designation

        Key: visibility
        Type: object
        Path: obj.items.%GetAt(0).visibility
        Value:
            Key: key
            Type: string
            Path: obj.items.%GetAt(0).visibility.key
            Value: FREE

            Key: description
            Type: object
            Path: obj.items.%GetAt(0).visibility.description
            Value:
                Key: en_US
                Type: string
                Path: obj.items.%GetAt(0).visibility.description."en_US"
                Value: Public - No restriction

        Key: identifiers
        Type: array
        Path: obj.items.%GetAt(0).identifiers
        Value:
            Key: 0
            Type: object
            Path: obj.items.%GetAt(0).identifiers.%GetAt(0)
            Value:
                Key: typeDiscriminator
                Type: string
                Path: obj.items.%GetAt(0).identifiers.%GetAt(0).typeDiscriminator
                Value: PrimaryId

                Key: idSource
                Type: string
                Path: obj.items.%GetAt(0).identifiers.%GetAt(0).idSource
                Value: synchronisedPerson

                Key: value
                Type: string
                Path: obj.items.%GetAt(0).identifiers.%GetAt(0).value
                Value: xxxxxx

            Key: 1
            Type: object
            Path: obj.items.%GetAt(0).identifiers.%GetAt(1)
            Value:
                Key: typeDiscriminator
                Type: string
                Path: obj.items.%GetAt(0).identifiers.%GetAt(1).typeDiscriminator
                Value: ClassifiedId

                Key: pureId
                Type: number
                Path: obj.items.%GetAt(0).identifiers.%GetAt(1).pureId
                Value: xxxxxx

                Key: id
                Type: string
                Path: obj.items.%GetAt(0).identifiers.%GetAt(1).id
                Value: xxxxxx

                Key: type
                Type: object
                Path: obj.items.%GetAt(0).identifiers.%GetAt(1).type
                Value:
                    Key: uri
                    Type: string
                    Path: obj.items.%GetAt(0).identifiers.%GetAt(1).type.uri
                    Value: /dk/atira/pure/person/personsources/employee

                    Key: term
                    Type: object
                    Path: obj.items.%GetAt(0).identifiers.%GetAt(1).type.term
                    Value:
                        Key: en_US
                        Type: string
                        Path: obj.items.%GetAt(0).identifiers.%GetAt(1).type.term."en_US"
                        Value: Employee ID

            Key: 2
            Type: object
            Path: obj.items.%GetAt(0).identifiers.%GetAt(2)
            Value:
                Key: typeDiscriminator
                Type: string
                Path: obj.items.%GetAt(0).identifiers.%GetAt(2).typeDiscriminator
                Value: ClassifiedId

                Key: pureId
                Type: number
                Path: obj.items.%GetAt(0).identifiers.%GetAt(2).pureId
                Value: xxxxxxx

                Key: id
                Type: string
                Path: obj.items.%GetAt(0).identifiers.%GetAt(2).id
                Value: xxxxxxx

                Key: type
                Type: object
                Path: obj.items.%GetAt(0).identifiers.%GetAt(2).type
                Value:
                    Key: uri
                    Type: string
                    Path: obj.items.%GetAt(0).identifiers.%GetAt(2).type.uri
                    Value: /dk/atira/pure/person/personsources/scopusauthor

                    Key: term
                    Type: object
                    Path: obj.items.%GetAt(0).identifiers.%GetAt(2).type.term
                    Value:
                        Key: en_US
                        Type: string
                        Path: obj.items.%GetAt(0).identifiers.%GetAt(2).type.term."en_US"
                        Value: Scopus Author ID

        Key: customDefinedFields
        Type: object
        Path: obj.items.%GetAt(0).customDefinedFields
        Value:

        Key: systemName
        Type: string
        Path: obj.items.%GetAt(0).systemName
        Value: Person

 

Can I get a second pair of eyes to take a look and see what I might be doing wrong? or give me a hint on how I could extract Scopus Author ID from identifiers.ClassifiedID?

1 条新评论
讨论 (1)2
登录或注册以继续