44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
using Dakota.Models.Infos;
|
|
using Dakota.Models.Segmente;
|
|
using Dakota.Models.Segmente.SLLA;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Dakota.Models.Blocke
|
|
{
|
|
internal class BlockDiagnose : Block
|
|
{
|
|
|
|
/// <summary>
|
|
/// Das Segment dient zur Angabe der Diagnose und ist so oft
|
|
/// wiederholbar, wie Diagnosen vorliegen
|
|
/// </summary>
|
|
public SegmentSLLADIA SegmentSLLADIA { get; private set; }
|
|
|
|
public BlockDiagnose()
|
|
{
|
|
SegmentSLLADIA = new SegmentSLLADIA();
|
|
}
|
|
|
|
public override List<Segment> GetAllSegments()
|
|
{
|
|
var res = new List<Segment>();
|
|
|
|
res.Add(SegmentSLLADIA);
|
|
|
|
return res;
|
|
}
|
|
|
|
public override int GetUNHCount() => 0;
|
|
|
|
public void Apply(InfoBlockDiagnosen info)
|
|
{
|
|
SegmentSLLADIA.Diagnoseschlüssel.SetValue(info.Diagnoseschlüssel);
|
|
SegmentSLLADIA.Diagnosetext.SetValue(info.Diagnosetext);
|
|
}
|
|
}
|
|
}
|