usnistgov / hl7-igamt

10 stars 3 forks source link

[BUG] Error message for DTM assertion #1649

Closed carolinerosin closed 2 months ago

carolinerosin commented 10 months ago

Describe the bug The error message is DTM_NZ_DateTimeConstraint - Element 'xxx' SHALL follow the Date/Time pattern 'YYYYMMDD[HH[MM[SS[.S[S[S[S]]]]]]]'.

User Account any account

URL any IG with DTM

To Reproduce Steps to reproduce the behavior:

  1. Create a DTM flavor and profile it
  2. Look at error message generated

Expected behavior It needs a better error message (no 'xxx'). Ideally, the parent path should replace xxx, but not sure if that is possible since the assertion is generated in the DTM flavor. Otherwise something like that "The Date/Time element SHALL follow the pattern 'YYYYMMDD[HH[MM[SS[.S[S[S[S]]]]]]]'." or "[flavor name] datatype SHALL follow the pattern 'YYYYMMDD[HH[MM[SS[.S[S[S[S]]]]]]]'."

Screenshots image image

Additional context n/a

carolinerosin commented 10 months ago

DTM > Date/Time DT > Date TM > Time