diff --git a/hl7parser/hl7_data_types.py b/hl7parser/hl7_data_types.py
index a0a4726..2a8ba81 100644
--- a/hl7parser/hl7_data_types.py
+++ b/hl7parser/hl7_data_types.py
@@ -173,7 +173,7 @@ class HL7Datetime(HL7DataType):
     """
     component_map = ['datetime']
 
-    def __init__(self, composite, delimiter):
+    def __init__(self, composite, delimiter, use_delimiter="subcomponent_separator"):
         if len(composite) == 0:
             self.datetime = ""
             self.isNull = True

Parser fails if a datetime is provided in extended composite id block
The following message part contains an extended composite id block but can not be parsed
```
IN1|1:1|McDH|123456789^^^^^^^^^McDonalds Health|McDonalds Health||||||
```

This causes the parser to fail with a `TypeError`

diff --git a/tests/test_parse.py b/tests/test_parse.py
index d13898b..9ed57c6 100644
--- a/tests/test_parse.py
+++ b/tests/test_parse.py
@@ -64,7 +64,7 @@ class TestParsing(unittest.TestCase):
     msg_mrg = (
         "MSH|^~\&|HNAM_PM|HNA500|AIG||20131016140148||ADT^A34|Q150084042T145948315C489644\n"
         "PID|1||3790333^^^MSH_MRN^MRN^MTSN~2175611^^^MSH_EMPI^CMRN^UPLOAD|195511^^^IID^DONOR ID^MTSN~Q3790333^^^MSQ_MRN^KMRN|EVERYMAN^ADAM^J^^^^CURRENT||19580321|M|||77 CRANFORD COURT^^NEW YORK^NY^10038^USA^HOME^^040|040|(212)555-1212^HOM\n"
-        "MRG|3150123^^^MSH_MRN^MRN^MTSN|Q3150123"
+        "MRG|3150123^^^MSH_MRN^MRN^MTSN^20131016140148^^^^|Q3150123"
     )
 
     successful_query_result = "\n".join((
@@ -269,7 +269,7 @@ class TestParsing(unittest.TestCase):
 
 def test_in1_segment():
     message_data = (
-        "IN1|1:1|McDH||McDonalds Health||||||"
+        "IN1|1:1|McDH|123456789^^^^^^^^^McDonalds Health|McDonalds Health||||||"
         "|||||||||"
         "||||||||||"
         "||||||1|12345|||||||||||||"

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest pytest-cov mock tox
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==22.2.0
certifi==2021.5.30
coverage==6.2
distlib==0.3.9
filelock==3.4.1
-e git+https://github.com/mps-gmbh/hl7-parser.git@30d03f9dbd51866f0217f098db73b3ae5bfb4950#egg=hl7parser
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig==1.1.1
mock==5.2.0
packaging==21.3
platformdirs==2.4.0
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
pytest-cov==4.0.0
six==1.17.0
toml==0.10.2
tomli==1.2.3
tox==3.28.0
typing_extensions==4.1.1
virtualenv==20.17.1
zipp==3.6.0

name: hl7-parser
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==22.2.0
      - coverage==6.2
      - distlib==0.3.9
      - filelock==3.4.1
      - importlib-metadata==4.8.3
      - importlib-resources==5.4.0
      - iniconfig==1.1.1
      - mock==5.2.0
      - packaging==21.3
      - platformdirs==2.4.0
      - pluggy==1.0.0
      - py==1.11.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - pytest-cov==4.0.0
      - six==1.17.0
      - toml==0.10.2
      - tomli==1.2.3
      - tox==3.28.0
      - typing-extensions==4.1.1
      - virtualenv==20.17.1
      - zipp==3.6.0
prefix: /opt/conda/envs/hl7-parser

tests/test_parse.py::TestParsing::test_mrg_message_parse tests/test_parse.py::test_in1_segment
tests/test_parse.py::TestParsing::test_address tests/test_parse.py::TestParsing::test_datetime tests/test_parse.py::TestParsing::test_len tests/test_parse.py::TestParsing::test_message_parse tests/test_parse.py::TestParsing::test_multiple_segments_parse tests/test_parse.py::TestParsing::test_non_zero tests/test_parse.py::TestParsing::test_pv1_segment tests/test_parse.py::TestParsing::test_simple_segments_parse tests/test_parse.py::TestParsing::test_successful_query_status tests/test_parse.py::TestParsing::test_trailing_segment_fields tests/test_parse.py::TestParsing::test_unknown_message_parse tests/test_parse.py::TestParsing::test_unsuccessful_query_status
hl7parser/hl7_data_types.py
hl7parser/hl7_data_types.py