QualityInformationFramework / qif-community

The online hub for the QIF community
Boost Software License 1.0
23 stars 17 forks source link

Results sample duplicate characteristic measurement #4

Closed mstryck2 closed 4 years ago

mstryck2 commented 4 years ago

In QIF_Results_Sample.QIF there are two PointProfileCharacteristicMeasurements referencing the same CharacteristicItemID in the same MeasurementResult. The file validated against the schema however should this be allowed?

            <PointProfileCharacteristicMeasurement id="17">
              <Status>
                <CharacteristicStatusEnum>PASS</CharacteristicStatusEnum>
              </Status>
              <CharacteristicItemId>15</CharacteristicItemId>
              <FeatureMeasurementIds n="1">
                <Id>11</Id>
              </FeatureMeasurementIds>
              <NonConformanceDesignator>NA</NonConformanceDesignator>
              <Value>-0.020323885079998</Value>
            </PointProfileCharacteristicMeasurement>
            <PointProfileCharacteristicMeasurement id="18">
              <Status>
                <CharacteristicStatusEnum>PASS</CharacteristicStatusEnum>
              </Status>
              <CharacteristicItemId>15</CharacteristicItemId>
              <FeatureMeasurementIds n="1">
                <Id>11</Id>
              </FeatureMeasurementIds>
              <NonConformanceDesignator>NA</NonConformanceDesignator>
              <Value>0</Value>
            </PointProfileCharacteristicMeasurement>
tib8 commented 4 years ago

This is legal: they could point to two different ActualComponentId or it could be repeated measurement for averaging (for example when you measure a diameter with a simple caliper more than once).