I thnik i get you, but for now im dealing with issue that, as i said i managed to make orm that do not create study, but now i have no idea why ...
Thats kinda embarassing - i took a look at logged orm's (including older ones which created study) and i don't see where i could make a mistake.
Also i tried a bunch of orm2dcm (it accumulated a bit after all those experiments) and however each 'pair' create entry i cannot find one to create a study.
Thats a bit frustrating :/
Here is my sample ORM (bit of additional stuff which is not really used i know, but thats what i got from HIS), also here is only one obr and orc (i tried to understand principle):
MSH|^~\&|TEST_APP|TEST_FAC|ARCHIMEDIC|PACS_HOST|20140523102300||ORM^O01|MSG_TEST_C_ID_1|P|2.3|||AL|NE|POL|CP1250|PL
PID|1|01013010|010101010||test_pat_13||19820123000000|M|||Kdfsafdowa 12^^Rfsdfsica^^26-734
PV1|1|O|501-07-06^^^^^^^^zzzzzz ddddd 33|||||||||||||||||||||||||||||||||||||||||2014-05-15 17:30|2014-05-15 18:30
NTE|1|DEVELOPER|dsfsadfasdfasfsafas
ORC|NW|2010131010||30101010|||^^^20140523183000^^R||20140523183000|||1950008^Gfasdfas^Gfdaasfas
OBR|1|2010131010||R999^zzz sssssI|||||||||||^^^^^^^||||R999||||||||||||||
DG1|1|ICD-10|I10|dhgdhfhdfg (dghdfhfh) sfgsdgsdfgfsd
BLG||DP|xxx-xx-xx^yyyyyyy (41449)