Skip to content

Commit cd115f1

Browse files
committed
docs: correct hierarchy in result tree
1 parent 27a98e6 commit cd115f1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

docs/index.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@ which aims to replace `txHL7 <https://txhl7.readthedocs.io/>`_.
3939
Result Tree
4040
-----------
4141

42-
HL7 Messages have a limited number of levels. The top level is a Message.
43-
A Message is comprised of a number of Fields (:py:class:`hl7.Field`).
44-
Fields can repeat (:py:class:`hl7.Repetition`). The content of a field
45-
is either a primitive data type (such as a string) or a composite
46-
data type comprised of one or more Components (:py:class:`hl7.Component`). Components
47-
are in turn comprised of Sub-Components (primitive data types).
42+
HL7 messages have a limited number of levels. The top level is a
43+
:py:class:`hl7.Message`. A message is comprised of a number of
44+
:py:class:`hl7.Segment` objects. Each segment contains a series of
45+
:py:class:`hl7.Field` objects. Fields can repeat (:py:class:`hl7.Repetition`).
46+
The content of a field is either a primitive data type (such as a string)
47+
or a composite data type comprised of one or more
48+
:py:class:`hl7.Component` objects. Components are in turn comprised of
49+
sub-components (primitive data types).
4850

4951
The result of parsing is accessed as a tree using python list conventions:
5052

0 commit comments

Comments
 (0)