Have you implemented OpenMRS? Please participate in the Implementation Site Survey. If you already have, thank you!
Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • fn.latestEncounter()
    • returns the patient's latest encounter
    • since 1.7.4
    • Example

      Code Block
      Latest MDR-TB Encounter: <lookup expression="fn.latestEncounter(2)"/>
      
  • fn.latestEncounter(EncounterType type)
    • returns the patient's latest encounter for the given encounter type id
    • since 1.7.4
    • Example

      Code Block
      First MDR-TB Encounter: <lookup expression="fn.latestEncounter(2)"/>
      
  • fn.patientAgeInDays()
    • returns the patient's age in days, that is the number of days between patient's birthdate and current date (not the encounter date)
    • since 1.10.0
    • Example

      Code Block
      Patient's Age in Days: <lookup expression="fn.patientAgeInDays()"/>
      
  • fn.patientAgeInMonths()
    • returns the patient's age in months, that is the number of months between patient's birth month and current date (not the encounter date)
    • since 1.10.0
    • Example

      Code Block
      Patient's Age in Months: <lookup expression="fn.patientAgeInMonths()"/>
      
  • fn.getConcept(String conceptId)
    • returns the concept object for given concept ID, the ID should be passed as a string, i.e. in quotesId, UUID or mapping type Id
    • since 2.2.0
    • Example

      Code Block
      Concept: <lookup expression="fn.getConcept('110')"/>
      

...