Validation Error even though data is present as expected

31 views
Skip to first unread message

Ranga

unread,
Jul 17, 2018, 5:21:40 AM7/17/18
to National Health Care Survey Testing Tool
Hi,

I am getting below validation error when I checked it though validator.

MessageSHALL contain exactly one [1..1] @moodCode, which SHALL be selected from ValueSet MoodCodeEvnInt 2.16.840.1.113883.11.20.9.18 STATIC 2011-04-03 (CONF:1098-7497).
Context/ClinicalDocument[1]/component[1]/structuredBody[1]/component[4]/section[1]/entry[1]/substanceAdministration[1]
Test@moodCode and @moodCode=document('http://hit-dev.nist.gov:11080/muValidationNHCS/schematron/nhcs/voc.xml')/voc:systems/voc:system[@valueSetOid='2.16.840.1.113883.11.20.9.18']/voc:code/@value
MessageSHALL contain exactly one [1..1] @moodCode, which SHALL be selected from ValueSet MoodCodeEvnInt 2.16.840.1.113883.11.20.9.18 STATIC 2011-04-03 (CONF:1098-7497).
Context/ClinicalDocument[1]/component[1]/structuredBody[1]/component[4]/section[1]/entry[2]/substanceAdministration[1]
Test@moodCode and @moodCode=document('http://hit-dev.nist.gov:11080/muValidationNHCS/schematron/nhcs/voc.xml')/voc:systems/voc:system[@valueSetOid='2.16.840.1.113883.11.20.9.18']/voc:code/@value
MessageSHALL contain exactly one [1..1] @moodCode, which SHALL be selected from ValueSet MoodCodeEvnInt 2.16.840.1.113883.11.20.9.18 STATIC 2011-04-03 (CONF:1098-7497).
Context/ClinicalDocument[1]/component[1]/structuredBody[1]/component[4]/section[1]/entry[3]/substanceAdministration[1]
Test@moodCode and @moodCode=document('http://hit-dev.nist.gov:11080/muValidationNHCS/schematron/nhcs/voc.xml')/voc:systems/voc:system[@valueSetOid='2.16.840.1.113883.11.20.9.18']/voc:code/@value
MessageThe performer, if present, SHALL contain exactly one [1..1] @typeCode, which SHALL be selected from ValueSet x_ServiceEventPerformer 2.16.840.1.113883.1.11.19601 STATIC 2014-09-01 (CONF:1098-14840).
Context/ClinicalDocument[1]
Testnot(cda:documentationOf/cda:serviceEvent/cda:performer) or cda:documentationOf/cda:serviceEvent/cda:performer[@typeCode and @typeCode=document('http://hit-dev.nist.gov:11080/muValidationNHCS/schematron/nhcs/voc.xml')/voc:systems/voc:system[@valueSetOid='2.16.840.1.113883.1.11.19601']/voc:code/@value]
MessageThis value SHALL contain exactly one [1..1] @code, which SHALL be selected from ValueSet Current Smoking Status 2.16.840.1.113883.11.20.9.38 STATIC 2014-09-01 (CONF:1098-14817).
Context/ClinicalDocument[1]/component[1]/structuredBody[1]/component[3]/section[1]/entry[1]/observation[1]
Testcda:value[@xsi:type='CD'][@code and @code=document('http://hit-dev.nist.gov:11080/muValidationNHCS/schematron/nhcs/voc.xml')/voc:systems/voc:system[@valueSetOid='2.16.840.1.113883.11.20.9.38']/voc:code/@value]
MessageThe performer, if present, SHALL contain exactly one [1..1] @typeCode, which SHALL be selected from ValueSet x_ServiceEventPerformer 2.16.840.1.113883.1.11.19601 STATIC 2014-09-01 (CONF:1098-14840).
Context/ClinicalDocument[1]
Testnot(cda:documentationOf/cda:serviceEvent/cda:performer) or cda:documentationOf/cda:serviceEvent/cda:performer[@typeCode and @typeCode=document('http://hit-dev.nist.gov:11080/muValidationNHCS/schematron/nhcs/voc.xml')/voc:systems/voc:system[@valueSetOid='2.16.840.1.113883.1.11.19601']/voc:code/@value]
MessageThe performer, if present, SHALL contain exactly one [1..1] @typeCode, which SHALL be selected from ValueSet x_ServiceEventPerformer 2.16.840.1.113883.1.11.19601 STATIC 2014-09-01 (CONF:1098-14840).
Context/ClinicalDocument[1]
Testnot(cda:documentationOf/cda:serviceEvent/cda:performer) or cda:documentationOf/cda:serviceEvent/cda:performer[@typeCode and @typeCode=document('http://hit-dev.nist.gov:11080/muValidationNHCS/schematron/nhcs/voc.xml')/voc:systems/voc:system[@valueSetOid='2.16.840.1.113883.1.11.19601']/voc:code/@value]

