sherry cheng
Feb 5, 2026, 12:18 PM
I am developing a FHIR converter to map structured data to the TW Core IG . I am currently facing a challenge with incomplete records and would like to seek a solution that allows for data retention. Scenario: Incomplete but Valuable Data In my dataset, certain rows lack mandatory elements like dates or patient identifiers. However, I cannot discard these records because the clinical values (Weight, Height, BMI) are essential for our downstream statistical analysis. date; name; weight; hight; bmi 2026/1/2 ; Joe; 50; 160; 19.5 (missing); (missing); 68; 172; 23.3 The Conflict: While the first row converts smoothly, the second row fails validation due to missing mandatory ( 1..1 ) fields required by the Composition and Observation profiles in TW Core. Since I must preserve this data for research purposes, what is the best practice to represent these missing mandatory elements in FHIR? Should I use Data Absent Reason extensions? 2. Methodology: Template-based Mapping Regarding the conversion logic, I am currently using a "Template-based" approach. For instance, I take a valid Observation-Weight example from the TW Core IG and programmatically inject my dataset's values into the JSON structure, as shown below: Template: Observation.valueQuantity.value = [Template_Value] Logic: Replace [Template_Value] with "68" Is this a correct method? I have attempted to find guidance in the official IG and forums but have not found a clear strategy.(It's possible I don't know the right keywords. :sob: ) I look forward to your kind suggestions. :blush: Thank you so much!