MATLAB: How to write DICOM ReferringPhysicianName metadata

dicomdicomwriteMATLAB and Simulink Student Suite

In the RT Dose DICOM files exported from MIM there is the ReferringPhysicianName structure with FamilyName, MiddleName, and GivenName structure-subset tags. How do you write data to each subset element? I have only found how to fill data on the 'first' level, which goes into the FamilyName removing the MiddleName and GivenName subsets.
For example, this code works:
dicomwrite(blurreddose,filename,doseinfo,'DoseSummationType','PLAN','SeriesDescription','Feb. 2018 blurring of planned beams',...
'ReferringPhysicianName','Robinson','DoseUnit','RELATIVE','DoseGridScaling',num2str(DoseGridScaling),'CreateMode','copy');
but trying something like
'ReferringPhysicianName.FamilyName','Robinson','ReferringPhysicianName.GivenName','Walter'
gave the error that there was no DICOM tag with that name (as I recall). The dicomwrite documentation doesn't specify how to specify this substructure format.

Best Answer

I see something indicating you should use ^ between the parts.