Rechercher

Question
· Août 9, 2024

Get Record Map as a String within a DTL to build FHIR query string

I was looking for an easier way to build the FHIR Query String, given the Record Map request that is passed into the DTL.

I built this Function, but when I run a message through it, my Query String that is passed back into the DTL is a Reference Pointer and not the String I am looking for. 

ClassMethod BuildFHIRQueryString(record As %String, Output queryString As %String) As %Status

{

    // Assuming 'record' is a string containing the record map data

    // Define the delimiters

    Set fieldDelimiter = "|"

    Set repeatDelimiter = "~"

   

    set queryString = ""



    // Split the record into fields

    Set fields = $LISTFROMSTRING(record, fieldDelimiter)

   

    // Iterate over each field

    For i=1:1:$LISTLENGTH(fields) {

        Set field = $LISTGET(fields, i)

        if ($LENGTH(i)>0)

        {

          if ($LENGTH($Get(queryString)) > 0)

          {

            set queryString = queryString_"&"_field_"="_$Get(i)

          }

          else

          {

            set queryString = field_"="_$Get(i)

          }

        }

    }

    $$$TRACE(queryString)

    return queryString

    Quit $$$OK

}

 

Within a DTL how I get the entire Raw Record Map String that includes the | Seperators? is it something like... 

##class(Ens.MessageHeader).%OpenId($$$JobSessionId

 Thanks

Scott

3 Comments
Discussion (3)2
Connectez-vous ou inscrivez-vous pour continuer
Résumé
· Août 9, 2024

Participate in the sweepstakes by sharing how DC AI helped you!

Dear Community Member,

We're super excited to invite you to participate in our very first Developer Community Sweepstakes!

Your task is super simple: Share in the comments to this post how Developer Community AI helped you with your question (don't forget to add a link to the answer). At the end of summer, we will use random.org to choose one lucky winner out of everyone who commented (and followed the guidelines) — a maximum of 5 entries per person.

Good luck!

Annonce
· Août 9, 2024

[Video] Preparando seus dados para uso com IA Generativa

Olá, Comunidade!

Como você pode preparar seus dados para aplicações de IA generativas? Obtenha algumas dicas importantes de um especialista da InterSystems:

Preparing Your Data for Use with Generative AI

Neste vídeo, @Jeff Fried, Diretor de Estratégia de Plataforma da InterSystems, explica como preparar seus dados e garantir que eles sejam governados, seguros, justos, enriquecidos e precisos.

Continue sua jornada com o Noções básicas do caminho de aprendizagem da IA ​​Generativa (2h 45m).

Discussion (0)1
Connectez-vous ou inscrivez-vous pour continuer
Article
· Août 9, 2024 1m de lecture

VS Code ObjectScript extension 2.12.6 and later can optionally display server documents read-only if source control class reports them as such

A nice feature that we recently added to version 2.12.6 of the VS Code ObjectScript extension is controlled by this new setting:

objectscript.serverSourceControl.respectEditableStatus

When set true in JSON, or checked in the Settings Editor, a server-side file will be read-only if the source control class for the namespace reports that it is not editable.

This option may be of particular interest to users of our Deltanji source control product, particularly when used in combination with the Deltanji extension for VS Code. Once set, managed documents have to be explicitly checked out via the context menu option Deltanji adds, instead of the checkout being triggered implicitly by the first edit. Operating this way combines well with Deltanji's concept of a "favorite" change request, which streamlines the checkout procedure but until now tended to lead to accidental checkouts that the user would then need to cancel.

Discussion (0)1
Connectez-vous ou inscrivez-vous pour continuer
Annonce
· Août 9, 2024

[Vidéo] SQL on FHIR au service de la logistique hospitalière

Salut la Communauté!

Profitez de regarder la nouvelle vidéo sur la chaîne Youtube d'InterSystems France :

📺 SQL on FHIR au service de la logistique hospitalière

Intervenants : 
🗣 Luc Chatty, CEO, Fyrstain
🗣 @Guillaume Rongier, Ingénieur Commercial, InterSystems

Découvrez un cas d'usage de SQL avec FHIR pour la gestion des déplacements des ambulances autour d'un hôpital ainsi que l'affichage des informations sur une carte interactive.

Abonnez-vous à notre chaîne youtube pour plus de vidéos et restez à l'écoute !

Discussion (0)0
Connectez-vous ou inscrivez-vous pour continuer