This wiki has undergone a migration to Confluence found Here
<meta name="googlebot" content="noindex">

VMR Examples

From HL7Wiki
Revision as of 23:44, 5 November 2009 by Prscott (talk | contribs) (New page: This an example of gello code talking to a VMR looking for family history of early onset breast cancer -- this example requires the HL7v3RIM.model loaded. Let BreastCancer: CD = Factor...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This an example of gello code talking to a VMR looking for family history of early onset breast cancer

-- this example requires the HL7v3RIM.model loaded.
Let BreastCancer: CD = Factory.codedvalue('123456', 'SNOMED-CT', 'Breast Cancer')
Let EarlyBreastCancerCount: Integer =
  FamilyHistory.relatives -> iterate(x; i:Integer = 0 |
                                     if (x.clinicalGenomicObservations ->
                                     select(code.implies(BreastCancer) and (dataEstimatedAge() < 50)).isEmpty()) then i else i + 1 endif)
EarlyBreastCancerCount > 0