CDCgov / trusted-intermediary

Bringing together healthcare providers by reducing the connection burden.
Apache License 2.0
10 stars 3 forks source link

Convert Birth Weight to Grams #913

Open JohnNKing opened 6 months ago

JohnNKing commented 6 months ago

Story

As AL PHL, so that I receive birth weight in the units I expect for orders, I need birth weight expressed in kilograms to be converted to grams.

Pre-conditions

Acceptance Criteria

Tasks

Research

Engineering

Definition of Done

Research Questions

Decisions

Notes

basiliskus commented 5 months ago

I propose we expand the rules engine used for validations in #341 to also handle transformations. The definitions schema could look something like this:

{
  "transformationRules": [
    {
      "name": "PatientFullName",
      "expression": "Patient.name.given.join(' ') & ' ' & Patient.name.family",
      "targetPath": "Patient.fullName"
    },