Skip to content

Commit 7bbdbf1

Browse files
committed
Remove MaxRepetition check, fixes #276 keeps nhapi inline with hapi
1 parent fc250de commit 7bbdbf1

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/NHapi.Base/Model/AbstractSegment.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,6 @@ public virtual IType GetField(int number, int rep)
167167
ErrorCode.APPLICATION_INTERNAL_ERROR);
168168
}
169169

170-
if (rep > items[number - 1].MaxRepetitions)
171-
{
172-
throw new HL7Exception(
173-
$"Can't get repetition {rep} from field {number} - maximum repetitions is only {items[number - 1].MaxRepetitions} reps.",
174-
ErrorCode.APPLICATION_INTERNAL_ERROR);
175-
}
176-
177170
// add a rep if necessary ...
178171
if (rep == currentReps)
179172
{

0 commit comments

Comments
 (0)