Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DotLiquid] Add TraceInfo for HL7 v2 conversion #123

Merged
merged 10 commits into from
Dec 14, 2020

Conversation

BoyaWu10
Copy link
Contributor

@BoyaWu10 BoyaWu10 commented Dec 8, 2020

Description

Add TraceInfo for HL7 v2 conversion. If (a) -t is specified in command-line tool or (b) Hl7v2TraceInfo is passed in conversion interface, TraceInfo will be provided along with conversion result. Currently, TraceInfo contains unused segments.

Some other changes in this PR:

  • Refine error handling in ConverterLogicHandler, as the one in template management.
  • Use RenderParameters.FromContext which is provided directly in DotLiquid.
  • Make SafeList enumerable.
  • Put .editorconfig in solution items, as suggested by IDE.

Related issues

Addresses [issue #].

Testing

Describe how this change was tested.

@BoyaWu10 BoyaWu10 force-pushed the personal/boywu/unused-segments branch from 6fbfcb9 to a365ccc Compare December 8, 2020 11:41
@qiwjin
Copy link
Contributor

qiwjin commented Dec 9, 2020

    private static void ConvertBatchFiles(ConverterOptions options)

possible to call ConvertSingleFile in this function?


Refers to: src/Microsoft.Health.Fhir.Liquid.Converter.Tool/ConverterLogicHandler.cs:74 in 3ccd30c. [](commit_id = 3ccd30c, deletion_comment = False)

@@ -7,7 +7,7 @@ namespace Microsoft.Health.Fhir.Liquid.Converter.Models
{
/// <summary>
/// TraceInfo records processing details during conversion.
/// It is going to be implemented in coming releases.
/// For HL7 v2 conversion, please use its inherited class Hl7v2TraceInfo.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also consider ccda case if any shared field or method.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, would it be better if we simplify the output to "UnusedLines" and "UnusedIntervals" and make them shared for both HL7 v2 and CCDA?

Copy link
Contributor

@qiwjin qiwjin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@BoyaWu10 BoyaWu10 merged commit b7d3d84 into dotliquid Dec 14, 2020
@BoyaWu10 BoyaWu10 deleted the personal/boywu/unused-segments branch December 14, 2020 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants