Should you require any more information or have encountered a problem, please call the support helpdesk on (07) 5456 6000.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The GELLO in this worked example is set up to run when a reticulocyte count Observation is present.

We need to access this data however in the script. Here is some GELLO to proceed with, in the IDE:

Context HL7_v2_VMR_V1::IncomingObservation
imports iso_21090_datatypes

Let metadata = Tuple {
                       title = 'Test high reticulocytes',
                       keywords = Sequence{'Test'},
                       version = 1,
                       revision = 1,
                       date = '20240816',
                       mode = 'CLIENT',
                       author = 'Medical-Objects',
                       identifier = 'COMMENT_GELLO:Test_Retics',
                       purpose = 'For testing new GELLO IDE',
                       includesList = Sequence{'14196-0^^LN'},
                       excludesList = Sequence{}
                       }

-- Set up codes

Let retic_LN: CD = CD{code = '14196-0',codeSystem = '2.16.840.1.113883.6.1', codeSystemName ='LOINC'}
-- get the incoming observation and any vmr data

Let incoming_retic = observations->select(observationCode.implies(retic_LN).value)
                                     ->sortedBy(dateTime).last()
----------------
incoming_retic

We are setting up a Concept Descriptor (CD) typed object. We then use the implies method as a collection operator on the observation class in the context of this incoming observation, sorting any multiple values and getting the last and usually the only one.

Then we return this.

To run in the GELLO IDE you can use the Run button which is the plain arrow (sideways triangle) top RHS:


  • No labels