Please let me know what is the issue(especially the performer one) here.

Note: I have attached the XML I used for reference.

Thanks,
Ranga.
NHCS_OP_2287_Update.xml

McCaffrey, Andrew (Fed)

unread,
Jul 17, 2018, 10:09:00 AM7/17/18
to Ranga, National Health Care Survey Testing Tool
Hi,

Which (specification) version of the tool are you running?

Thanks,
-Andrew
> --
> You received this message because you are subscribed to the Google
> Groups "National Health Care Survey Testing Tool" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
> national-health-care-surve...@googlegroups.com
> <mailto:national-health-care-surve...@googlegroups.com>.
> To post to this group, send email to
> national-health-care...@googlegroups.com
> <mailto:national-health-care...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/national-health-care-survey-testing-tool/aad65f50-856c-42f4-a709-77a0dea98fb3%40googlegroups.com
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fnational-health-care-survey-testing-tool%2Faad65f50-856c-42f4-a709-77a0dea98fb3%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=02%7C01%7Candrew.mccaffrey%40nist.gov%7Cbbfa8bf6615147faf57408d5ebc6b5cf%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C636674161050332528&sdata=fKIUtj3wTTFqki%2BpP19SkyLAY1XhK5kahqXoToWuoDc%3D&reserved=0>.
> For more options, visit https://groups.google.com/d/optout
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&data=02%7C01%7Candrew.mccaffrey%40nist.gov%7Cbbfa8bf6615147faf57408d5ebc6b5cf%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C636674161050352543&sdata=QeVs9BTmOKbtL6QkMqufclhOucPHLseFxBgDnz%2FCD%2Bw%3D&reserved=0>.

Ranga

unread,
Jul 18, 2018, 8:44:52 AM7/18/18
to National Health Care Survey Testing Tool
Hi,

I ran it through validator version 1.1.3

Document generated using 'HL7 CDA® R2 Implementation Guide: National Health Care Surveys Release 1, DSTU Release 1.2' spec.

Thanks,
Ranga.
> To post to this group, send email to

McCaffrey, Andrew (Fed)

unread,
Jul 19, 2018, 11:22:28 AM7/19/18
to Ranga, National Health Care Survey Testing Tool
Hi,

