-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about the structure of FDA Files (NOT AN ISSUE) #16
Comments
Hi Jabez, We've had a bit of discussion about this on issue #13 - have you tried looking in @antoniohupa did you have any luck finding these fields in the .fda? If you could share some code that would be great - I could incorporate into the main package. Mark |
Hi Mark and Jabez Yes, I could extract that information from FDA files (patient_id, eye, date of capture, etc). Patient's name is also easy to extract but I didn't dot it cause I need to work with anonymized data. A |
Hi Mark and Antonio, Looking forward to your code snippet as well. Jabez |
I had a look at the FDA_FILE_INFO chunk and this is what I see :
The number in the middle is the analysis software version, there is identification here. I had a look at CAPTURE_INFO_02, I think you're right about the laterality. I need to confirm by looking at some more files though. |
Hi there In @PATIENT_INFO_02 you will find the patient id, name, surname, gender, birth year, month, day ... I've introduced new structures in the FDA class from Mark and a couple of functions to extract data of interest (see below). I'm pretty sure that this code will not work with fda files from other topcon models different from 3D OCT Maestro, which is the one I'm using. I'll try to get some fda files from other topcon models to adapt this code to them. class FDA(object):
Executing fda.read_patient_info() or fda.read_capture_date() you'll get what you need. |
Hi Antonio, Jabez |
Hi Jabez The same happens to me when I try to parse that information from fda files from Topcon Triton instead of 3D Maestro. "PATIENT_INFO_03" seems to be very messy. I have some fda files from a Triton identified with patient id, name, etc. Having these information I'll try to find them in the bytes but unfortunately I cannot right now. In the meanwhile, could explore some more in the data? |
Yea, the files I've got are from a Triton as well. I found that most of the data in that chunk is exactly the same as the data found in other files. I've got to verify this for sure but I'm pretty sure the FDA files (I've compared) hold data for different patients so I shouldn't expect it to be so similar. Thanks for your help, any assistance would be greatly appreciated. I'll continue to look through other files as well. |
That's right, almost all code in that chunk is the same between patients. The only differences are found in the first 4-5 bytes: Patient id, 399047: @PATIENT_INFO_03g\x02\x00\x00\xd2\x1bH"0\x196g\x0b\x8e <---- Patient id, 907034: @PATIENT_INFO_03g\x02\x00\x00\xd8\x12F!0.6g\x0b\x8e? <---- S\x90\xfe\xe6A\xcc\xab8\x9c\x0c\x8a\x023\xae\x11\xd0\x19\xc1\x0eL\xdc\x976\xd8\x12\xe0iQ\xb1yC\x16gz\xe4\xee\xb8\xa0\x16A\xf9g\xc4\xef\x81\x92ac\x9d\x9fP\xb3a{$\x118\xdak5 I've making proofs but without results... |
Hi sorry for the late response. I did also have a look at other chunks, but nothing seemed obvious to me. maybe you might have better luck. |
Hi Jabez Since 2017, at least in my hospital, triton and maestro export .fda with "patient_info_03" chunk, I guess due to a updated version. however, I have found that when images are stored in a folder, a filelist with patient data is stored too. That filelist contains all patient data of that folder images. I wrote a code to read that filelist and from it you are able to export patient' id, gender, laterality, date and hour of capture, name and surname. Take a look in order if you have this file too. Otherwise, it seems impossible to extract patient's info from that structure of data. If you have it too, I can share with you the code. Greetings |
I see, thanks for that. I'll have a look. Is this folder created by the triton when storing it internally or is it created by the OCTDataExtractor.exe application? |
I'm not sure. What I have is automatically stored. At least in my hospital, all fda files are stored in folders. Every folder contains a number of fda files and a filelist with the patient information of that fda files. I really don't know what octdataextractor.exe does but I can ask. |
Going to close for now |
@antoniohupa Hello, is there anything new related about the chunk information of @PATIENT_INFO_03? I need the structure, and I am facing a lot of issues. Thanks in advance |
Hi Mark,
Great work on this project. Let me preface this by saying I don't have an issue with the OCT-Converter project, I am currently working on a project to extract some patient data from FDA files and I'm having a hard time finding the structure of the data.
I am currently trying to extract some patient data (name, eye side etc) from FDA files. The data seems to be in a chunk with the tag PATIENT_INFO_03, the uocte page (https://bitbucket.org/uocte/uocte/wiki/Topcon%20File%20Format) doesn't have any documentation on this chunk (only PATIENT_INFO_02).
I have some FDA files and some exported data (using Topcon's OCTDataCollector.exe) and doing a brute force search doesn't yield any matches either. I feel the data is encrypted but I can't be too sure.
My reason for posting here is that I'm hoping you might have come across this and know something about it.
Jabez
The text was updated successfully, but these errors were encountered: