検索

Artigo
· Set. 29, 2024 1min de leitura

IRIS Test Data Generator

The test data generator is mainly used to generate test data, which can be used to generate test data for tables and fields to meet the needs of different fields according to different types, currently supports Text, Number, Enum, UUID, regular expression, Multiple date and time formats, and Time Seven different types
 

How to use:

1. Select a namespace, you can see all the tables under the namespace,

2. Select the table we want to generate test data from, click on the field, and select the type on the right

3. After all the configurations are completed, click on the total number generated, and click on the generated data

Discussão (0)1
Entre ou crie uma conta para continuar
Pergunta
· Set. 29, 2024

Response of JSON type

Hi Guys,

I'm using the below simple Get Webservice to return a JSON file, its working but the response is actually of Text type not JSON Type 

ClassMethod cmGetHomes(cnt1, cnt2) As %Status
{    response="{""Land"""_":"_""""_cnt1_""",""Home"""_":"_""""_cnt2_"""}"
 // set dataObj=##class(%DynamicObject).%FromJSON(response.data)
 //set response.data = dataObj
 //W response.%ToJSON()
 //set response.data = {}.%FromJSON(response.data)
 //set response.data = {}.%FromJSON(response.data)
 response
 Quit $$$OK
}

This is the response that I'm getting in Postman

But it says type is text not JSON 

 

Thanks

5 Comments
Discussão (5)1
Entre ou crie uma conta para continuar
Pergunta
· Set. 29, 2024

Run a routine that was created and compiled with %Routine library

I created and then compiled a routine using the %Routine library 


s routine = ##class(%Routine).%New(fileName_"."_extension)
d routine.Write(parsedRule)
//s status = routine.Save()
s status = routine.SaveStream(,.refresh)
if ($$$ISERR(status)) throw status

Now the routine compiles successfully and as a result it is saved on the database.

I can now use from anywhere:


set r = ##class(%Routine).%New("myGeneratedCode.mac")

w r.SizeGet()

 

and it would output the size.

but for the question: How do i run a method in that file? It is saved on the database and i can't relaly see the path, what class can run this routines methods?

 

EDIT:

I can see the routine saved on ^rMAC("myRoutineName")

how can i run this MAC?

 

2 Comments
Discussão (2)2
Entre ou crie uma conta para continuar
Artigo
· Set. 28, 2024 1min de leitura

SMART on FHIR app - Exemplo com exercício com mão na massa / Workshop de Instruções

Baseado num ótimo exemplo e workshop construído por @Luis Angel Pérez Ramos (veja artigos relacionados e o Open Exchange app relacionado), que incluiu um container local InterSystems for Health (e setup desejado), essa amostra apresentada aqui, adaptada do workshop para usar o InterSystems Cloud FHIR Server, e suas definições relacionadas.

O OpenExchange e repositório GitHub relacionados incluíram instruções detalhadas (e prints de tela relacionados) para criar o projeto e fluxo desejados.

Uma série de vídeos curtos também seguem para acompanhar os passos a serem performados.

Basicamente, os passos incluem:

  • Definindo um servidor Cloud FHIR
  • Definindo um servidor OAuth (auth0 por Okta)
    • Criando uma Aplicação
    • Criando uma API
    • Criando um usuário
  • Configurando o Servidor FHIR 
    • Criando um Servidor OAuth 
    • Criando uma Aplicação
  • Adaptando o app (Angular) para apontar para os Servidores FHIR e OAuth
    • Adaptando proxy.config.json
    • Adaptando nginx.conf
    • Adaptando app.module.ts

Aproveite!

Discussão (0)1
Entre ou crie uma conta para continuar
Pergunta
· Set. 28, 2024

This site can’t be reached - trying out iris-DataViz

I want to try out iris-DataViz app to visualize my own data. I cloned the repo and docker-compose up -d in AWS. IRIS portal works, but on port 8051 I get nothing. I checked my AWS security groups. I reversed IRIS webserver port and 8051 and I can connect to Management portal using port 8051. I don't understand what is refusing connection on port 8051 running in iris-DataViz container.

1 Comment
Discussão (1)1
Entre ou crie uma conta para continuar