There was a configuration problem that has been corrected although I'm
not sure that will solve all of your issues. The Validator for the 1.2
version of the specification is version 1.1 of the tool. (I think the
1.1.3 you're referring to is for the 1.0 version of the specification.)
Can you try again and see if you are still experiencing issues.

-Andrew

On 07/18/2018 08:44 AM, Ranga wrote:
> Hi,
>
> I ran it through validator version 1.1.3
>
> Document generated using 'HL7 CDA® R2 Implementation Guide: National
> Health Care Surveys Release 1, DSTU Release 1.2' spec.
>
> Thanks,
> Ranga.
>
> On Tuesday, July 17, 2018 at 7:39:00 PM UTC+5:30, Andrew McCaffrey wrote:
>
> Hi,
>
> Which (specification) version of the tool are you running?
>
> Thanks,
> -Andrew
>
> On 07/17/2018 05:21 AM, Ranga wrote:
> > Hi,
> >
> > I am getting below validation error when I checked it though
> validator.
> >
> > Message        SHALL contain exactly one [1..1] @moodCode, which
> SHALL be
> > selected from ValueSet MoodCodeEvnInt 2.16.840.1.113883.11.20.9.18
> > STATIC 2011-04-03 (CONF:1098-7497).
> > Context
> >
> /ClinicalDocument[1]/component[1]/structuredBody[1]/component[4]/section[1]/entry[1]/substanceAdministration[1]
>
> > Test        @moodCode and
> >
> @moodCode=document('http://hit-dev.nist.gov:11080/muValidationNHCS/schematron/nhcs/voc.xml')/voc:systems/voc:system[@valueSetOid='2.16.840.1.113883.11.20.9.18']/voc:code/@value
> <http://hit-dev.nist.gov:11080/muValidationNHCS/schematron/nhcs/voc.xml%27%29/voc:systems/voc:system%5B@valueSetOid=%272.16.840.1.113883.11.20.9.18%27%5D/voc:code/@value>
>
> >
> > Message        SHALL contain exactly one [1..1] @moodCode, which
> SHALL be
> > selected from ValueSet MoodCodeEvnInt 2.16.840.1.113883.11.20.9.18
> > STATIC 2011-04-03 (CONF:1098-7497).
> > Context
> >
> /ClinicalDocument[1]/component[1]/structuredBody[1]/component[4]/section[1]/entry[2]/substanceAdministration[1]
>
> > Test        @moodCode and
> >
> @moodCode=document('http://hit-dev.nist.gov:11080/muValidationNHCS/schematron/nhcs/voc.xml')/voc:systems/voc:system[@valueSetOid='2.16.840.1.113883.11.20.9.18']/voc:code/@value
> <http://hit-dev.nist.gov:11080/muValidationNHCS/schematron/nhcs/voc.xml%27%29/voc:systems/voc:system%5B@valueSetOid=%272.16.840.1.113883.11.20.9.18%27%5D/voc:code/@value>
>
> >
> > Message        SHALL contain exactly one [1..1] @moodCode, which
> SHALL be
> > selected from ValueSet MoodCodeEvnInt 2.16.840.1.113883.11.20.9.18
> > STATIC 2011-04-03 (CONF:1098-7497).
> > Context
> >
> /ClinicalDocument[1]/component[1]/structuredBody[1]/component[4]/section[1]/entry[3]/substanceAdministration[1]
>
> > Test        @moodCode and
> >
> @moodCode=document('http://hit-dev.nist.gov:11080/muValidationNHCS/schematron/nhcs/voc.xml')/voc:systems/voc:system[@valueSetOid='2.16.840.1.113883.11.20.9.18']/voc:code/@value
> <http://hit-dev.nist.gov:11080/muValidationNHCS/schematron/nhcs/voc.xml%27%29/voc:systems/voc:system%5B@valueSetOid=%272.16.840.1.113883.11.20.9.18%27%5D/voc:code/@value>
>
> >
> > Message        The performer, if present, SHALL contain exactly
> one [1..1]
> > @typeCode, which SHALL be selected from ValueSet
> x_ServiceEventPerformer
> > 2.16.840.1.113883.1.11.19601 STATIC 2014-09-01 (CONF:1098-14840).
> > Context        /ClinicalDocument[1]
> >
> Test        not(cda:documentationOf/cda:serviceEvent/cda:performer) or
> > cda:documentationOf/cda:serviceEvent/cda:performer[@typeCode and
> >
> @typeCode=document('http://hit-dev.nist.gov:11080/muValidationNHCS/schematron/nhcs/voc.xml')/voc:systems/voc:system[@valueSetOid='2.16.840.1.113883.1.11.19601']/voc:code/@value
> <http://hit-dev.nist.gov:11080/muValidationNHCS/schematron/nhcs/voc.xml%27%29/voc:systems/voc:system%5B@valueSetOid=%272.16.840.1.113883.1.11.19601%27%5D/voc:code/@value>]
>
> >
> > Message        This value SHALL contain exactly one [1..1] @code,
> which SHALL
> > be selected from ValueSet Current Smoking Status
> > 2.16.840.1.113883.11.20.9.38 STATIC 2014-09-01 (CONF:1098-14817).
> > Context
> >
> /ClinicalDocument[1]/component[1]/structuredBody[1]/component[3]/section[1]/entry[1]/observation[1]
>
> > Test        cda:value[@xsi:type='CD'][@code and
> >
> @code=document('http://hit-dev.nist.gov:11080/muValidationNHCS/schematron/nhcs/voc.xml')/voc:systems/voc:system[@valueSetOid='2.16.840.1.113883.11.20.9.38']/voc:code/@value
> <http://hit-dev.nist.gov:11080/muValidationNHCS/schematron/nhcs/voc.xml%27%29/voc:systems/voc:system%5B@valueSetOid=%272.16.840.1.113883.11.20.9.38%27%5D/voc:code/@value>]
>
> >
> > Message        The performer, if present, SHALL contain exactly
> one [1..1]
> > @typeCode, which SHALL be selected from ValueSet
> x_ServiceEventPerformer
> > 2.16.840.1.113883.1.11.19601 STATIC 2014-09-01 (CONF:1098-14840).
> > Context        /ClinicalDocument[1]
> >
> Test        not(cda:documentationOf/cda:serviceEvent/cda:performer) or
> > cda:documentationOf/cda:serviceEvent/cda:performer[@typeCode and
> >
> @typeCode=document('http://hit-dev.nist.gov:11080/muValidationNHCS/schematron/nhcs/voc.xml')/voc:systems/voc:system[@valueSetOid='2.16.840.1.113883.1.11.19601']/voc:code/@value
> <http://hit-dev.nist.gov:11080/muValidationNHCS/schematron/nhcs/voc.xml%27%29/voc:systems/voc:system%5B@valueSetOid=%272.16.840.1.113883.1.11.19601%27%5D/voc:code/@value>]
>
> >
> > Message        The performer, if present, SHALL contain exactly
> one [1..1]
> > @typeCode, which SHALL be selected from ValueSet
> x_ServiceEventPerformer
> > 2.16.840.1.113883.1.11.19601 STATIC 2014-09-01 (CONF:1098-14840).
> > Context        /ClinicalDocument[1]
> >
> Test        not(cda:documentationOf/cda:serviceEvent/cda:performer) or
> > cda:documentationOf/cda:serviceEvent/cda:performer[@typeCode and
> >
> @typeCode=document('http://hit-dev.nist.gov:11080/muValidationNHCS/schematron/nhcs/voc.xml')/voc:systems/voc:system[@valueSetOid='2.16.840.1.113883.1.11.19601']/voc:code/@value
> <http://hit-dev.nist.gov:11080/muValidationNHCS/schematron/nhcs/voc.xml%27%29/voc:systems/voc:system%5B@valueSetOid=%272.16.840.1.113883.1.11.19601%27%5D/voc:code/@value>]
>
> >
> >
> > Please let me know what is the issue(especially the performer
> one) here.
> >
> > Note: I have attached the XML I used for reference.
> >
> > Thanks,
> > Ranga.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "National Health Care Survey Testing Tool" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to
> >
> national-health-care-surve...@googlegroups.com <javascript:>
>
> >
> <mailto:national-health-care-surve...@googlegroups.com
> <javascript:>>.
> > To post to this group, send email to
> > national-health-care...@googlegroups.com
> <javascript:>
> > <mailto:national-health-care...@googlegroups.com
> <javascript:>>.
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fnational-health-care-survey-testing-tool%2Faad65f50-856c-42f4-a709-77a0dea98fb3%2540googlegroups.com&data=02%7C01%7Candrew.mccaffrey%40nist.gov%7C99157eec45bc4f0018df08d5ecac42cd%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C636675146984337655&sdata=66j%2F2dxh56XqJBmX2lk4KktkGGGXFv2j5VhOMks1rao%3D&reserved=0>
>
> >
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fnational-health-care-survey-testing-tool%2Faad65f50-856c-42f4-a709-77a0dea98fb3%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=02%7C01%7Candrew.mccaffrey%40nist.gov%7Cbbfa8bf6615147faf57408d5ebc6b5cf%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C636674161050332528&sdata=fKIUtj3wTTFqki%2BpP19SkyLAY1XhK5kahqXoToWuoDc%3D&reserved=0
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&data=02%7C01%7Candrew.mccaffrey%40nist.gov%7C99157eec45bc4f0018df08d5ecac42cd%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C636675146984337655&sdata=DfexNHyFIaWSrIj7e8LB2vXi3GjIkOujjIn%2BGw9j5pk%3D&reserved=0>
>
> >
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&data=02%7C01%7Candrew.mccaffrey%40nist.gov%7Cbbfa8bf6615147faf57408d5ebc6b5cf%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C636674161050352543&sdata=QeVs9BTmOKbtL6QkMqufclhOucPHLseFxBgDnz%2FCD%2Bw%3D&reserved=0
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&data=02%7C01%7Candrew.mccaffrey%40nist.gov%7Cbbfa8bf6615147faf57408d5ebc6b5cf%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C636674161050352543&sdata=QeVs9BTmOKbtL6QkMqufclhOucPHLseFxBgDnz%2FCD%2Bw%3D&reserved=0>>.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "National Health Care Survey Testing Tool" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
> national-health-care-surve...@googlegroups.com
> <mailto:national-health-care-surve...@googlegroups.com>.
> To post to this group, send email to
> national-health-care...@googlegroups.com
> <mailto:national-health-care...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/national-health-care-survey-testing-tool/99b32483-1b98-45ea-bae1-ae003e89aa0c%40googlegroups.com
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fnational-health-care-survey-testing-tool%2F99b32483-1b98-45ea-bae1-ae003e89aa0c%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=02%7C01%7Candrew.mccaffrey%40nist.gov%7C99157eec45bc4f0018df08d5ecac42cd%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C636675146984337655&sdata=f0l%2BbksbOjSxuWD0I2CWMcGD5Oz12s7YtvvxSJ0ryh8%3D&reserved=0>.
> For more options, visit https://groups.google.com/d/optout
> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&data=02%7C01%7Candrew.mccaffrey%40nist.gov%7C99157eec45bc4f0018df08d5ecac42cd%7C2ab5d82fd8fa4797a93e054655c61dec%7C1%7C0%7C636675146984337655&sdata=DfexNHyFIaWSrIj7e8LB2vXi3GjIkOujjIn%2BGw9j5pk%3D&reserved=0>.
Reply all
Reply to author
Forward
0 new messages