@@ -26,7 +26,7 @@ class MigStatus(StrEnum):
2626@dataclass (kw_only = True , eq = True )
2727class Code :
2828 """
29- a single code element inside a MIG Dataelement
29+ A single code element inside a MIG data element, indicated by the `<Code>` tag.
3030 """
3131
3232 # Example:
@@ -40,7 +40,8 @@ class Code:
4040class DataElement :
4141 """
4242 A single data element inside a MIG Segment.
43- This models both the 'Datenelement' and the 'Gruppendatenelement'
43+ This models both the 'Datenelement' and the 'Gruppendatenelement', indicated by the `<D_xxxx` tag.
44+ Are able to contain a single or multiple Code elements.
4445 """
4546
4647 # pylint:disable=line-too-long
@@ -51,8 +52,8 @@ class DataElement:
5152 id : str # e.g. 'D_0065'
5253 name : str # e.g. 'Nachrichtentyp-Kennung'
5354 description : str | None = None # e.g. ''
54- status_std : MigStatus
55- status_specification : MigStatus
55+ status_std : MigStatus # e.g. M
56+ status_specification : MigStatus # e.g. M
5657 format_std : str #: e.g. 'an..6'
5758 format_specification : str #: e.g. 'an..6'
5859 codes : list [Code ]
@@ -61,7 +62,8 @@ class DataElement:
6162@dataclass (eq = True , kw_only = True )
6263class DataElementGroup :
6364 """
64- a group of data elements, German 'Datenelementgruppe'.
65+ A group of data elements, German 'Datenelementgruppe', indicated by the `<C_xxxx>` tag.
66+ Are able to contain a single or multiple data elements.
6567 """
6668
6769 # "Die Datenelementgruppe C0829 enthält mehrere Gruppendatenelemente. Diese Datenelementgruppe enthält das
@@ -84,15 +86,15 @@ class DataElementGroup:
8486 id : str # e.g. 'C_C082'
8587 name : str # e.g. 'Identifikation des Beteiligten'
8688 description : str | None = None # e.g. ''
87- status_std : MigStatus
88- status_specification : MigStatus
89+ status_std : MigStatus # e.g. C
90+ status_specification : MigStatus # e.g. R
8991 data_elements : list [DataElement ]
9092
9193
9294@dataclass (frozen = True , eq = True , order = True , unsafe_hash = True , kw_only = True )
9395class Segment :
9496 """
95- a segment inside a MIG
97+ A segment inside a MIG, indicated by the `<S_xxxx>` tag. A segment contains data elements and data element groups.
9698 """
9799
98100 # Example:
@@ -118,16 +120,16 @@ class Segment:
118120 number : str #: e.g. '00004'
119121 max_rep_std : int #: e.g. 1
120122 max_rep_specification : int #: e.g. 1
121- status_std : MigStatus
122- status_specification : MigStatus
123+ status_std : MigStatus # e.g. M
124+ status_specification : MigStatus # e.g. M
123125 example : str | None #: e.g. "NAD+MS+9900259000002::293'"
124126 data_elements : list [DataElement | DataElementGroup ]
125127
126128
127129@dataclass (kw_only = True , eq = True )
128130class SegmentGroup :
129131 """
130- a "Segtmentgruppe"
132+ A 'Segmentgruppe' inside a MIG, indicated by the `<G_xxx>` tag. A segment contains segments and segments groups.
131133 """
132134
133135 # pylint:disable=line-too-long
0 commit comments