You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FHIR version: R4 (may also exist in other Fhir versions but not tested)
SDK version: 3.4.0
Unit test to reproduce error (directory source folder contents: resourceProfiles.zip):
[TestMethod]
public void TestObservationCodeCardinality()
{
// Arrange
var zipSource = ZipSource.CreateValidationSource();
var dirSource = new DirectorySource("resourceProfiles\\FOR-497");
var resolver = new CachedResolver(new MultiResolver(zipSource, dirSource));
var snapshotGenerator = new SnapshotGenerator(resolver, SnapshotGeneratorSettings.CreateDefault());
var sd = resolver.ResolveByCanonicalUri("http://hl7.org/fhir/StructureDefinition/Observation") as StructureDefinition;
var sut = resolver.ResolveByCanonicalUri("http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-results-uv-ips") as StructureDefinition;
// Act
var elements = snapshotGenerator.Generate(sut);
// Assert
snapshotGenerator.Outcome.Should().BeNull();
const string codeId = "Observation.code";
var sdCode = sd.Snapshot.Element.Single(x => x.ElementId == codeId);
var sutCode = elements.Single(x => x.ElementId == codeId);
sutCode.Max.Should().Be(sdCode.Max);
sutCode.Min.Should().Be(sdCode.Min);
}
The text was updated successfully, but these errors were encountered:
Derived profile contains wrong Min cardinality even though it was not changed in regards to the base profile.
Original bug was reported for Forge (https://firely.atlassian.net/browse/FOR-497). Additional information can be found there.
FHIR version: R4 (may also exist in other Fhir versions but not tested)
SDK version: 3.4.0
Unit test to reproduce error (directory source folder contents: resourceProfiles.zip):
The text was updated successfully, but these errors were encountered: