1 /*
2  *
3  *  Copyright (C) 2008-2012, OFFIS e.V. and ICSMED AG, Oldenburg, Germany
4  *  Copyright (C) 2013-2017, J. Riesmeier, Oldenburg, Germany
5  *  All rights reserved.  See COPYRIGHT file for details.
6  *
7  *  Source file for class DRTIonBeamsTreatmentRecordIOD
8  *
9  *  Generated automatically from DICOM PS 3.3-2017e
10  *  File created on 2017-12-05 09:30:54
11  *
12  */
13 
14 
15 #include "dcmtk/config/osconfig.h"      // make sure OS specific configuration is included first
16 
17 #include "dcmtk/dcmrt/drtiontr.h"
18 
19 
DRTIonBeamsTreatmentRecordIOD()20 DRTIonBeamsTreatmentRecordIOD::DRTIonBeamsTreatmentRecordIOD()
21   : PatientName(DCM_PatientName),
22     PatientID(DCM_PatientID),
23     IssuerOfPatientID(DCM_IssuerOfPatientID),
24     IssuerOfPatientIDQualifiersSequence(),
25     PatientBirthDate(DCM_PatientBirthDate),
26     PatientBirthDateInAlternativeCalendar(DCM_PatientBirthDateInAlternativeCalendar),
27     PatientDeathDateInAlternativeCalendar(DCM_PatientDeathDateInAlternativeCalendar),
28     PatientAlternativeCalendar(DCM_PatientAlternativeCalendar),
29     PatientSex(DCM_PatientSex),
30     ReferencedPatientPhotoSequence(),
31     QualityControlSubject(DCM_QualityControlSubject),
32     ReferencedPatientSequence(),
33     PatientBirthTime(DCM_PatientBirthTime),
34     OtherPatientIDsSequence(),
35     OtherPatientNames(DCM_OtherPatientNames),
36     EthnicGroup(DCM_EthnicGroup),
37     PatientComments(DCM_PatientComments),
38     PatientSpeciesDescription(DCM_PatientSpeciesDescription),
39     PatientSpeciesCodeSequence(),
40     PatientBreedDescription(DCM_PatientBreedDescription),
41     PatientBreedCodeSequence(),
42     BreedRegistrationSequence(),
43     StrainDescription(DCM_StrainDescription),
44     StrainNomenclature(DCM_StrainNomenclature),
45     StrainCodeSequence(),
46     StrainAdditionalInformation(DCM_StrainAdditionalInformation),
47     StrainStockSequence(),
48     GeneticModificationsSequence(),
49     ResponsiblePerson(DCM_ResponsiblePerson),
50     ResponsiblePersonRole(DCM_ResponsiblePersonRole),
51     ResponsibleOrganization(DCM_ResponsibleOrganization),
52     PatientIdentityRemoved(DCM_PatientIdentityRemoved),
53     DeidentificationMethod(DCM_DeidentificationMethod),
54     DeidentificationMethodCodeSequence(),
55     SourcePatientGroupIdentificationSequence(),
56     GroupOfPatientsIdentificationSequence(),
57     ClinicalTrialSponsorName(DCM_ClinicalTrialSponsorName),
58     ClinicalTrialProtocolID(DCM_ClinicalTrialProtocolID),
59     ClinicalTrialProtocolName(DCM_ClinicalTrialProtocolName),
60     ClinicalTrialSiteID(DCM_ClinicalTrialSiteID),
61     ClinicalTrialSiteName(DCM_ClinicalTrialSiteName),
62     ClinicalTrialSubjectID(DCM_ClinicalTrialSubjectID),
63     ClinicalTrialSubjectReadingID(DCM_ClinicalTrialSubjectReadingID),
64     ClinicalTrialProtocolEthicsCommitteeName(DCM_ClinicalTrialProtocolEthicsCommitteeName),
65     ClinicalTrialProtocolEthicsCommitteeApprovalNumber(DCM_ClinicalTrialProtocolEthicsCommitteeApprovalNumber),
66     StudyInstanceUID(DCM_StudyInstanceUID),
67     StudyDate(DCM_StudyDate),
68     StudyTime(DCM_StudyTime),
69     ReferringPhysicianName(DCM_ReferringPhysicianName),
70     ReferringPhysicianIdentificationSequence(),
71     ConsultingPhysicianName(DCM_ConsultingPhysicianName),
72     ConsultingPhysicianIdentificationSequence(),
73     StudyID(DCM_StudyID),
74     AccessionNumber(DCM_AccessionNumber),
75     IssuerOfAccessionNumberSequence(),
76     StudyDescription(DCM_StudyDescription),
77     PhysiciansOfRecord(DCM_PhysiciansOfRecord),
78     PhysiciansOfRecordIdentificationSequence(),
79     NameOfPhysiciansReadingStudy(DCM_NameOfPhysiciansReadingStudy),
80     PhysiciansReadingStudyIdentificationSequence(),
81     RequestingServiceCodeSequence(),
82     ReferencedStudySequence(),
83     ProcedureCodeSequence(),
84     ReasonForPerformedProcedureCodeSequence(),
85     ClinicalTrialTimePointID(DCM_ClinicalTrialTimePointID),
86     ClinicalTrialTimePointDescription(DCM_ClinicalTrialTimePointDescription),
87     LongitudinalTemporalOffsetFromEvent(DCM_LongitudinalTemporalOffsetFromEvent),
88     LongitudinalTemporalEventType(DCM_LongitudinalTemporalEventType),
89     ConsentForClinicalTrialUseSequence(),
90     AdmittingDiagnosesDescription(DCM_AdmittingDiagnosesDescription),
91     AdmittingDiagnosesCodeSequence(),
92     PatientAge(DCM_PatientAge),
93     PatientSize(DCM_PatientSize),
94     PatientWeight(DCM_PatientWeight),
95     PatientBodyMassIndex(DCM_PatientBodyMassIndex),
96     MeasuredAPDimension(DCM_MeasuredAPDimension),
97     MeasuredLateralDimension(DCM_MeasuredLateralDimension),
98     PatientSizeCodeSequence(),
99     MedicalAlerts(DCM_MedicalAlerts),
100     Allergies(DCM_Allergies),
101     SmokingStatus(DCM_SmokingStatus),
102     PregnancyStatus(DCM_PregnancyStatus),
103     LastMenstrualDate(DCM_LastMenstrualDate),
104     PatientState(DCM_PatientState),
105     Occupation(DCM_Occupation),
106     AdditionalPatientHistory(DCM_AdditionalPatientHistory),
107     AdmissionID(DCM_AdmissionID),
108     IssuerOfAdmissionIDSequence(),
109     ServiceEpisodeID(DCM_ServiceEpisodeID),
110     IssuerOfServiceEpisodeIDSequence(),
111     ServiceEpisodeDescription(DCM_ServiceEpisodeDescription),
112     PatientSexNeutered(DCM_PatientSexNeutered),
113     Modality(DCM_Modality),
114     SeriesInstanceUID(DCM_SeriesInstanceUID),
115     SeriesNumber(DCM_SeriesNumber),
116     SeriesDate(DCM_SeriesDate),
117     SeriesTime(DCM_SeriesTime),
118     SeriesDescription(DCM_SeriesDescription),
119     SeriesDescriptionCodeSequence(),
120     OperatorsName(DCM_OperatorsName),
121     OperatorIdentificationSequence(),
122     ReferencedPerformedProcedureStepSequence(),
123     RequestAttributesSequence(),
124     PerformedProcedureStepID(DCM_PerformedProcedureStepID),
125     PerformedProcedureStepStartDate(DCM_PerformedProcedureStepStartDate),
126     PerformedProcedureStepStartTime(DCM_PerformedProcedureStepStartTime),
127     PerformedProcedureStepEndDate(DCM_PerformedProcedureStepEndDate),
128     PerformedProcedureStepEndTime(DCM_PerformedProcedureStepEndTime),
129     PerformedProcedureStepDescription(DCM_PerformedProcedureStepDescription),
130     PerformedProtocolCodeSequence(),
131     CommentsOnThePerformedProcedureStep(DCM_CommentsOnThePerformedProcedureStep),
132     ClinicalTrialCoordinatingCenterName(DCM_ClinicalTrialCoordinatingCenterName),
133     ClinicalTrialSeriesID(DCM_ClinicalTrialSeriesID),
134     ClinicalTrialSeriesDescription(DCM_ClinicalTrialSeriesDescription),
135     Manufacturer(DCM_Manufacturer),
136     InstitutionName(DCM_InstitutionName),
137     InstitutionAddress(DCM_InstitutionAddress),
138     StationName(DCM_StationName),
139     InstitutionalDepartmentName(DCM_InstitutionalDepartmentName),
140     ManufacturerModelName(DCM_ManufacturerModelName),
141     DeviceSerialNumber(DCM_DeviceSerialNumber),
142     SoftwareVersions(DCM_SoftwareVersions),
143     GantryID(DCM_GantryID),
144     UDISequence(),
145     SpatialResolution(DCM_SpatialResolution),
146     DateOfLastCalibration(DCM_DateOfLastCalibration),
147     TimeOfLastCalibration(DCM_TimeOfLastCalibration),
148     PixelPaddingValue(DCM_PixelPaddingValue),
149     InstanceNumber(DCM_InstanceNumber),
150     TreatmentDate(DCM_TreatmentDate),
151     TreatmentTime(DCM_TreatmentTime),
152     ReferencedRTPlanSequence(),
153     ReferencedTreatmentRecordSequence(),
154     PatientSetupSequence(),
155     TreatmentMachineSequence(),
156     MeasuredDoseReferenceSequence(),
157     CalculatedDoseReferenceSequence(),
158     ReferencedFractionGroupNumber(DCM_ReferencedFractionGroupNumber),
159     NumberOfFractionsPlanned(DCM_NumberOfFractionsPlanned),
160     PrimaryDosimeterUnit(DCM_PrimaryDosimeterUnit),
161     TreatmentSessionIonBeamSequence(),
162     CurrentTreatmentStatus(DCM_CurrentTreatmentStatus),
163     TreatmentStatusComment(DCM_TreatmentStatusComment),
164     FirstTreatmentDate(DCM_FirstTreatmentDate),
165     MostRecentTreatmentDate(DCM_MostRecentTreatmentDate),
166     FractionGroupSummarySequence(),
167     TreatmentSummaryMeasuredDoseReferenceSequence(),
168     TreatmentSummaryCalculatedDoseReferenceSequence(),
169     ReferencedImageSequence(),
170     ReferencedInstanceSequence(),
171     DerivationDescription(DCM_DerivationDescription),
172     DerivationCodeSequence(),
173     SourceImageSequence(),
174     SourceInstanceSequence(),
175     SOPClassUID(DCM_SOPClassUID),
176     SOPInstanceUID(DCM_SOPInstanceUID),
177     SpecificCharacterSet(DCM_SpecificCharacterSet),
178     InstanceCreationDate(DCM_InstanceCreationDate),
179     InstanceCreationTime(DCM_InstanceCreationTime),
180     InstanceCoercionDateTime(DCM_InstanceCoercionDateTime),
181     InstanceCreatorUID(DCM_InstanceCreatorUID),
182     RelatedGeneralSOPClassUID(DCM_RelatedGeneralSOPClassUID),
183     OriginalSpecializedSOPClassUID(DCM_OriginalSpecializedSOPClassUID),
184     CodingSchemeIdentificationSequence(),
185     ContextGroupIdentificationSequence(),
186     MappingResourceIdentificationSequence(),
187     TimezoneOffsetFromUTC(DCM_TimezoneOffsetFromUTC),
188     ContributingEquipmentSequence(),
189     SOPInstanceStatus(DCM_SOPInstanceStatus),
190     SOPAuthorizationDateTime(DCM_SOPAuthorizationDateTime),
191     SOPAuthorizationComment(DCM_SOPAuthorizationComment),
192     AuthorizationEquipmentCertificationNumber(DCM_AuthorizationEquipmentCertificationNumber),
193     MACParametersSequence(),
194     DigitalSignaturesSequence(),
195     EncryptedAttributesSequence(),
196     OriginalAttributesSequence(),
197     HL7StructuredDocumentReferenceSequence(),
198     LongitudinalTemporalInformationModified(DCM_LongitudinalTemporalInformationModified),
199     QueryRetrieveView(DCM_QueryRetrieveView),
200     ConversionSourceAttributesSequence(),
201     ContentQualification(DCM_ContentQualification),
202     PrivateDataElementCharacteristicsSequence(),
203     ReferencedSeriesSequence(),
204     StudiesContainingOtherReferencedInstancesSequence()
205 {
206     /* set initial values for a new SOP instance */
207     updateAttributes();
208 }
209 
210 
DRTIonBeamsTreatmentRecordIOD(const DRTIonBeamsTreatmentRecordIOD & copy)211 DRTIonBeamsTreatmentRecordIOD::DRTIonBeamsTreatmentRecordIOD(const DRTIonBeamsTreatmentRecordIOD &copy)
212   : PatientName(copy.PatientName),
213     PatientID(copy.PatientID),
214     IssuerOfPatientID(copy.IssuerOfPatientID),
215     IssuerOfPatientIDQualifiersSequence(copy.IssuerOfPatientIDQualifiersSequence),
216     PatientBirthDate(copy.PatientBirthDate),
217     PatientBirthDateInAlternativeCalendar(copy.PatientBirthDateInAlternativeCalendar),
218     PatientDeathDateInAlternativeCalendar(copy.PatientDeathDateInAlternativeCalendar),
219     PatientAlternativeCalendar(copy.PatientAlternativeCalendar),
220     PatientSex(copy.PatientSex),
221     ReferencedPatientPhotoSequence(copy.ReferencedPatientPhotoSequence),
222     QualityControlSubject(copy.QualityControlSubject),
223     ReferencedPatientSequence(copy.ReferencedPatientSequence),
224     PatientBirthTime(copy.PatientBirthTime),
225     OtherPatientIDsSequence(copy.OtherPatientIDsSequence),
226     OtherPatientNames(copy.OtherPatientNames),
227     EthnicGroup(copy.EthnicGroup),
228     PatientComments(copy.PatientComments),
229     PatientSpeciesDescription(copy.PatientSpeciesDescription),
230     PatientSpeciesCodeSequence(copy.PatientSpeciesCodeSequence),
231     PatientBreedDescription(copy.PatientBreedDescription),
232     PatientBreedCodeSequence(copy.PatientBreedCodeSequence),
233     BreedRegistrationSequence(copy.BreedRegistrationSequence),
234     StrainDescription(copy.StrainDescription),
235     StrainNomenclature(copy.StrainNomenclature),
236     StrainCodeSequence(copy.StrainCodeSequence),
237     StrainAdditionalInformation(copy.StrainAdditionalInformation),
238     StrainStockSequence(copy.StrainStockSequence),
239     GeneticModificationsSequence(copy.GeneticModificationsSequence),
240     ResponsiblePerson(copy.ResponsiblePerson),
241     ResponsiblePersonRole(copy.ResponsiblePersonRole),
242     ResponsibleOrganization(copy.ResponsibleOrganization),
243     PatientIdentityRemoved(copy.PatientIdentityRemoved),
244     DeidentificationMethod(copy.DeidentificationMethod),
245     DeidentificationMethodCodeSequence(copy.DeidentificationMethodCodeSequence),
246     SourcePatientGroupIdentificationSequence(copy.SourcePatientGroupIdentificationSequence),
247     GroupOfPatientsIdentificationSequence(copy.GroupOfPatientsIdentificationSequence),
248     ClinicalTrialSponsorName(copy.ClinicalTrialSponsorName),
249     ClinicalTrialProtocolID(copy.ClinicalTrialProtocolID),
250     ClinicalTrialProtocolName(copy.ClinicalTrialProtocolName),
251     ClinicalTrialSiteID(copy.ClinicalTrialSiteID),
252     ClinicalTrialSiteName(copy.ClinicalTrialSiteName),
253     ClinicalTrialSubjectID(copy.ClinicalTrialSubjectID),
254     ClinicalTrialSubjectReadingID(copy.ClinicalTrialSubjectReadingID),
255     ClinicalTrialProtocolEthicsCommitteeName(copy.ClinicalTrialProtocolEthicsCommitteeName),
256     ClinicalTrialProtocolEthicsCommitteeApprovalNumber(copy.ClinicalTrialProtocolEthicsCommitteeApprovalNumber),
257     StudyInstanceUID(copy.StudyInstanceUID),
258     StudyDate(copy.StudyDate),
259     StudyTime(copy.StudyTime),
260     ReferringPhysicianName(copy.ReferringPhysicianName),
261     ReferringPhysicianIdentificationSequence(copy.ReferringPhysicianIdentificationSequence),
262     ConsultingPhysicianName(copy.ConsultingPhysicianName),
263     ConsultingPhysicianIdentificationSequence(copy.ConsultingPhysicianIdentificationSequence),
264     StudyID(copy.StudyID),
265     AccessionNumber(copy.AccessionNumber),
266     IssuerOfAccessionNumberSequence(copy.IssuerOfAccessionNumberSequence),
267     StudyDescription(copy.StudyDescription),
268     PhysiciansOfRecord(copy.PhysiciansOfRecord),
269     PhysiciansOfRecordIdentificationSequence(copy.PhysiciansOfRecordIdentificationSequence),
270     NameOfPhysiciansReadingStudy(copy.NameOfPhysiciansReadingStudy),
271     PhysiciansReadingStudyIdentificationSequence(copy.PhysiciansReadingStudyIdentificationSequence),
272     RequestingServiceCodeSequence(copy.RequestingServiceCodeSequence),
273     ReferencedStudySequence(copy.ReferencedStudySequence),
274     ProcedureCodeSequence(copy.ProcedureCodeSequence),
275     ReasonForPerformedProcedureCodeSequence(copy.ReasonForPerformedProcedureCodeSequence),
276     ClinicalTrialTimePointID(copy.ClinicalTrialTimePointID),
277     ClinicalTrialTimePointDescription(copy.ClinicalTrialTimePointDescription),
278     LongitudinalTemporalOffsetFromEvent(copy.LongitudinalTemporalOffsetFromEvent),
279     LongitudinalTemporalEventType(copy.LongitudinalTemporalEventType),
280     ConsentForClinicalTrialUseSequence(copy.ConsentForClinicalTrialUseSequence),
281     AdmittingDiagnosesDescription(copy.AdmittingDiagnosesDescription),
282     AdmittingDiagnosesCodeSequence(copy.AdmittingDiagnosesCodeSequence),
283     PatientAge(copy.PatientAge),
284     PatientSize(copy.PatientSize),
285     PatientWeight(copy.PatientWeight),
286     PatientBodyMassIndex(copy.PatientBodyMassIndex),
287     MeasuredAPDimension(copy.MeasuredAPDimension),
288     MeasuredLateralDimension(copy.MeasuredLateralDimension),
289     PatientSizeCodeSequence(copy.PatientSizeCodeSequence),
290     MedicalAlerts(copy.MedicalAlerts),
291     Allergies(copy.Allergies),
292     SmokingStatus(copy.SmokingStatus),
293     PregnancyStatus(copy.PregnancyStatus),
294     LastMenstrualDate(copy.LastMenstrualDate),
295     PatientState(copy.PatientState),
296     Occupation(copy.Occupation),
297     AdditionalPatientHistory(copy.AdditionalPatientHistory),
298     AdmissionID(copy.AdmissionID),
299     IssuerOfAdmissionIDSequence(copy.IssuerOfAdmissionIDSequence),
300     ServiceEpisodeID(copy.ServiceEpisodeID),
301     IssuerOfServiceEpisodeIDSequence(copy.IssuerOfServiceEpisodeIDSequence),
302     ServiceEpisodeDescription(copy.ServiceEpisodeDescription),
303     PatientSexNeutered(copy.PatientSexNeutered),
304     Modality(copy.Modality),
305     SeriesInstanceUID(copy.SeriesInstanceUID),
306     SeriesNumber(copy.SeriesNumber),
307     SeriesDate(copy.SeriesDate),
308     SeriesTime(copy.SeriesTime),
309     SeriesDescription(copy.SeriesDescription),
310     SeriesDescriptionCodeSequence(copy.SeriesDescriptionCodeSequence),
311     OperatorsName(copy.OperatorsName),
312     OperatorIdentificationSequence(copy.OperatorIdentificationSequence),
313     ReferencedPerformedProcedureStepSequence(copy.ReferencedPerformedProcedureStepSequence),
314     RequestAttributesSequence(copy.RequestAttributesSequence),
315     PerformedProcedureStepID(copy.PerformedProcedureStepID),
316     PerformedProcedureStepStartDate(copy.PerformedProcedureStepStartDate),
317     PerformedProcedureStepStartTime(copy.PerformedProcedureStepStartTime),
318     PerformedProcedureStepEndDate(copy.PerformedProcedureStepEndDate),
319     PerformedProcedureStepEndTime(copy.PerformedProcedureStepEndTime),
320     PerformedProcedureStepDescription(copy.PerformedProcedureStepDescription),
321     PerformedProtocolCodeSequence(copy.PerformedProtocolCodeSequence),
322     CommentsOnThePerformedProcedureStep(copy.CommentsOnThePerformedProcedureStep),
323     ClinicalTrialCoordinatingCenterName(copy.ClinicalTrialCoordinatingCenterName),
324     ClinicalTrialSeriesID(copy.ClinicalTrialSeriesID),
325     ClinicalTrialSeriesDescription(copy.ClinicalTrialSeriesDescription),
326     Manufacturer(copy.Manufacturer),
327     InstitutionName(copy.InstitutionName),
328     InstitutionAddress(copy.InstitutionAddress),
329     StationName(copy.StationName),
330     InstitutionalDepartmentName(copy.InstitutionalDepartmentName),
331     ManufacturerModelName(copy.ManufacturerModelName),
332     DeviceSerialNumber(copy.DeviceSerialNumber),
333     SoftwareVersions(copy.SoftwareVersions),
334     GantryID(copy.GantryID),
335     UDISequence(copy.UDISequence),
336     SpatialResolution(copy.SpatialResolution),
337     DateOfLastCalibration(copy.DateOfLastCalibration),
338     TimeOfLastCalibration(copy.TimeOfLastCalibration),
339     PixelPaddingValue(copy.PixelPaddingValue),
340     InstanceNumber(copy.InstanceNumber),
341     TreatmentDate(copy.TreatmentDate),
342     TreatmentTime(copy.TreatmentTime),
343     ReferencedRTPlanSequence(copy.ReferencedRTPlanSequence),
344     ReferencedTreatmentRecordSequence(copy.ReferencedTreatmentRecordSequence),
345     PatientSetupSequence(copy.PatientSetupSequence),
346     TreatmentMachineSequence(copy.TreatmentMachineSequence),
347     MeasuredDoseReferenceSequence(copy.MeasuredDoseReferenceSequence),
348     CalculatedDoseReferenceSequence(copy.CalculatedDoseReferenceSequence),
349     ReferencedFractionGroupNumber(copy.ReferencedFractionGroupNumber),
350     NumberOfFractionsPlanned(copy.NumberOfFractionsPlanned),
351     PrimaryDosimeterUnit(copy.PrimaryDosimeterUnit),
352     TreatmentSessionIonBeamSequence(copy.TreatmentSessionIonBeamSequence),
353     CurrentTreatmentStatus(copy.CurrentTreatmentStatus),
354     TreatmentStatusComment(copy.TreatmentStatusComment),
355     FirstTreatmentDate(copy.FirstTreatmentDate),
356     MostRecentTreatmentDate(copy.MostRecentTreatmentDate),
357     FractionGroupSummarySequence(copy.FractionGroupSummarySequence),
358     TreatmentSummaryMeasuredDoseReferenceSequence(copy.TreatmentSummaryMeasuredDoseReferenceSequence),
359     TreatmentSummaryCalculatedDoseReferenceSequence(copy.TreatmentSummaryCalculatedDoseReferenceSequence),
360     ReferencedImageSequence(copy.ReferencedImageSequence),
361     ReferencedInstanceSequence(copy.ReferencedInstanceSequence),
362     DerivationDescription(copy.DerivationDescription),
363     DerivationCodeSequence(copy.DerivationCodeSequence),
364     SourceImageSequence(copy.SourceImageSequence),
365     SourceInstanceSequence(copy.SourceInstanceSequence),
366     SOPClassUID(copy.SOPClassUID),
367     SOPInstanceUID(copy.SOPInstanceUID),
368     SpecificCharacterSet(copy.SpecificCharacterSet),
369     InstanceCreationDate(copy.InstanceCreationDate),
370     InstanceCreationTime(copy.InstanceCreationTime),
371     InstanceCoercionDateTime(copy.InstanceCoercionDateTime),
372     InstanceCreatorUID(copy.InstanceCreatorUID),
373     RelatedGeneralSOPClassUID(copy.RelatedGeneralSOPClassUID),
374     OriginalSpecializedSOPClassUID(copy.OriginalSpecializedSOPClassUID),
375     CodingSchemeIdentificationSequence(copy.CodingSchemeIdentificationSequence),
376     ContextGroupIdentificationSequence(copy.ContextGroupIdentificationSequence),
377     MappingResourceIdentificationSequence(copy.MappingResourceIdentificationSequence),
378     TimezoneOffsetFromUTC(copy.TimezoneOffsetFromUTC),
379     ContributingEquipmentSequence(copy.ContributingEquipmentSequence),
380     SOPInstanceStatus(copy.SOPInstanceStatus),
381     SOPAuthorizationDateTime(copy.SOPAuthorizationDateTime),
382     SOPAuthorizationComment(copy.SOPAuthorizationComment),
383     AuthorizationEquipmentCertificationNumber(copy.AuthorizationEquipmentCertificationNumber),
384     MACParametersSequence(copy.MACParametersSequence),
385     DigitalSignaturesSequence(copy.DigitalSignaturesSequence),
386     EncryptedAttributesSequence(copy.EncryptedAttributesSequence),
387     OriginalAttributesSequence(copy.OriginalAttributesSequence),
388     HL7StructuredDocumentReferenceSequence(copy.HL7StructuredDocumentReferenceSequence),
389     LongitudinalTemporalInformationModified(copy.LongitudinalTemporalInformationModified),
390     QueryRetrieveView(copy.QueryRetrieveView),
391     ConversionSourceAttributesSequence(copy.ConversionSourceAttributesSequence),
392     ContentQualification(copy.ContentQualification),
393     PrivateDataElementCharacteristicsSequence(copy.PrivateDataElementCharacteristicsSequence),
394     ReferencedSeriesSequence(copy.ReferencedSeriesSequence),
395     StudiesContainingOtherReferencedInstancesSequence(copy.StudiesContainingOtherReferencedInstancesSequence)
396 {
397 }
398 
399 
~DRTIonBeamsTreatmentRecordIOD()400 DRTIonBeamsTreatmentRecordIOD::~DRTIonBeamsTreatmentRecordIOD()
401 {
402 }
403 
404 
operator =(const DRTIonBeamsTreatmentRecordIOD & copy)405 DRTIonBeamsTreatmentRecordIOD &DRTIonBeamsTreatmentRecordIOD::operator=(const DRTIonBeamsTreatmentRecordIOD &copy)
406 {
407     if (this != &copy)
408     {
409         PatientName = copy.PatientName;
410         PatientID = copy.PatientID;
411         IssuerOfPatientID = copy.IssuerOfPatientID;
412         IssuerOfPatientIDQualifiersSequence = copy.IssuerOfPatientIDQualifiersSequence;
413         PatientBirthDate = copy.PatientBirthDate;
414         PatientBirthDateInAlternativeCalendar = copy.PatientBirthDateInAlternativeCalendar;
415         PatientDeathDateInAlternativeCalendar = copy.PatientDeathDateInAlternativeCalendar;
416         PatientAlternativeCalendar = copy.PatientAlternativeCalendar;
417         PatientSex = copy.PatientSex;
418         ReferencedPatientPhotoSequence = copy.ReferencedPatientPhotoSequence;
419         QualityControlSubject = copy.QualityControlSubject;
420         ReferencedPatientSequence = copy.ReferencedPatientSequence;
421         PatientBirthTime = copy.PatientBirthTime;
422         OtherPatientIDsSequence = copy.OtherPatientIDsSequence;
423         OtherPatientNames = copy.OtherPatientNames;
424         EthnicGroup = copy.EthnicGroup;
425         PatientComments = copy.PatientComments;
426         PatientSpeciesDescription = copy.PatientSpeciesDescription;
427         PatientSpeciesCodeSequence = copy.PatientSpeciesCodeSequence;
428         PatientBreedDescription = copy.PatientBreedDescription;
429         PatientBreedCodeSequence = copy.PatientBreedCodeSequence;
430         BreedRegistrationSequence = copy.BreedRegistrationSequence;
431         StrainDescription = copy.StrainDescription;
432         StrainNomenclature = copy.StrainNomenclature;
433         StrainCodeSequence = copy.StrainCodeSequence;
434         StrainAdditionalInformation = copy.StrainAdditionalInformation;
435         StrainStockSequence = copy.StrainStockSequence;
436         GeneticModificationsSequence = copy.GeneticModificationsSequence;
437         ResponsiblePerson = copy.ResponsiblePerson;
438         ResponsiblePersonRole = copy.ResponsiblePersonRole;
439         ResponsibleOrganization = copy.ResponsibleOrganization;
440         PatientIdentityRemoved = copy.PatientIdentityRemoved;
441         DeidentificationMethod = copy.DeidentificationMethod;
442         DeidentificationMethodCodeSequence = copy.DeidentificationMethodCodeSequence;
443         SourcePatientGroupIdentificationSequence = copy.SourcePatientGroupIdentificationSequence;
444         GroupOfPatientsIdentificationSequence = copy.GroupOfPatientsIdentificationSequence;
445         ClinicalTrialSponsorName = copy.ClinicalTrialSponsorName;
446         ClinicalTrialProtocolID = copy.ClinicalTrialProtocolID;
447         ClinicalTrialProtocolName = copy.ClinicalTrialProtocolName;
448         ClinicalTrialSiteID = copy.ClinicalTrialSiteID;
449         ClinicalTrialSiteName = copy.ClinicalTrialSiteName;
450         ClinicalTrialSubjectID = copy.ClinicalTrialSubjectID;
451         ClinicalTrialSubjectReadingID = copy.ClinicalTrialSubjectReadingID;
452         ClinicalTrialProtocolEthicsCommitteeName = copy.ClinicalTrialProtocolEthicsCommitteeName;
453         ClinicalTrialProtocolEthicsCommitteeApprovalNumber = copy.ClinicalTrialProtocolEthicsCommitteeApprovalNumber;
454         StudyInstanceUID = copy.StudyInstanceUID;
455         StudyDate = copy.StudyDate;
456         StudyTime = copy.StudyTime;
457         ReferringPhysicianName = copy.ReferringPhysicianName;
458         ReferringPhysicianIdentificationSequence = copy.ReferringPhysicianIdentificationSequence;
459         ConsultingPhysicianName = copy.ConsultingPhysicianName;
460         ConsultingPhysicianIdentificationSequence = copy.ConsultingPhysicianIdentificationSequence;
461         StudyID = copy.StudyID;
462         AccessionNumber = copy.AccessionNumber;
463         IssuerOfAccessionNumberSequence = copy.IssuerOfAccessionNumberSequence;
464         StudyDescription = copy.StudyDescription;
465         PhysiciansOfRecord = copy.PhysiciansOfRecord;
466         PhysiciansOfRecordIdentificationSequence = copy.PhysiciansOfRecordIdentificationSequence;
467         NameOfPhysiciansReadingStudy = copy.NameOfPhysiciansReadingStudy;
468         PhysiciansReadingStudyIdentificationSequence = copy.PhysiciansReadingStudyIdentificationSequence;
469         RequestingServiceCodeSequence = copy.RequestingServiceCodeSequence;
470         ReferencedStudySequence = copy.ReferencedStudySequence;
471         ProcedureCodeSequence = copy.ProcedureCodeSequence;
472         ReasonForPerformedProcedureCodeSequence = copy.ReasonForPerformedProcedureCodeSequence;
473         ClinicalTrialTimePointID = copy.ClinicalTrialTimePointID;
474         ClinicalTrialTimePointDescription = copy.ClinicalTrialTimePointDescription;
475         LongitudinalTemporalOffsetFromEvent = copy.LongitudinalTemporalOffsetFromEvent;
476         LongitudinalTemporalEventType = copy.LongitudinalTemporalEventType;
477         ConsentForClinicalTrialUseSequence = copy.ConsentForClinicalTrialUseSequence;
478         AdmittingDiagnosesDescription = copy.AdmittingDiagnosesDescription;
479         AdmittingDiagnosesCodeSequence = copy.AdmittingDiagnosesCodeSequence;
480         PatientAge = copy.PatientAge;
481         PatientSize = copy.PatientSize;
482         PatientWeight = copy.PatientWeight;
483         PatientBodyMassIndex = copy.PatientBodyMassIndex;
484         MeasuredAPDimension = copy.MeasuredAPDimension;
485         MeasuredLateralDimension = copy.MeasuredLateralDimension;
486         PatientSizeCodeSequence = copy.PatientSizeCodeSequence;
487         MedicalAlerts = copy.MedicalAlerts;
488         Allergies = copy.Allergies;
489         SmokingStatus = copy.SmokingStatus;
490         PregnancyStatus = copy.PregnancyStatus;
491         LastMenstrualDate = copy.LastMenstrualDate;
492         PatientState = copy.PatientState;
493         Occupation = copy.Occupation;
494         AdditionalPatientHistory = copy.AdditionalPatientHistory;
495         AdmissionID = copy.AdmissionID;
496         IssuerOfAdmissionIDSequence = copy.IssuerOfAdmissionIDSequence;
497         ServiceEpisodeID = copy.ServiceEpisodeID;
498         IssuerOfServiceEpisodeIDSequence = copy.IssuerOfServiceEpisodeIDSequence;
499         ServiceEpisodeDescription = copy.ServiceEpisodeDescription;
500         PatientSexNeutered = copy.PatientSexNeutered;
501         Modality = copy.Modality;
502         SeriesInstanceUID = copy.SeriesInstanceUID;
503         SeriesNumber = copy.SeriesNumber;
504         SeriesDate = copy.SeriesDate;
505         SeriesTime = copy.SeriesTime;
506         SeriesDescription = copy.SeriesDescription;
507         SeriesDescriptionCodeSequence = copy.SeriesDescriptionCodeSequence;
508         OperatorsName = copy.OperatorsName;
509         OperatorIdentificationSequence = copy.OperatorIdentificationSequence;
510         ReferencedPerformedProcedureStepSequence = copy.ReferencedPerformedProcedureStepSequence;
511         RequestAttributesSequence = copy.RequestAttributesSequence;
512         PerformedProcedureStepID = copy.PerformedProcedureStepID;
513         PerformedProcedureStepStartDate = copy.PerformedProcedureStepStartDate;
514         PerformedProcedureStepStartTime = copy.PerformedProcedureStepStartTime;
515         PerformedProcedureStepEndDate = copy.PerformedProcedureStepEndDate;
516         PerformedProcedureStepEndTime = copy.PerformedProcedureStepEndTime;
517         PerformedProcedureStepDescription = copy.PerformedProcedureStepDescription;
518         PerformedProtocolCodeSequence = copy.PerformedProtocolCodeSequence;
519         CommentsOnThePerformedProcedureStep = copy.CommentsOnThePerformedProcedureStep;
520         ClinicalTrialCoordinatingCenterName = copy.ClinicalTrialCoordinatingCenterName;
521         ClinicalTrialSeriesID = copy.ClinicalTrialSeriesID;
522         ClinicalTrialSeriesDescription = copy.ClinicalTrialSeriesDescription;
523         Manufacturer = copy.Manufacturer;
524         InstitutionName = copy.InstitutionName;
525         InstitutionAddress = copy.InstitutionAddress;
526         StationName = copy.StationName;
527         InstitutionalDepartmentName = copy.InstitutionalDepartmentName;
528         ManufacturerModelName = copy.ManufacturerModelName;
529         DeviceSerialNumber = copy.DeviceSerialNumber;
530         SoftwareVersions = copy.SoftwareVersions;
531         GantryID = copy.GantryID;
532         UDISequence = copy.UDISequence;
533         SpatialResolution = copy.SpatialResolution;
534         DateOfLastCalibration = copy.DateOfLastCalibration;
535         TimeOfLastCalibration = copy.TimeOfLastCalibration;
536         PixelPaddingValue = copy.PixelPaddingValue;
537         InstanceNumber = copy.InstanceNumber;
538         TreatmentDate = copy.TreatmentDate;
539         TreatmentTime = copy.TreatmentTime;
540         ReferencedRTPlanSequence = copy.ReferencedRTPlanSequence;
541         ReferencedTreatmentRecordSequence = copy.ReferencedTreatmentRecordSequence;
542         PatientSetupSequence = copy.PatientSetupSequence;
543         TreatmentMachineSequence = copy.TreatmentMachineSequence;
544         MeasuredDoseReferenceSequence = copy.MeasuredDoseReferenceSequence;
545         CalculatedDoseReferenceSequence = copy.CalculatedDoseReferenceSequence;
546         ReferencedFractionGroupNumber = copy.ReferencedFractionGroupNumber;
547         NumberOfFractionsPlanned = copy.NumberOfFractionsPlanned;
548         PrimaryDosimeterUnit = copy.PrimaryDosimeterUnit;
549         TreatmentSessionIonBeamSequence = copy.TreatmentSessionIonBeamSequence;
550         CurrentTreatmentStatus = copy.CurrentTreatmentStatus;
551         TreatmentStatusComment = copy.TreatmentStatusComment;
552         FirstTreatmentDate = copy.FirstTreatmentDate;
553         MostRecentTreatmentDate = copy.MostRecentTreatmentDate;
554         FractionGroupSummarySequence = copy.FractionGroupSummarySequence;
555         TreatmentSummaryMeasuredDoseReferenceSequence = copy.TreatmentSummaryMeasuredDoseReferenceSequence;
556         TreatmentSummaryCalculatedDoseReferenceSequence = copy.TreatmentSummaryCalculatedDoseReferenceSequence;
557         ReferencedImageSequence = copy.ReferencedImageSequence;
558         ReferencedInstanceSequence = copy.ReferencedInstanceSequence;
559         DerivationDescription = copy.DerivationDescription;
560         DerivationCodeSequence = copy.DerivationCodeSequence;
561         SourceImageSequence = copy.SourceImageSequence;
562         SourceInstanceSequence = copy.SourceInstanceSequence;
563         SOPClassUID = copy.SOPClassUID;
564         SOPInstanceUID = copy.SOPInstanceUID;
565         SpecificCharacterSet = copy.SpecificCharacterSet;
566         InstanceCreationDate = copy.InstanceCreationDate;
567         InstanceCreationTime = copy.InstanceCreationTime;
568         InstanceCoercionDateTime = copy.InstanceCoercionDateTime;
569         InstanceCreatorUID = copy.InstanceCreatorUID;
570         RelatedGeneralSOPClassUID = copy.RelatedGeneralSOPClassUID;
571         OriginalSpecializedSOPClassUID = copy.OriginalSpecializedSOPClassUID;
572         CodingSchemeIdentificationSequence = copy.CodingSchemeIdentificationSequence;
573         ContextGroupIdentificationSequence = copy.ContextGroupIdentificationSequence;
574         MappingResourceIdentificationSequence = copy.MappingResourceIdentificationSequence;
575         TimezoneOffsetFromUTC = copy.TimezoneOffsetFromUTC;
576         ContributingEquipmentSequence = copy.ContributingEquipmentSequence;
577         SOPInstanceStatus = copy.SOPInstanceStatus;
578         SOPAuthorizationDateTime = copy.SOPAuthorizationDateTime;
579         SOPAuthorizationComment = copy.SOPAuthorizationComment;
580         AuthorizationEquipmentCertificationNumber = copy.AuthorizationEquipmentCertificationNumber;
581         MACParametersSequence = copy.MACParametersSequence;
582         DigitalSignaturesSequence = copy.DigitalSignaturesSequence;
583         EncryptedAttributesSequence = copy.EncryptedAttributesSequence;
584         OriginalAttributesSequence = copy.OriginalAttributesSequence;
585         HL7StructuredDocumentReferenceSequence = copy.HL7StructuredDocumentReferenceSequence;
586         LongitudinalTemporalInformationModified = copy.LongitudinalTemporalInformationModified;
587         QueryRetrieveView = copy.QueryRetrieveView;
588         ConversionSourceAttributesSequence = copy.ConversionSourceAttributesSequence;
589         ContentQualification = copy.ContentQualification;
590         PrivateDataElementCharacteristicsSequence = copy.PrivateDataElementCharacteristicsSequence;
591         ReferencedSeriesSequence = copy.ReferencedSeriesSequence;
592         StudiesContainingOtherReferencedInstancesSequence = copy.StudiesContainingOtherReferencedInstancesSequence;
593     }
594     return *this;
595 }
596 
597 
clear()598 void DRTIonBeamsTreatmentRecordIOD::clear()
599 {
600     /* clear all DICOM attributes */
601     PatientName.clear();
602     PatientID.clear();
603     IssuerOfPatientID.clear();
604     IssuerOfPatientIDQualifiersSequence.clear();
605     PatientBirthDate.clear();
606     PatientBirthDateInAlternativeCalendar.clear();
607     PatientDeathDateInAlternativeCalendar.clear();
608     PatientAlternativeCalendar.clear();
609     PatientSex.clear();
610     ReferencedPatientPhotoSequence.clear();
611     QualityControlSubject.clear();
612     ReferencedPatientSequence.clear();
613     PatientBirthTime.clear();
614     OtherPatientIDsSequence.clear();
615     OtherPatientNames.clear();
616     EthnicGroup.clear();
617     PatientComments.clear();
618     PatientSpeciesDescription.clear();
619     PatientSpeciesCodeSequence.clear();
620     PatientBreedDescription.clear();
621     PatientBreedCodeSequence.clear();
622     BreedRegistrationSequence.clear();
623     StrainDescription.clear();
624     StrainNomenclature.clear();
625     StrainCodeSequence.clear();
626     StrainAdditionalInformation.clear();
627     StrainStockSequence.clear();
628     GeneticModificationsSequence.clear();
629     ResponsiblePerson.clear();
630     ResponsiblePersonRole.clear();
631     ResponsibleOrganization.clear();
632     PatientIdentityRemoved.clear();
633     DeidentificationMethod.clear();
634     DeidentificationMethodCodeSequence.clear();
635     SourcePatientGroupIdentificationSequence.clear();
636     GroupOfPatientsIdentificationSequence.clear();
637     ClinicalTrialSponsorName.clear();
638     ClinicalTrialProtocolID.clear();
639     ClinicalTrialProtocolName.clear();
640     ClinicalTrialSiteID.clear();
641     ClinicalTrialSiteName.clear();
642     ClinicalTrialSubjectID.clear();
643     ClinicalTrialSubjectReadingID.clear();
644     ClinicalTrialProtocolEthicsCommitteeName.clear();
645     ClinicalTrialProtocolEthicsCommitteeApprovalNumber.clear();
646     StudyInstanceUID.clear();
647     StudyDate.clear();
648     StudyTime.clear();
649     ReferringPhysicianName.clear();
650     ReferringPhysicianIdentificationSequence.clear();
651     ConsultingPhysicianName.clear();
652     ConsultingPhysicianIdentificationSequence.clear();
653     StudyID.clear();
654     AccessionNumber.clear();
655     IssuerOfAccessionNumberSequence.clear();
656     StudyDescription.clear();
657     PhysiciansOfRecord.clear();
658     PhysiciansOfRecordIdentificationSequence.clear();
659     NameOfPhysiciansReadingStudy.clear();
660     PhysiciansReadingStudyIdentificationSequence.clear();
661     RequestingServiceCodeSequence.clear();
662     ReferencedStudySequence.clear();
663     ProcedureCodeSequence.clear();
664     ReasonForPerformedProcedureCodeSequence.clear();
665     ClinicalTrialTimePointID.clear();
666     ClinicalTrialTimePointDescription.clear();
667     LongitudinalTemporalOffsetFromEvent.clear();
668     LongitudinalTemporalEventType.clear();
669     ConsentForClinicalTrialUseSequence.clear();
670     AdmittingDiagnosesDescription.clear();
671     AdmittingDiagnosesCodeSequence.clear();
672     PatientAge.clear();
673     PatientSize.clear();
674     PatientWeight.clear();
675     PatientBodyMassIndex.clear();
676     MeasuredAPDimension.clear();
677     MeasuredLateralDimension.clear();
678     PatientSizeCodeSequence.clear();
679     MedicalAlerts.clear();
680     Allergies.clear();
681     SmokingStatus.clear();
682     PregnancyStatus.clear();
683     LastMenstrualDate.clear();
684     PatientState.clear();
685     Occupation.clear();
686     AdditionalPatientHistory.clear();
687     AdmissionID.clear();
688     IssuerOfAdmissionIDSequence.clear();
689     ServiceEpisodeID.clear();
690     IssuerOfServiceEpisodeIDSequence.clear();
691     ServiceEpisodeDescription.clear();
692     PatientSexNeutered.clear();
693     Modality.clear();
694     SeriesInstanceUID.clear();
695     SeriesNumber.clear();
696     SeriesDate.clear();
697     SeriesTime.clear();
698     SeriesDescription.clear();
699     SeriesDescriptionCodeSequence.clear();
700     OperatorsName.clear();
701     OperatorIdentificationSequence.clear();
702     ReferencedPerformedProcedureStepSequence.clear();
703     RequestAttributesSequence.clear();
704     PerformedProcedureStepID.clear();
705     PerformedProcedureStepStartDate.clear();
706     PerformedProcedureStepStartTime.clear();
707     PerformedProcedureStepEndDate.clear();
708     PerformedProcedureStepEndTime.clear();
709     PerformedProcedureStepDescription.clear();
710     PerformedProtocolCodeSequence.clear();
711     CommentsOnThePerformedProcedureStep.clear();
712     ClinicalTrialCoordinatingCenterName.clear();
713     ClinicalTrialSeriesID.clear();
714     ClinicalTrialSeriesDescription.clear();
715     Manufacturer.clear();
716     InstitutionName.clear();
717     InstitutionAddress.clear();
718     StationName.clear();
719     InstitutionalDepartmentName.clear();
720     ManufacturerModelName.clear();
721     DeviceSerialNumber.clear();
722     SoftwareVersions.clear();
723     GantryID.clear();
724     UDISequence.clear();
725     SpatialResolution.clear();
726     DateOfLastCalibration.clear();
727     TimeOfLastCalibration.clear();
728     PixelPaddingValue.clear();
729     InstanceNumber.clear();
730     TreatmentDate.clear();
731     TreatmentTime.clear();
732     ReferencedRTPlanSequence.clear();
733     ReferencedTreatmentRecordSequence.clear();
734     PatientSetupSequence.clear();
735     TreatmentMachineSequence.clear();
736     MeasuredDoseReferenceSequence.clear();
737     CalculatedDoseReferenceSequence.clear();
738     ReferencedFractionGroupNumber.clear();
739     NumberOfFractionsPlanned.clear();
740     PrimaryDosimeterUnit.clear();
741     TreatmentSessionIonBeamSequence.clear();
742     CurrentTreatmentStatus.clear();
743     TreatmentStatusComment.clear();
744     FirstTreatmentDate.clear();
745     MostRecentTreatmentDate.clear();
746     FractionGroupSummarySequence.clear();
747     TreatmentSummaryMeasuredDoseReferenceSequence.clear();
748     TreatmentSummaryCalculatedDoseReferenceSequence.clear();
749     ReferencedImageSequence.clear();
750     ReferencedInstanceSequence.clear();
751     DerivationDescription.clear();
752     DerivationCodeSequence.clear();
753     SourceImageSequence.clear();
754     SourceInstanceSequence.clear();
755     SOPClassUID.clear();
756     SOPInstanceUID.clear();
757     SpecificCharacterSet.clear();
758     InstanceCreationDate.clear();
759     InstanceCreationTime.clear();
760     InstanceCoercionDateTime.clear();
761     InstanceCreatorUID.clear();
762     RelatedGeneralSOPClassUID.clear();
763     OriginalSpecializedSOPClassUID.clear();
764     CodingSchemeIdentificationSequence.clear();
765     ContextGroupIdentificationSequence.clear();
766     MappingResourceIdentificationSequence.clear();
767     TimezoneOffsetFromUTC.clear();
768     ContributingEquipmentSequence.clear();
769     SOPInstanceStatus.clear();
770     SOPAuthorizationDateTime.clear();
771     SOPAuthorizationComment.clear();
772     AuthorizationEquipmentCertificationNumber.clear();
773     MACParametersSequence.clear();
774     DigitalSignaturesSequence.clear();
775     EncryptedAttributesSequence.clear();
776     OriginalAttributesSequence.clear();
777     HL7StructuredDocumentReferenceSequence.clear();
778     LongitudinalTemporalInformationModified.clear();
779     QueryRetrieveView.clear();
780     ConversionSourceAttributesSequence.clear();
781     ContentQualification.clear();
782     PrivateDataElementCharacteristicsSequence.clear();
783     ReferencedSeriesSequence.clear();
784     StudiesContainingOtherReferencedInstancesSequence.clear();
785 }
786 
787 
isValid()788 OFBool DRTIonBeamsTreatmentRecordIOD::isValid()
789 {
790     /* tbd: check whether object is valid */
791     return OFTrue;
792 }
793 
794 
checkDatasetForReading(DcmItem & dataset)795 OFCondition DRTIonBeamsTreatmentRecordIOD::checkDatasetForReading(DcmItem &dataset)
796 {
797     OFCondition result = EC_Normal;
798     /* check SOP class UID */
799     DcmUniqueIdentifier sopClassUID(DCM_SOPClassUID);
800     result = getAndCheckElementFromDataset(dataset, sopClassUID, "1", "1", "SOPCommonModule");
801     if (result.good())
802     {
803         OFString tmpString;
804         getStringValueFromElement(sopClassUID, tmpString);
805         if (tmpString != UID_RTIonBeamsTreatmentRecordStorage)
806         {
807             DCMRT_ERROR("Invalid value for attribute SOPClassUID (0008,0016)");
808             result = RT_EC_InvalidValue;
809         }
810     }
811     return result;
812 }
813 
814 
updateAttributes()815 void DRTIonBeamsTreatmentRecordIOD::updateAttributes()
816 {
817     SOPClassUID.putString(UID_RTIonBeamsTreatmentRecordStorage);
818 }
819 
820 
read(DcmItem & dataset)821 OFCondition DRTIonBeamsTreatmentRecordIOD::read(DcmItem &dataset)
822 {
823     /* re-initialize object */
824     clear();
825     /* check SOP class UID first */
826     OFCondition result = checkDatasetForReading(dataset);
827     /* read data from PatientIE, StudyIE, SeriesIE */
828     if (result.good())
829         result = readSeriesData(dataset);
830     if (result.good())
831     {
832         // --- GeneralEquipmentModule (M) ---
833         getAndCheckElementFromDataset(dataset, Manufacturer, "1", "2", "GeneralEquipmentModule");
834         getAndCheckElementFromDataset(dataset, InstitutionName, "1", "3", "GeneralEquipmentModule");
835         getAndCheckElementFromDataset(dataset, InstitutionAddress, "1", "3", "GeneralEquipmentModule");
836         getAndCheckElementFromDataset(dataset, StationName, "1", "3", "GeneralEquipmentModule");
837         getAndCheckElementFromDataset(dataset, InstitutionalDepartmentName, "1", "3", "GeneralEquipmentModule");
838         getAndCheckElementFromDataset(dataset, ManufacturerModelName, "1", "3", "GeneralEquipmentModule");
839         getAndCheckElementFromDataset(dataset, DeviceSerialNumber, "1", "3", "GeneralEquipmentModule");
840         getAndCheckElementFromDataset(dataset, SoftwareVersions, "1-n", "3", "GeneralEquipmentModule");
841         getAndCheckElementFromDataset(dataset, GantryID, "1", "3", "GeneralEquipmentModule");
842         UDISequence.read(dataset, "1-n", "3", "GeneralEquipmentModule");
843         getAndCheckElementFromDataset(dataset, SpatialResolution, "1", "3", "GeneralEquipmentModule");
844         getAndCheckElementFromDataset(dataset, DateOfLastCalibration, "1-n", "3", "GeneralEquipmentModule");
845         getAndCheckElementFromDataset(dataset, TimeOfLastCalibration, "1-n", "3", "GeneralEquipmentModule");
846         getAndCheckElementFromDataset(dataset, PixelPaddingValue, "1", "1C", "GeneralEquipmentModule");
847 
848         // --- RTGeneralTreatmentRecordModule (M) ---
849         getAndCheckElementFromDataset(dataset, InstanceNumber, "1", "1", "RTGeneralTreatmentRecordModule");
850         getAndCheckElementFromDataset(dataset, TreatmentDate, "1", "2", "RTGeneralTreatmentRecordModule");
851         getAndCheckElementFromDataset(dataset, TreatmentTime, "1", "2", "RTGeneralTreatmentRecordModule");
852         ReferencedRTPlanSequence.read(dataset, "1-n", "2", "RTGeneralTreatmentRecordModule");
853         ReferencedTreatmentRecordSequence.read(dataset, "1-n", "3", "RTGeneralTreatmentRecordModule");
854 
855         // --- RTPatientSetupModule (U) ---
856         if (dataset.tagExists(DCM_PatientSetupSequence))
857         {
858             PatientSetupSequence.read(dataset, "1-n", "1", "RTPatientSetupModule");
859         }
860 
861         // --- RTTreatmentMachineRecordModule (M) ---
862         TreatmentMachineSequence.read(dataset, "1-n", "1", "RTTreatmentMachineRecordModule");
863 
864         // --- MeasuredDoseReferenceRecordModule (U) ---
865         if (dataset.tagExists(DCM_MeasuredDoseReferenceSequence))
866         {
867             MeasuredDoseReferenceSequence.read(dataset, "1-n", "1", "MeasuredDoseReferenceRecordModule");
868         }
869 
870         // --- CalculatedDoseReferenceRecordModule (U) ---
871         if (dataset.tagExists(DCM_CalculatedDoseReferenceSequence))
872         {
873             CalculatedDoseReferenceSequence.read(dataset, "1-n", "1", "CalculatedDoseReferenceRecordModule");
874         }
875 
876         // --- RTIonBeamsSessionRecordModule (M) ---
877         getAndCheckElementFromDataset(dataset, ReferencedFractionGroupNumber, "1", "3", "RTIonBeamsSessionRecordModule");
878         getAndCheckElementFromDataset(dataset, NumberOfFractionsPlanned, "1", "2", "RTIonBeamsSessionRecordModule");
879         getAndCheckElementFromDataset(dataset, PrimaryDosimeterUnit, "1", "1", "RTIonBeamsSessionRecordModule");
880         TreatmentSessionIonBeamSequence.read(dataset, "1-n", "1", "RTIonBeamsSessionRecordModule");
881 
882         // --- RTTreatmentSummaryRecordModule (U) ---
883         if (dataset.tagExists(DCM_CurrentTreatmentStatus) ||
884             dataset.tagExists(DCM_FirstTreatmentDate) ||
885             dataset.tagExists(DCM_MostRecentTreatmentDate))
886         {
887             getAndCheckElementFromDataset(dataset, CurrentTreatmentStatus, "1", "1", "RTTreatmentSummaryRecordModule");
888             getAndCheckElementFromDataset(dataset, TreatmentStatusComment, "1", "3", "RTTreatmentSummaryRecordModule");
889             getAndCheckElementFromDataset(dataset, FirstTreatmentDate, "1", "2", "RTTreatmentSummaryRecordModule");
890             getAndCheckElementFromDataset(dataset, MostRecentTreatmentDate, "1", "2", "RTTreatmentSummaryRecordModule");
891             FractionGroupSummarySequence.read(dataset, "1-n", "3", "RTTreatmentSummaryRecordModule");
892             TreatmentSummaryMeasuredDoseReferenceSequence.read(dataset, "1-n", "3", "RTTreatmentSummaryRecordModule");
893             TreatmentSummaryCalculatedDoseReferenceSequence.read(dataset, "1-n", "3", "RTTreatmentSummaryRecordModule");
894         }
895 
896         // --- GeneralReferenceModule (U) ---
897         ReferencedImageSequence.read(dataset, "1-n", "3", "GeneralReferenceModule");
898         ReferencedInstanceSequence.read(dataset, "1-n", "3", "GeneralReferenceModule");
899         getAndCheckElementFromDataset(dataset, DerivationDescription, "1", "3", "GeneralReferenceModule");
900         DerivationCodeSequence.read(dataset, "1-n", "3", "GeneralReferenceModule");
901         SourceImageSequence.read(dataset, "1-n", "3", "GeneralReferenceModule");
902         SourceInstanceSequence.read(dataset, "1-n", "3", "GeneralReferenceModule");
903 
904         // --- SOPCommonModule (M) ---
905         getAndCheckElementFromDataset(dataset, SOPClassUID, "1", "1", "SOPCommonModule");
906         getAndCheckElementFromDataset(dataset, SOPInstanceUID, "1", "1", "SOPCommonModule");
907         getAndCheckElementFromDataset(dataset, SpecificCharacterSet, "1-n", "1C", "SOPCommonModule");
908         getAndCheckElementFromDataset(dataset, InstanceCreationDate, "1", "3", "SOPCommonModule");
909         getAndCheckElementFromDataset(dataset, InstanceCreationTime, "1", "3", "SOPCommonModule");
910         getAndCheckElementFromDataset(dataset, InstanceCoercionDateTime, "1", "3", "SOPCommonModule");
911         getAndCheckElementFromDataset(dataset, InstanceCreatorUID, "1", "3", "SOPCommonModule");
912         getAndCheckElementFromDataset(dataset, RelatedGeneralSOPClassUID, "1-n", "3", "SOPCommonModule");
913         getAndCheckElementFromDataset(dataset, OriginalSpecializedSOPClassUID, "1", "3", "SOPCommonModule");
914         CodingSchemeIdentificationSequence.read(dataset, "1-n", "3", "SOPCommonModule");
915         ContextGroupIdentificationSequence.read(dataset, "1-n", "3", "SOPCommonModule");
916         MappingResourceIdentificationSequence.read(dataset, "1-n", "3", "SOPCommonModule");
917         getAndCheckElementFromDataset(dataset, TimezoneOffsetFromUTC, "1", "3", "SOPCommonModule");
918         ContributingEquipmentSequence.read(dataset, "1-n", "3", "SOPCommonModule");
919         // getAndCheckElementFromDataset(dataset, InstanceNumber, "1", "3", "SOPCommonModule");
920         getAndCheckElementFromDataset(dataset, SOPInstanceStatus, "1", "3", "SOPCommonModule");
921         getAndCheckElementFromDataset(dataset, SOPAuthorizationDateTime, "1", "3", "SOPCommonModule");
922         getAndCheckElementFromDataset(dataset, SOPAuthorizationComment, "1", "3", "SOPCommonModule");
923         getAndCheckElementFromDataset(dataset, AuthorizationEquipmentCertificationNumber, "1", "3", "SOPCommonModule");
924         MACParametersSequence.read(dataset, "1-n", "3", "SOPCommonModule");
925         DigitalSignaturesSequence.read(dataset, "1-n", "3", "SOPCommonModule");
926         EncryptedAttributesSequence.read(dataset, "1-n", "1C", "SOPCommonModule");
927         OriginalAttributesSequence.read(dataset, "1-n", "3", "SOPCommonModule");
928         HL7StructuredDocumentReferenceSequence.read(dataset, "1-n", "1C", "SOPCommonModule");
929         getAndCheckElementFromDataset(dataset, LongitudinalTemporalInformationModified, "1", "3", "SOPCommonModule");
930         getAndCheckElementFromDataset(dataset, QueryRetrieveView, "1", "1C", "SOPCommonModule");
931         ConversionSourceAttributesSequence.read(dataset, "1-n", "1C", "SOPCommonModule");
932         getAndCheckElementFromDataset(dataset, ContentQualification, "1", "3", "SOPCommonModule");
933         PrivateDataElementCharacteristicsSequence.read(dataset, "1-n", "3", "SOPCommonModule");
934 
935         // --- CommonInstanceReferenceModule (U) ---
936         ReferencedSeriesSequence.read(dataset, "1-n", "1C", "CommonInstanceReferenceModule");
937         StudiesContainingOtherReferencedInstancesSequence.read(dataset, "1-n", "1C", "CommonInstanceReferenceModule");
938     }
939     return result;
940 }
941 
942 
readPatientData(DcmItem & dataset)943 OFCondition DRTIonBeamsTreatmentRecordIOD::readPatientData(DcmItem &dataset)
944 {
945     OFCondition result = EC_Normal;
946 
947     // --- PatientModule (M) ---
948     getAndCheckElementFromDataset(dataset, PatientName, "1", "2", "PatientModule");
949     getAndCheckElementFromDataset(dataset, PatientID, "1", "2", "PatientModule");
950     getAndCheckElementFromDataset(dataset, IssuerOfPatientID, "1", "3", "PatientModule");
951     IssuerOfPatientIDQualifiersSequence.read(dataset, "1-n", "3", "PatientModule");
952     getAndCheckElementFromDataset(dataset, PatientBirthDate, "1", "2", "PatientModule");
953     getAndCheckElementFromDataset(dataset, PatientBirthDateInAlternativeCalendar, "1", "3", "PatientModule");
954     getAndCheckElementFromDataset(dataset, PatientDeathDateInAlternativeCalendar, "1", "3", "PatientModule");
955     getAndCheckElementFromDataset(dataset, PatientAlternativeCalendar, "1", "1C", "PatientModule");
956     getAndCheckElementFromDataset(dataset, PatientSex, "1", "2", "PatientModule");
957     ReferencedPatientPhotoSequence.read(dataset, "1-n", "3", "PatientModule");
958     getAndCheckElementFromDataset(dataset, QualityControlSubject, "1", "3", "PatientModule");
959     ReferencedPatientSequence.read(dataset, "1-n", "3", "PatientModule");
960     getAndCheckElementFromDataset(dataset, PatientBirthTime, "1", "3", "PatientModule");
961     OtherPatientIDsSequence.read(dataset, "1-n", "3", "PatientModule");
962     getAndCheckElementFromDataset(dataset, OtherPatientNames, "1-n", "3", "PatientModule");
963     getAndCheckElementFromDataset(dataset, EthnicGroup, "1", "3", "PatientModule");
964     getAndCheckElementFromDataset(dataset, PatientComments, "1", "3", "PatientModule");
965     getAndCheckElementFromDataset(dataset, PatientSpeciesDescription, "1", "1C", "PatientModule");
966     PatientSpeciesCodeSequence.read(dataset, "1-n", "1C", "PatientModule");
967     getAndCheckElementFromDataset(dataset, PatientBreedDescription, "1", "2C", "PatientModule");
968     PatientBreedCodeSequence.read(dataset, "1-n", "2C", "PatientModule");
969     BreedRegistrationSequence.read(dataset, "1-n", "2C", "PatientModule");
970     getAndCheckElementFromDataset(dataset, StrainDescription, "1", "3", "PatientModule");
971     getAndCheckElementFromDataset(dataset, StrainNomenclature, "1", "3", "PatientModule");
972     StrainCodeSequence.read(dataset, "1-n", "3", "PatientModule");
973     getAndCheckElementFromDataset(dataset, StrainAdditionalInformation, "1", "3", "PatientModule");
974     StrainStockSequence.read(dataset, "1-n", "3", "PatientModule");
975     GeneticModificationsSequence.read(dataset, "1-n", "3", "PatientModule");
976     getAndCheckElementFromDataset(dataset, ResponsiblePerson, "1", "2C", "PatientModule");
977     getAndCheckElementFromDataset(dataset, ResponsiblePersonRole, "1", "1C", "PatientModule");
978     getAndCheckElementFromDataset(dataset, ResponsibleOrganization, "1", "2C", "PatientModule");
979     getAndCheckElementFromDataset(dataset, PatientIdentityRemoved, "1", "3", "PatientModule");
980     getAndCheckElementFromDataset(dataset, DeidentificationMethod, "1-n", "1C", "PatientModule");
981     DeidentificationMethodCodeSequence.read(dataset, "1-n", "1C", "PatientModule");
982     SourcePatientGroupIdentificationSequence.read(dataset, "1-n", "3", "PatientModule");
983     GroupOfPatientsIdentificationSequence.read(dataset, "1-n", "3", "PatientModule");
984 
985     // --- ClinicalTrialSubjectModule (U) ---
986     if (dataset.tagExists(DCM_ClinicalTrialSponsorName) ||
987         dataset.tagExists(DCM_ClinicalTrialProtocolID) ||
988         dataset.tagExists(DCM_ClinicalTrialProtocolName) ||
989         dataset.tagExists(DCM_ClinicalTrialSiteID) ||
990         dataset.tagExists(DCM_ClinicalTrialSiteName))
991     {
992         getAndCheckElementFromDataset(dataset, ClinicalTrialSponsorName, "1", "1", "ClinicalTrialSubjectModule");
993         getAndCheckElementFromDataset(dataset, ClinicalTrialProtocolID, "1", "1", "ClinicalTrialSubjectModule");
994         getAndCheckElementFromDataset(dataset, ClinicalTrialProtocolName, "1", "2", "ClinicalTrialSubjectModule");
995         getAndCheckElementFromDataset(dataset, ClinicalTrialSiteID, "1", "2", "ClinicalTrialSubjectModule");
996         getAndCheckElementFromDataset(dataset, ClinicalTrialSiteName, "1", "2", "ClinicalTrialSubjectModule");
997         getAndCheckElementFromDataset(dataset, ClinicalTrialSubjectID, "1", "1C", "ClinicalTrialSubjectModule");
998         getAndCheckElementFromDataset(dataset, ClinicalTrialSubjectReadingID, "1", "1C", "ClinicalTrialSubjectModule");
999         getAndCheckElementFromDataset(dataset, ClinicalTrialProtocolEthicsCommitteeName, "1", "1C", "ClinicalTrialSubjectModule");
1000         getAndCheckElementFromDataset(dataset, ClinicalTrialProtocolEthicsCommitteeApprovalNumber, "1", "3", "ClinicalTrialSubjectModule");
1001     }
1002     return result;
1003 }
1004 
1005 
readStudyData(DcmItem & dataset)1006 OFCondition DRTIonBeamsTreatmentRecordIOD::readStudyData(DcmItem &dataset)
1007 {
1008     /* read data from PatientIE */
1009     OFCondition result = readPatientData(dataset);
1010     if (result.good())
1011     {
1012         // --- GeneralStudyModule (M) ---
1013         getAndCheckElementFromDataset(dataset, StudyInstanceUID, "1", "1", "GeneralStudyModule");
1014         getAndCheckElementFromDataset(dataset, StudyDate, "1", "2", "GeneralStudyModule");
1015         getAndCheckElementFromDataset(dataset, StudyTime, "1", "2", "GeneralStudyModule");
1016         getAndCheckElementFromDataset(dataset, ReferringPhysicianName, "1", "2", "GeneralStudyModule");
1017         ReferringPhysicianIdentificationSequence.read(dataset, "1-n", "3", "GeneralStudyModule");
1018         getAndCheckElementFromDataset(dataset, ConsultingPhysicianName, "1-n", "3", "GeneralStudyModule");
1019         ConsultingPhysicianIdentificationSequence.read(dataset, "1-n", "3", "GeneralStudyModule");
1020         getAndCheckElementFromDataset(dataset, StudyID, "1", "2", "GeneralStudyModule");
1021         getAndCheckElementFromDataset(dataset, AccessionNumber, "1", "2", "GeneralStudyModule");
1022         IssuerOfAccessionNumberSequence.read(dataset, "1-n", "3", "GeneralStudyModule");
1023         getAndCheckElementFromDataset(dataset, StudyDescription, "1", "3", "GeneralStudyModule");
1024         getAndCheckElementFromDataset(dataset, PhysiciansOfRecord, "1-n", "3", "GeneralStudyModule");
1025         PhysiciansOfRecordIdentificationSequence.read(dataset, "1-n", "3", "GeneralStudyModule");
1026         getAndCheckElementFromDataset(dataset, NameOfPhysiciansReadingStudy, "1-n", "3", "GeneralStudyModule");
1027         PhysiciansReadingStudyIdentificationSequence.read(dataset, "1-n", "3", "GeneralStudyModule");
1028         RequestingServiceCodeSequence.read(dataset, "1-n", "3", "GeneralStudyModule");
1029         ReferencedStudySequence.read(dataset, "1-n", "3", "GeneralStudyModule");
1030         ProcedureCodeSequence.read(dataset, "1-n", "3", "GeneralStudyModule");
1031         ReasonForPerformedProcedureCodeSequence.read(dataset, "1-n", "3", "GeneralStudyModule");
1032 
1033         // --- ClinicalTrialStudyModule (U) ---
1034         if (dataset.tagExists(DCM_ClinicalTrialTimePointID))
1035         {
1036             getAndCheckElementFromDataset(dataset, ClinicalTrialTimePointID, "1", "2", "ClinicalTrialStudyModule");
1037             getAndCheckElementFromDataset(dataset, ClinicalTrialTimePointDescription, "1", "3", "ClinicalTrialStudyModule");
1038             getAndCheckElementFromDataset(dataset, LongitudinalTemporalOffsetFromEvent, "1", "3", "ClinicalTrialStudyModule");
1039             getAndCheckElementFromDataset(dataset, LongitudinalTemporalEventType, "1", "1C", "ClinicalTrialStudyModule");
1040             ConsentForClinicalTrialUseSequence.read(dataset, "1-n", "3", "ClinicalTrialStudyModule");
1041         }
1042 
1043         // --- PatientStudyModule (U) ---
1044         getAndCheckElementFromDataset(dataset, AdmittingDiagnosesDescription, "1-n", "3", "PatientStudyModule");
1045         AdmittingDiagnosesCodeSequence.read(dataset, "1-n", "3", "PatientStudyModule");
1046         getAndCheckElementFromDataset(dataset, PatientAge, "1", "3", "PatientStudyModule");
1047         getAndCheckElementFromDataset(dataset, PatientSize, "1", "3", "PatientStudyModule");
1048         getAndCheckElementFromDataset(dataset, PatientWeight, "1", "3", "PatientStudyModule");
1049         getAndCheckElementFromDataset(dataset, PatientBodyMassIndex, "1", "3", "PatientStudyModule");
1050         getAndCheckElementFromDataset(dataset, MeasuredAPDimension, "1", "3", "PatientStudyModule");
1051         getAndCheckElementFromDataset(dataset, MeasuredLateralDimension, "1", "3", "PatientStudyModule");
1052         PatientSizeCodeSequence.read(dataset, "1-n", "3", "PatientStudyModule");
1053         getAndCheckElementFromDataset(dataset, MedicalAlerts, "1-n", "3", "PatientStudyModule");
1054         getAndCheckElementFromDataset(dataset, Allergies, "1-n", "3", "PatientStudyModule");
1055         getAndCheckElementFromDataset(dataset, SmokingStatus, "1", "3", "PatientStudyModule");
1056         getAndCheckElementFromDataset(dataset, PregnancyStatus, "1", "3", "PatientStudyModule");
1057         getAndCheckElementFromDataset(dataset, LastMenstrualDate, "1", "3", "PatientStudyModule");
1058         getAndCheckElementFromDataset(dataset, PatientState, "1", "3", "PatientStudyModule");
1059         getAndCheckElementFromDataset(dataset, Occupation, "1", "3", "PatientStudyModule");
1060         getAndCheckElementFromDataset(dataset, AdditionalPatientHistory, "1", "3", "PatientStudyModule");
1061         getAndCheckElementFromDataset(dataset, AdmissionID, "1", "3", "PatientStudyModule");
1062         IssuerOfAdmissionIDSequence.read(dataset, "1-n", "3", "PatientStudyModule");
1063         getAndCheckElementFromDataset(dataset, ServiceEpisodeID, "1", "3", "PatientStudyModule");
1064         IssuerOfServiceEpisodeIDSequence.read(dataset, "1-n", "3", "PatientStudyModule");
1065         getAndCheckElementFromDataset(dataset, ServiceEpisodeDescription, "1", "3", "PatientStudyModule");
1066         getAndCheckElementFromDataset(dataset, PatientSexNeutered, "1", "2C", "PatientStudyModule");
1067     }
1068     return result;
1069 }
1070 
1071 
readSeriesData(DcmItem & dataset)1072 OFCondition DRTIonBeamsTreatmentRecordIOD::readSeriesData(DcmItem &dataset)
1073 {
1074     /* read data from PatientIE, StudyIE */
1075     OFCondition result = readStudyData(dataset);
1076     if (result.good())
1077     {
1078         // --- RTSeriesModule (M) ---
1079         getAndCheckElementFromDataset(dataset, Modality, "1", "1", "RTSeriesModule");
1080         getAndCheckElementFromDataset(dataset, SeriesInstanceUID, "1", "1", "RTSeriesModule");
1081         getAndCheckElementFromDataset(dataset, SeriesNumber, "1", "2", "RTSeriesModule");
1082         getAndCheckElementFromDataset(dataset, SeriesDate, "1", "3", "RTSeriesModule");
1083         getAndCheckElementFromDataset(dataset, SeriesTime, "1", "3", "RTSeriesModule");
1084         getAndCheckElementFromDataset(dataset, SeriesDescription, "1", "3", "RTSeriesModule");
1085         SeriesDescriptionCodeSequence.read(dataset, "1-n", "3", "RTSeriesModule");
1086         getAndCheckElementFromDataset(dataset, OperatorsName, "1-n", "2", "RTSeriesModule");
1087         OperatorIdentificationSequence.read(dataset, "1-n", "3", "RTSeriesModule");
1088         ReferencedPerformedProcedureStepSequence.read(dataset, "1-n", "3", "RTSeriesModule");
1089         RequestAttributesSequence.read(dataset, "1-n", "3", "RTSeriesModule");
1090         getAndCheckElementFromDataset(dataset, PerformedProcedureStepID, "1", "3", "RTSeriesModule");
1091         getAndCheckElementFromDataset(dataset, PerformedProcedureStepStartDate, "1", "3", "RTSeriesModule");
1092         getAndCheckElementFromDataset(dataset, PerformedProcedureStepStartTime, "1", "3", "RTSeriesModule");
1093         getAndCheckElementFromDataset(dataset, PerformedProcedureStepEndDate, "1", "3", "RTSeriesModule");
1094         getAndCheckElementFromDataset(dataset, PerformedProcedureStepEndTime, "1", "3", "RTSeriesModule");
1095         getAndCheckElementFromDataset(dataset, PerformedProcedureStepDescription, "1", "3", "RTSeriesModule");
1096         PerformedProtocolCodeSequence.read(dataset, "1-n", "3", "RTSeriesModule");
1097         getAndCheckElementFromDataset(dataset, CommentsOnThePerformedProcedureStep, "1", "3", "RTSeriesModule");
1098 
1099         // --- ClinicalTrialSeriesModule (U) ---
1100         if (dataset.tagExists(DCM_ClinicalTrialCoordinatingCenterName))
1101         {
1102             getAndCheckElementFromDataset(dataset, ClinicalTrialCoordinatingCenterName, "1", "2", "ClinicalTrialSeriesModule");
1103             getAndCheckElementFromDataset(dataset, ClinicalTrialSeriesID, "1", "3", "ClinicalTrialSeriesModule");
1104             getAndCheckElementFromDataset(dataset, ClinicalTrialSeriesDescription, "1", "3", "ClinicalTrialSeriesModule");
1105         }
1106     }
1107     return result;
1108 }
1109 
1110 
write(DcmItem & dataset)1111 OFCondition DRTIonBeamsTreatmentRecordIOD::write(DcmItem &dataset)
1112 {
1113     OFCondition result = EC_Normal;
1114     /* only write valid objects */
1115     if (isValid())
1116     {
1117         /* update various DICOM attributes */
1118         updateAttributes();
1119 
1120         // --- PatientModule (M) ---
1121         addElementToDataset(result, dataset, new DcmPersonName(PatientName), "1", "2", "PatientModule");
1122         addElementToDataset(result, dataset, new DcmLongString(PatientID), "1", "2", "PatientModule");
1123         addElementToDataset(result, dataset, new DcmLongString(IssuerOfPatientID), "1", "3", "PatientModule");
1124         if (result.good()) result = IssuerOfPatientIDQualifiersSequence.write(dataset, "1-n" ,"3", "PatientModule");
1125         addElementToDataset(result, dataset, new DcmDate(PatientBirthDate), "1", "2", "PatientModule");
1126         addElementToDataset(result, dataset, new DcmLongString(PatientBirthDateInAlternativeCalendar), "1", "3", "PatientModule");
1127         addElementToDataset(result, dataset, new DcmLongString(PatientDeathDateInAlternativeCalendar), "1", "3", "PatientModule");
1128         addElementToDataset(result, dataset, new DcmCodeString(PatientAlternativeCalendar), "1", "1C", "PatientModule");
1129         addElementToDataset(result, dataset, new DcmCodeString(PatientSex), "1", "2", "PatientModule");
1130         if (result.good()) result = ReferencedPatientPhotoSequence.write(dataset, "1-n" ,"3", "PatientModule");
1131         addElementToDataset(result, dataset, new DcmCodeString(QualityControlSubject), "1", "3", "PatientModule");
1132         if (result.good()) result = ReferencedPatientSequence.write(dataset, "1-n" ,"3", "PatientModule");
1133         addElementToDataset(result, dataset, new DcmTime(PatientBirthTime), "1", "3", "PatientModule");
1134         if (result.good()) result = OtherPatientIDsSequence.write(dataset, "1-n" ,"3", "PatientModule");
1135         addElementToDataset(result, dataset, new DcmPersonName(OtherPatientNames), "1-n", "3", "PatientModule");
1136         addElementToDataset(result, dataset, new DcmShortString(EthnicGroup), "1", "3", "PatientModule");
1137         addElementToDataset(result, dataset, new DcmLongText(PatientComments), "1", "3", "PatientModule");
1138         addElementToDataset(result, dataset, new DcmLongString(PatientSpeciesDescription), "1", "1C", "PatientModule");
1139         if (result.good()) result = PatientSpeciesCodeSequence.write(dataset, "1-n" ,"1C", "PatientModule");
1140         addElementToDataset(result, dataset, new DcmLongString(PatientBreedDescription), "1", "2C", "PatientModule");
1141         if (result.good()) result = PatientBreedCodeSequence.write(dataset, "1-n" ,"2C", "PatientModule");
1142         if (result.good()) result = BreedRegistrationSequence.write(dataset, "1-n" ,"2C", "PatientModule");
1143         addElementToDataset(result, dataset, new DcmUnlimitedCharacters(StrainDescription), "1", "3", "PatientModule");
1144         addElementToDataset(result, dataset, new DcmLongString(StrainNomenclature), "1", "3", "PatientModule");
1145         if (result.good()) result = StrainCodeSequence.write(dataset, "1-n" ,"3", "PatientModule");
1146         addElementToDataset(result, dataset, new DcmUnlimitedText(StrainAdditionalInformation), "1", "3", "PatientModule");
1147         if (result.good()) result = StrainStockSequence.write(dataset, "1-n" ,"3", "PatientModule");
1148         if (result.good()) result = GeneticModificationsSequence.write(dataset, "1-n" ,"3", "PatientModule");
1149         addElementToDataset(result, dataset, new DcmPersonName(ResponsiblePerson), "1", "2C", "PatientModule");
1150         addElementToDataset(result, dataset, new DcmCodeString(ResponsiblePersonRole), "1", "1C", "PatientModule");
1151         addElementToDataset(result, dataset, new DcmLongString(ResponsibleOrganization), "1", "2C", "PatientModule");
1152         addElementToDataset(result, dataset, new DcmCodeString(PatientIdentityRemoved), "1", "3", "PatientModule");
1153         addElementToDataset(result, dataset, new DcmLongString(DeidentificationMethod), "1-n", "1C", "PatientModule");
1154         if (result.good()) result = DeidentificationMethodCodeSequence.write(dataset, "1-n" ,"1C", "PatientModule");
1155         if (result.good()) result = SourcePatientGroupIdentificationSequence.write(dataset, "1-n" ,"3", "PatientModule");
1156         if (result.good()) result = GroupOfPatientsIdentificationSequence.write(dataset, "1-n" ,"3", "PatientModule");
1157 
1158         // --- ClinicalTrialSubjectModule (U) ---
1159         if (isClinicalTrialSubjectModulePresent(OFFalse /*complete*/))
1160         {
1161             addElementToDataset(result, dataset, new DcmLongString(ClinicalTrialSponsorName), "1", "1", "ClinicalTrialSubjectModule");
1162             addElementToDataset(result, dataset, new DcmLongString(ClinicalTrialProtocolID), "1", "1", "ClinicalTrialSubjectModule");
1163             addElementToDataset(result, dataset, new DcmLongString(ClinicalTrialProtocolName), "1", "2", "ClinicalTrialSubjectModule");
1164             addElementToDataset(result, dataset, new DcmLongString(ClinicalTrialSiteID), "1", "2", "ClinicalTrialSubjectModule");
1165             addElementToDataset(result, dataset, new DcmLongString(ClinicalTrialSiteName), "1", "2", "ClinicalTrialSubjectModule");
1166             addElementToDataset(result, dataset, new DcmLongString(ClinicalTrialSubjectID), "1", "1C", "ClinicalTrialSubjectModule");
1167             addElementToDataset(result, dataset, new DcmLongString(ClinicalTrialSubjectReadingID), "1", "1C", "ClinicalTrialSubjectModule");
1168             addElementToDataset(result, dataset, new DcmLongString(ClinicalTrialProtocolEthicsCommitteeName), "1", "1C", "ClinicalTrialSubjectModule");
1169             addElementToDataset(result, dataset, new DcmLongString(ClinicalTrialProtocolEthicsCommitteeApprovalNumber), "1", "3", "ClinicalTrialSubjectModule");
1170         }
1171 
1172         // --- GeneralStudyModule (M) ---
1173         addElementToDataset(result, dataset, new DcmUniqueIdentifier(StudyInstanceUID), "1", "1", "GeneralStudyModule");
1174         addElementToDataset(result, dataset, new DcmDate(StudyDate), "1", "2", "GeneralStudyModule");
1175         addElementToDataset(result, dataset, new DcmTime(StudyTime), "1", "2", "GeneralStudyModule");
1176         addElementToDataset(result, dataset, new DcmPersonName(ReferringPhysicianName), "1", "2", "GeneralStudyModule");
1177         if (result.good()) result = ReferringPhysicianIdentificationSequence.write(dataset, "1-n" ,"3", "GeneralStudyModule");
1178         addElementToDataset(result, dataset, new DcmPersonName(ConsultingPhysicianName), "1-n", "3", "GeneralStudyModule");
1179         if (result.good()) result = ConsultingPhysicianIdentificationSequence.write(dataset, "1-n" ,"3", "GeneralStudyModule");
1180         addElementToDataset(result, dataset, new DcmShortString(StudyID), "1", "2", "GeneralStudyModule");
1181         addElementToDataset(result, dataset, new DcmShortString(AccessionNumber), "1", "2", "GeneralStudyModule");
1182         if (result.good()) result = IssuerOfAccessionNumberSequence.write(dataset, "1-n" ,"3", "GeneralStudyModule");
1183         addElementToDataset(result, dataset, new DcmLongString(StudyDescription), "1", "3", "GeneralStudyModule");
1184         addElementToDataset(result, dataset, new DcmPersonName(PhysiciansOfRecord), "1-n", "3", "GeneralStudyModule");
1185         if (result.good()) result = PhysiciansOfRecordIdentificationSequence.write(dataset, "1-n" ,"3", "GeneralStudyModule");
1186         addElementToDataset(result, dataset, new DcmPersonName(NameOfPhysiciansReadingStudy), "1-n", "3", "GeneralStudyModule");
1187         if (result.good()) result = PhysiciansReadingStudyIdentificationSequence.write(dataset, "1-n" ,"3", "GeneralStudyModule");
1188         if (result.good()) result = RequestingServiceCodeSequence.write(dataset, "1-n" ,"3", "GeneralStudyModule");
1189         if (result.good()) result = ReferencedStudySequence.write(dataset, "1-n" ,"3", "GeneralStudyModule");
1190         if (result.good()) result = ProcedureCodeSequence.write(dataset, "1-n" ,"3", "GeneralStudyModule");
1191         if (result.good()) result = ReasonForPerformedProcedureCodeSequence.write(dataset, "1-n" ,"3", "GeneralStudyModule");
1192 
1193         // --- ClinicalTrialStudyModule (U) ---
1194         if (isClinicalTrialStudyModulePresent(OFFalse /*complete*/))
1195         {
1196             addElementToDataset(result, dataset, new DcmLongString(ClinicalTrialTimePointID), "1", "2", "ClinicalTrialStudyModule");
1197             addElementToDataset(result, dataset, new DcmShortText(ClinicalTrialTimePointDescription), "1", "3", "ClinicalTrialStudyModule");
1198             addElementToDataset(result, dataset, new DcmFloatingPointDouble(LongitudinalTemporalOffsetFromEvent), "1", "3", "ClinicalTrialStudyModule");
1199             addElementToDataset(result, dataset, new DcmCodeString(LongitudinalTemporalEventType), "1", "1C", "ClinicalTrialStudyModule");
1200             if (result.good()) result = ConsentForClinicalTrialUseSequence.write(dataset, "1-n" ,"3", "ClinicalTrialStudyModule");
1201         }
1202 
1203         // --- PatientStudyModule (U) ---
1204         if (isPatientStudyModulePresent(OFFalse /*complete*/))
1205         {
1206             addElementToDataset(result, dataset, new DcmLongString(AdmittingDiagnosesDescription), "1-n", "3", "PatientStudyModule");
1207             if (result.good()) result = AdmittingDiagnosesCodeSequence.write(dataset, "1-n" ,"3", "PatientStudyModule");
1208             addElementToDataset(result, dataset, new DcmAgeString(PatientAge), "1", "3", "PatientStudyModule");
1209             addElementToDataset(result, dataset, new DcmDecimalString(PatientSize), "1", "3", "PatientStudyModule");
1210             addElementToDataset(result, dataset, new DcmDecimalString(PatientWeight), "1", "3", "PatientStudyModule");
1211             addElementToDataset(result, dataset, new DcmDecimalString(PatientBodyMassIndex), "1", "3", "PatientStudyModule");
1212             addElementToDataset(result, dataset, new DcmDecimalString(MeasuredAPDimension), "1", "3", "PatientStudyModule");
1213             addElementToDataset(result, dataset, new DcmDecimalString(MeasuredLateralDimension), "1", "3", "PatientStudyModule");
1214             if (result.good()) result = PatientSizeCodeSequence.write(dataset, "1-n" ,"3", "PatientStudyModule");
1215             addElementToDataset(result, dataset, new DcmLongString(MedicalAlerts), "1-n", "3", "PatientStudyModule");
1216             addElementToDataset(result, dataset, new DcmLongString(Allergies), "1-n", "3", "PatientStudyModule");
1217             addElementToDataset(result, dataset, new DcmCodeString(SmokingStatus), "1", "3", "PatientStudyModule");
1218             addElementToDataset(result, dataset, new DcmUnsignedShort(PregnancyStatus), "1", "3", "PatientStudyModule");
1219             addElementToDataset(result, dataset, new DcmDate(LastMenstrualDate), "1", "3", "PatientStudyModule");
1220             addElementToDataset(result, dataset, new DcmLongString(PatientState), "1", "3", "PatientStudyModule");
1221             addElementToDataset(result, dataset, new DcmShortString(Occupation), "1", "3", "PatientStudyModule");
1222             addElementToDataset(result, dataset, new DcmLongText(AdditionalPatientHistory), "1", "3", "PatientStudyModule");
1223             addElementToDataset(result, dataset, new DcmLongString(AdmissionID), "1", "3", "PatientStudyModule");
1224             if (result.good()) result = IssuerOfAdmissionIDSequence.write(dataset, "1-n" ,"3", "PatientStudyModule");
1225             addElementToDataset(result, dataset, new DcmLongString(ServiceEpisodeID), "1", "3", "PatientStudyModule");
1226             if (result.good()) result = IssuerOfServiceEpisodeIDSequence.write(dataset, "1-n" ,"3", "PatientStudyModule");
1227             addElementToDataset(result, dataset, new DcmLongString(ServiceEpisodeDescription), "1", "3", "PatientStudyModule");
1228             addElementToDataset(result, dataset, new DcmCodeString(PatientSexNeutered), "1", "2C", "PatientStudyModule");
1229         }
1230 
1231         // --- RTSeriesModule (M) ---
1232         addElementToDataset(result, dataset, new DcmCodeString(Modality), "1", "1", "RTSeriesModule");
1233         addElementToDataset(result, dataset, new DcmUniqueIdentifier(SeriesInstanceUID), "1", "1", "RTSeriesModule");
1234         addElementToDataset(result, dataset, new DcmIntegerString(SeriesNumber), "1", "2", "RTSeriesModule");
1235         addElementToDataset(result, dataset, new DcmDate(SeriesDate), "1", "3", "RTSeriesModule");
1236         addElementToDataset(result, dataset, new DcmTime(SeriesTime), "1", "3", "RTSeriesModule");
1237         addElementToDataset(result, dataset, new DcmLongString(SeriesDescription), "1", "3", "RTSeriesModule");
1238         if (result.good()) result = SeriesDescriptionCodeSequence.write(dataset, "1-n" ,"3", "RTSeriesModule");
1239         addElementToDataset(result, dataset, new DcmPersonName(OperatorsName), "1-n", "2", "RTSeriesModule");
1240         if (result.good()) result = OperatorIdentificationSequence.write(dataset, "1-n" ,"3", "RTSeriesModule");
1241         if (result.good()) result = ReferencedPerformedProcedureStepSequence.write(dataset, "1-n" ,"3", "RTSeriesModule");
1242         if (result.good()) result = RequestAttributesSequence.write(dataset, "1-n" ,"3", "RTSeriesModule");
1243         addElementToDataset(result, dataset, new DcmShortString(PerformedProcedureStepID), "1", "3", "RTSeriesModule");
1244         addElementToDataset(result, dataset, new DcmDate(PerformedProcedureStepStartDate), "1", "3", "RTSeriesModule");
1245         addElementToDataset(result, dataset, new DcmTime(PerformedProcedureStepStartTime), "1", "3", "RTSeriesModule");
1246         addElementToDataset(result, dataset, new DcmDate(PerformedProcedureStepEndDate), "1", "3", "RTSeriesModule");
1247         addElementToDataset(result, dataset, new DcmTime(PerformedProcedureStepEndTime), "1", "3", "RTSeriesModule");
1248         addElementToDataset(result, dataset, new DcmLongString(PerformedProcedureStepDescription), "1", "3", "RTSeriesModule");
1249         if (result.good()) result = PerformedProtocolCodeSequence.write(dataset, "1-n" ,"3", "RTSeriesModule");
1250         addElementToDataset(result, dataset, new DcmShortText(CommentsOnThePerformedProcedureStep), "1", "3", "RTSeriesModule");
1251 
1252         // --- ClinicalTrialSeriesModule (U) ---
1253         if (isClinicalTrialSeriesModulePresent(OFFalse /*complete*/))
1254         {
1255             addElementToDataset(result, dataset, new DcmLongString(ClinicalTrialCoordinatingCenterName), "1", "2", "ClinicalTrialSeriesModule");
1256             addElementToDataset(result, dataset, new DcmLongString(ClinicalTrialSeriesID), "1", "3", "ClinicalTrialSeriesModule");
1257             addElementToDataset(result, dataset, new DcmLongString(ClinicalTrialSeriesDescription), "1", "3", "ClinicalTrialSeriesModule");
1258         }
1259 
1260         // --- GeneralEquipmentModule (M) ---
1261         addElementToDataset(result, dataset, new DcmLongString(Manufacturer), "1", "2", "GeneralEquipmentModule");
1262         addElementToDataset(result, dataset, new DcmLongString(InstitutionName), "1", "3", "GeneralEquipmentModule");
1263         addElementToDataset(result, dataset, new DcmShortText(InstitutionAddress), "1", "3", "GeneralEquipmentModule");
1264         addElementToDataset(result, dataset, new DcmShortString(StationName), "1", "3", "GeneralEquipmentModule");
1265         addElementToDataset(result, dataset, new DcmLongString(InstitutionalDepartmentName), "1", "3", "GeneralEquipmentModule");
1266         addElementToDataset(result, dataset, new DcmLongString(ManufacturerModelName), "1", "3", "GeneralEquipmentModule");
1267         addElementToDataset(result, dataset, new DcmLongString(DeviceSerialNumber), "1", "3", "GeneralEquipmentModule");
1268         addElementToDataset(result, dataset, new DcmLongString(SoftwareVersions), "1-n", "3", "GeneralEquipmentModule");
1269         addElementToDataset(result, dataset, new DcmLongString(GantryID), "1", "3", "GeneralEquipmentModule");
1270         if (result.good()) result = UDISequence.write(dataset, "1-n" ,"3", "GeneralEquipmentModule");
1271         addElementToDataset(result, dataset, new DcmDecimalString(SpatialResolution), "1", "3", "GeneralEquipmentModule");
1272         addElementToDataset(result, dataset, new DcmDate(DateOfLastCalibration), "1-n", "3", "GeneralEquipmentModule");
1273         addElementToDataset(result, dataset, new DcmTime(TimeOfLastCalibration), "1-n", "3", "GeneralEquipmentModule");
1274         addElementToDataset(result, dataset, new DcmUnsignedShort(PixelPaddingValue), "1", "1C", "GeneralEquipmentModule");
1275 
1276         // --- RTGeneralTreatmentRecordModule (M) ---
1277         addElementToDataset(result, dataset, new DcmIntegerString(InstanceNumber), "1", "1", "RTGeneralTreatmentRecordModule");
1278         addElementToDataset(result, dataset, new DcmDate(TreatmentDate), "1", "2", "RTGeneralTreatmentRecordModule");
1279         addElementToDataset(result, dataset, new DcmTime(TreatmentTime), "1", "2", "RTGeneralTreatmentRecordModule");
1280         if (result.good()) result = ReferencedRTPlanSequence.write(dataset, "1-n" ,"2", "RTGeneralTreatmentRecordModule");
1281         if (result.good()) result = ReferencedTreatmentRecordSequence.write(dataset, "1-n" ,"3", "RTGeneralTreatmentRecordModule");
1282 
1283         // --- RTPatientSetupModule (U) ---
1284         if (isRTPatientSetupModulePresent(OFFalse /*complete*/))
1285         {
1286             if (result.good()) result = PatientSetupSequence.write(dataset, "1-n" ,"1", "RTPatientSetupModule");
1287         }
1288 
1289         // --- RTTreatmentMachineRecordModule (M) ---
1290         if (result.good()) result = TreatmentMachineSequence.write(dataset, "1-n" ,"1", "RTTreatmentMachineRecordModule");
1291 
1292         // --- MeasuredDoseReferenceRecordModule (U) ---
1293         if (isMeasuredDoseReferenceRecordModulePresent(OFFalse /*complete*/))
1294         {
1295             if (result.good()) result = MeasuredDoseReferenceSequence.write(dataset, "1-n" ,"1", "MeasuredDoseReferenceRecordModule");
1296         }
1297 
1298         // --- CalculatedDoseReferenceRecordModule (U) ---
1299         if (isCalculatedDoseReferenceRecordModulePresent(OFFalse /*complete*/))
1300         {
1301             if (result.good()) result = CalculatedDoseReferenceSequence.write(dataset, "1-n" ,"1", "CalculatedDoseReferenceRecordModule");
1302         }
1303 
1304         // --- RTIonBeamsSessionRecordModule (M) ---
1305         addElementToDataset(result, dataset, new DcmIntegerString(ReferencedFractionGroupNumber), "1", "3", "RTIonBeamsSessionRecordModule");
1306         addElementToDataset(result, dataset, new DcmIntegerString(NumberOfFractionsPlanned), "1", "2", "RTIonBeamsSessionRecordModule");
1307         addElementToDataset(result, dataset, new DcmCodeString(PrimaryDosimeterUnit), "1", "1", "RTIonBeamsSessionRecordModule");
1308         if (result.good()) result = TreatmentSessionIonBeamSequence.write(dataset, "1-n" ,"1", "RTIonBeamsSessionRecordModule");
1309 
1310         // --- RTTreatmentSummaryRecordModule (U) ---
1311         if (isRTTreatmentSummaryRecordModulePresent(OFFalse /*complete*/))
1312         {
1313             addElementToDataset(result, dataset, new DcmCodeString(CurrentTreatmentStatus), "1", "1", "RTTreatmentSummaryRecordModule");
1314             addElementToDataset(result, dataset, new DcmShortText(TreatmentStatusComment), "1", "3", "RTTreatmentSummaryRecordModule");
1315             addElementToDataset(result, dataset, new DcmDate(FirstTreatmentDate), "1", "2", "RTTreatmentSummaryRecordModule");
1316             addElementToDataset(result, dataset, new DcmDate(MostRecentTreatmentDate), "1", "2", "RTTreatmentSummaryRecordModule");
1317             if (result.good()) result = FractionGroupSummarySequence.write(dataset, "1-n" ,"3", "RTTreatmentSummaryRecordModule");
1318             if (result.good()) result = TreatmentSummaryMeasuredDoseReferenceSequence.write(dataset, "1-n" ,"3", "RTTreatmentSummaryRecordModule");
1319             if (result.good()) result = TreatmentSummaryCalculatedDoseReferenceSequence.write(dataset, "1-n" ,"3", "RTTreatmentSummaryRecordModule");
1320         }
1321 
1322         // --- GeneralReferenceModule (U) ---
1323         if (isGeneralReferenceModulePresent(OFFalse /*complete*/))
1324         {
1325             if (result.good()) result = ReferencedImageSequence.write(dataset, "1-n" ,"3", "GeneralReferenceModule");
1326             if (result.good()) result = ReferencedInstanceSequence.write(dataset, "1-n" ,"3", "GeneralReferenceModule");
1327             addElementToDataset(result, dataset, new DcmShortText(DerivationDescription), "1", "3", "GeneralReferenceModule");
1328             if (result.good()) result = DerivationCodeSequence.write(dataset, "1-n" ,"3", "GeneralReferenceModule");
1329             if (result.good()) result = SourceImageSequence.write(dataset, "1-n" ,"3", "GeneralReferenceModule");
1330             if (result.good()) result = SourceInstanceSequence.write(dataset, "1-n" ,"3", "GeneralReferenceModule");
1331         }
1332 
1333         // --- SOPCommonModule (M) ---
1334         addElementToDataset(result, dataset, new DcmUniqueIdentifier(SOPClassUID), "1", "1", "SOPCommonModule");
1335         addElementToDataset(result, dataset, new DcmUniqueIdentifier(SOPInstanceUID), "1", "1", "SOPCommonModule");
1336         addElementToDataset(result, dataset, new DcmCodeString(SpecificCharacterSet), "1-n", "1C", "SOPCommonModule");
1337         addElementToDataset(result, dataset, new DcmDate(InstanceCreationDate), "1", "3", "SOPCommonModule");
1338         addElementToDataset(result, dataset, new DcmTime(InstanceCreationTime), "1", "3", "SOPCommonModule");
1339         addElementToDataset(result, dataset, new DcmDateTime(InstanceCoercionDateTime), "1", "3", "SOPCommonModule");
1340         addElementToDataset(result, dataset, new DcmUniqueIdentifier(InstanceCreatorUID), "1", "3", "SOPCommonModule");
1341         addElementToDataset(result, dataset, new DcmUniqueIdentifier(RelatedGeneralSOPClassUID), "1-n", "3", "SOPCommonModule");
1342         addElementToDataset(result, dataset, new DcmUniqueIdentifier(OriginalSpecializedSOPClassUID), "1", "3", "SOPCommonModule");
1343         if (result.good()) result = CodingSchemeIdentificationSequence.write(dataset, "1-n" ,"3", "SOPCommonModule");
1344         if (result.good()) result = ContextGroupIdentificationSequence.write(dataset, "1-n" ,"3", "SOPCommonModule");
1345         if (result.good()) result = MappingResourceIdentificationSequence.write(dataset, "1-n" ,"3", "SOPCommonModule");
1346         addElementToDataset(result, dataset, new DcmShortString(TimezoneOffsetFromUTC), "1", "3", "SOPCommonModule");
1347         if (result.good()) result = ContributingEquipmentSequence.write(dataset, "1-n" ,"3", "SOPCommonModule");
1348         // addElementToDataset(result, dataset, new DcmIntegerString(InstanceNumber), "1", "3", "SOPCommonModule");
1349         addElementToDataset(result, dataset, new DcmCodeString(SOPInstanceStatus), "1", "3", "SOPCommonModule");
1350         addElementToDataset(result, dataset, new DcmDateTime(SOPAuthorizationDateTime), "1", "3", "SOPCommonModule");
1351         addElementToDataset(result, dataset, new DcmLongText(SOPAuthorizationComment), "1", "3", "SOPCommonModule");
1352         addElementToDataset(result, dataset, new DcmLongString(AuthorizationEquipmentCertificationNumber), "1", "3", "SOPCommonModule");
1353         if (result.good()) result = MACParametersSequence.write(dataset, "1-n" ,"3", "SOPCommonModule");
1354         if (result.good()) result = DigitalSignaturesSequence.write(dataset, "1-n" ,"3", "SOPCommonModule");
1355         if (result.good()) result = EncryptedAttributesSequence.write(dataset, "1-n" ,"1C", "SOPCommonModule");
1356         if (result.good()) result = OriginalAttributesSequence.write(dataset, "1-n" ,"3", "SOPCommonModule");
1357         if (result.good()) result = HL7StructuredDocumentReferenceSequence.write(dataset, "1-n" ,"1C", "SOPCommonModule");
1358         addElementToDataset(result, dataset, new DcmCodeString(LongitudinalTemporalInformationModified), "1", "3", "SOPCommonModule");
1359         addElementToDataset(result, dataset, new DcmCodeString(QueryRetrieveView), "1", "1C", "SOPCommonModule");
1360         if (result.good()) result = ConversionSourceAttributesSequence.write(dataset, "1-n" ,"1C", "SOPCommonModule");
1361         addElementToDataset(result, dataset, new DcmCodeString(ContentQualification), "1", "3", "SOPCommonModule");
1362         if (result.good()) result = PrivateDataElementCharacteristicsSequence.write(dataset, "1-n" ,"3", "SOPCommonModule");
1363 
1364         // --- CommonInstanceReferenceModule (U) ---
1365         if (isCommonInstanceReferenceModulePresent(OFFalse /*complete*/))
1366         {
1367             if (result.good()) result = ReferencedSeriesSequence.write(dataset, "1-n" ,"1C", "CommonInstanceReferenceModule");
1368             if (result.good()) result = StudiesContainingOtherReferencedInstancesSequence.write(dataset, "1-n" ,"1C", "CommonInstanceReferenceModule");
1369         }
1370     } else
1371         result = RT_EC_InvalidObject;
1372     return result;
1373 }
1374 
1375 
isClinicalTrialSubjectModulePresent(const OFBool complete)1376 OFBool DRTIonBeamsTreatmentRecordIOD::isClinicalTrialSubjectModulePresent(const OFBool complete)
1377 {
1378     if (complete)
1379     {
1380         /* check whether all mandatory attributes are present */
1381         return !ClinicalTrialSponsorName.isEmpty() &&
1382                !ClinicalTrialProtocolID.isEmpty();
1383     } else {
1384         /* check whether at least one attribute is present */
1385         return !ClinicalTrialSponsorName.isEmpty() ||
1386                !ClinicalTrialProtocolID.isEmpty() ||
1387                !ClinicalTrialProtocolName.isEmpty() ||
1388                !ClinicalTrialSiteID.isEmpty() ||
1389                !ClinicalTrialSiteName.isEmpty() ||
1390                !ClinicalTrialSubjectID.isEmpty() ||
1391                !ClinicalTrialSubjectReadingID.isEmpty() ||
1392                !ClinicalTrialProtocolEthicsCommitteeName.isEmpty() ||
1393                !ClinicalTrialProtocolEthicsCommitteeApprovalNumber.isEmpty();
1394     }
1395 }
1396 
1397 
isClinicalTrialStudyModulePresent(const OFBool)1398 OFBool DRTIonBeamsTreatmentRecordIOD::isClinicalTrialStudyModulePresent(const OFBool /*complete*/)
1399 {
1400     /* check whether at least one attribute is present */
1401     return !ClinicalTrialTimePointID.isEmpty() ||
1402            !ClinicalTrialTimePointDescription.isEmpty() ||
1403            !LongitudinalTemporalOffsetFromEvent.isEmpty() ||
1404            !LongitudinalTemporalEventType.isEmpty() ||
1405            !ConsentForClinicalTrialUseSequence.isEmpty();
1406 }
1407 
1408 
isPatientStudyModulePresent(const OFBool)1409 OFBool DRTIonBeamsTreatmentRecordIOD::isPatientStudyModulePresent(const OFBool /*complete*/)
1410 {
1411     /* check whether at least one attribute is present */
1412     return !AdmittingDiagnosesDescription.isEmpty() ||
1413            !AdmittingDiagnosesCodeSequence.isEmpty() ||
1414            !PatientAge.isEmpty() ||
1415            !PatientSize.isEmpty() ||
1416            !PatientWeight.isEmpty() ||
1417            !PatientBodyMassIndex.isEmpty() ||
1418            !MeasuredAPDimension.isEmpty() ||
1419            !MeasuredLateralDimension.isEmpty() ||
1420            !PatientSizeCodeSequence.isEmpty() ||
1421            !MedicalAlerts.isEmpty() ||
1422            !Allergies.isEmpty() ||
1423            !SmokingStatus.isEmpty() ||
1424            !PregnancyStatus.isEmpty() ||
1425            !LastMenstrualDate.isEmpty() ||
1426            !PatientState.isEmpty() ||
1427            !Occupation.isEmpty() ||
1428            !AdditionalPatientHistory.isEmpty() ||
1429            !AdmissionID.isEmpty() ||
1430            !IssuerOfAdmissionIDSequence.isEmpty() ||
1431            !ServiceEpisodeID.isEmpty() ||
1432            !IssuerOfServiceEpisodeIDSequence.isEmpty() ||
1433            !ServiceEpisodeDescription.isEmpty() ||
1434            !PatientSexNeutered.isEmpty();
1435 }
1436 
1437 
isClinicalTrialSeriesModulePresent(const OFBool)1438 OFBool DRTIonBeamsTreatmentRecordIOD::isClinicalTrialSeriesModulePresent(const OFBool /*complete*/)
1439 {
1440     /* check whether at least one attribute is present */
1441     return !ClinicalTrialCoordinatingCenterName.isEmpty() ||
1442            !ClinicalTrialSeriesID.isEmpty() ||
1443            !ClinicalTrialSeriesDescription.isEmpty();
1444 }
1445 
1446 
isRTPatientSetupModulePresent(const OFBool)1447 OFBool DRTIonBeamsTreatmentRecordIOD::isRTPatientSetupModulePresent(const OFBool /*complete*/)
1448 {
1449     /* check whether at least one attribute is present */
1450     return !PatientSetupSequence.isEmpty();
1451 }
1452 
1453 
isMeasuredDoseReferenceRecordModulePresent(const OFBool)1454 OFBool DRTIonBeamsTreatmentRecordIOD::isMeasuredDoseReferenceRecordModulePresent(const OFBool /*complete*/)
1455 {
1456     /* check whether at least one attribute is present */
1457     return !MeasuredDoseReferenceSequence.isEmpty();
1458 }
1459 
1460 
isCalculatedDoseReferenceRecordModulePresent(const OFBool)1461 OFBool DRTIonBeamsTreatmentRecordIOD::isCalculatedDoseReferenceRecordModulePresent(const OFBool /*complete*/)
1462 {
1463     /* check whether at least one attribute is present */
1464     return !CalculatedDoseReferenceSequence.isEmpty();
1465 }
1466 
1467 
isRTTreatmentSummaryRecordModulePresent(const OFBool complete)1468 OFBool DRTIonBeamsTreatmentRecordIOD::isRTTreatmentSummaryRecordModulePresent(const OFBool complete)
1469 {
1470     if (complete)
1471     {
1472         /* check whether all mandatory attributes are present */
1473         return !CurrentTreatmentStatus.isEmpty();
1474     } else {
1475         /* check whether at least one attribute is present */
1476         return !CurrentTreatmentStatus.isEmpty() ||
1477                !TreatmentStatusComment.isEmpty() ||
1478                !FirstTreatmentDate.isEmpty() ||
1479                !MostRecentTreatmentDate.isEmpty() ||
1480                !FractionGroupSummarySequence.isEmpty() ||
1481                !TreatmentSummaryMeasuredDoseReferenceSequence.isEmpty() ||
1482                !TreatmentSummaryCalculatedDoseReferenceSequence.isEmpty();
1483     }
1484 }
1485 
1486 
isGeneralReferenceModulePresent(const OFBool)1487 OFBool DRTIonBeamsTreatmentRecordIOD::isGeneralReferenceModulePresent(const OFBool /*complete*/)
1488 {
1489     /* check whether at least one attribute is present */
1490     return !ReferencedImageSequence.isEmpty() ||
1491            !ReferencedInstanceSequence.isEmpty() ||
1492            !DerivationDescription.isEmpty() ||
1493            !DerivationCodeSequence.isEmpty() ||
1494            !SourceImageSequence.isEmpty() ||
1495            !SourceInstanceSequence.isEmpty();
1496 }
1497 
1498 
isCommonInstanceReferenceModulePresent(const OFBool)1499 OFBool DRTIonBeamsTreatmentRecordIOD::isCommonInstanceReferenceModulePresent(const OFBool /*complete*/)
1500 {
1501     /* check whether at least one attribute is present */
1502     return !ReferencedSeriesSequence.isEmpty() ||
1503            !StudiesContainingOtherReferencedInstancesSequence.isEmpty();
1504 }
1505 
1506 
getAccessionNumber(OFString & value,const signed long pos) const1507 OFCondition DRTIonBeamsTreatmentRecordIOD::getAccessionNumber(OFString &value, const signed long pos) const
1508 {
1509     return getStringValueFromElement(AccessionNumber, value, pos);
1510 }
1511 
1512 
getAdditionalPatientHistory(OFString & value,const signed long pos) const1513 OFCondition DRTIonBeamsTreatmentRecordIOD::getAdditionalPatientHistory(OFString &value, const signed long pos) const
1514 {
1515     return getStringValueFromElement(AdditionalPatientHistory, value, pos);
1516 }
1517 
1518 
getAdmissionID(OFString & value,const signed long pos) const1519 OFCondition DRTIonBeamsTreatmentRecordIOD::getAdmissionID(OFString &value, const signed long pos) const
1520 {
1521     return getStringValueFromElement(AdmissionID, value, pos);
1522 }
1523 
1524 
getAdmittingDiagnosesDescription(OFString & value,const signed long pos) const1525 OFCondition DRTIonBeamsTreatmentRecordIOD::getAdmittingDiagnosesDescription(OFString &value, const signed long pos) const
1526 {
1527     return getStringValueFromElement(AdmittingDiagnosesDescription, value, pos);
1528 }
1529 
1530 
getAllergies(OFString & value,const signed long pos) const1531 OFCondition DRTIonBeamsTreatmentRecordIOD::getAllergies(OFString &value, const signed long pos) const
1532 {
1533     return getStringValueFromElement(Allergies, value, pos);
1534 }
1535 
1536 
getAuthorizationEquipmentCertificationNumber(OFString & value,const signed long pos) const1537 OFCondition DRTIonBeamsTreatmentRecordIOD::getAuthorizationEquipmentCertificationNumber(OFString &value, const signed long pos) const
1538 {
1539     return getStringValueFromElement(AuthorizationEquipmentCertificationNumber, value, pos);
1540 }
1541 
1542 
getClinicalTrialCoordinatingCenterName(OFString & value,const signed long pos) const1543 OFCondition DRTIonBeamsTreatmentRecordIOD::getClinicalTrialCoordinatingCenterName(OFString &value, const signed long pos) const
1544 {
1545     return getStringValueFromElement(ClinicalTrialCoordinatingCenterName, value, pos);
1546 }
1547 
1548 
getClinicalTrialProtocolEthicsCommitteeApprovalNumber(OFString & value,const signed long pos) const1549 OFCondition DRTIonBeamsTreatmentRecordIOD::getClinicalTrialProtocolEthicsCommitteeApprovalNumber(OFString &value, const signed long pos) const
1550 {
1551     return getStringValueFromElement(ClinicalTrialProtocolEthicsCommitteeApprovalNumber, value, pos);
1552 }
1553 
1554 
getClinicalTrialProtocolEthicsCommitteeName(OFString & value,const signed long pos) const1555 OFCondition DRTIonBeamsTreatmentRecordIOD::getClinicalTrialProtocolEthicsCommitteeName(OFString &value, const signed long pos) const
1556 {
1557     return getStringValueFromElement(ClinicalTrialProtocolEthicsCommitteeName, value, pos);
1558 }
1559 
1560 
getClinicalTrialProtocolID(OFString & value,const signed long pos) const1561 OFCondition DRTIonBeamsTreatmentRecordIOD::getClinicalTrialProtocolID(OFString &value, const signed long pos) const
1562 {
1563     return getStringValueFromElement(ClinicalTrialProtocolID, value, pos);
1564 }
1565 
1566 
getClinicalTrialProtocolName(OFString & value,const signed long pos) const1567 OFCondition DRTIonBeamsTreatmentRecordIOD::getClinicalTrialProtocolName(OFString &value, const signed long pos) const
1568 {
1569     return getStringValueFromElement(ClinicalTrialProtocolName, value, pos);
1570 }
1571 
1572 
getClinicalTrialSeriesDescription(OFString & value,const signed long pos) const1573 OFCondition DRTIonBeamsTreatmentRecordIOD::getClinicalTrialSeriesDescription(OFString &value, const signed long pos) const
1574 {
1575     return getStringValueFromElement(ClinicalTrialSeriesDescription, value, pos);
1576 }
1577 
1578 
getClinicalTrialSeriesID(OFString & value,const signed long pos) const1579 OFCondition DRTIonBeamsTreatmentRecordIOD::getClinicalTrialSeriesID(OFString &value, const signed long pos) const
1580 {
1581     return getStringValueFromElement(ClinicalTrialSeriesID, value, pos);
1582 }
1583 
1584 
getClinicalTrialSiteID(OFString & value,const signed long pos) const1585 OFCondition DRTIonBeamsTreatmentRecordIOD::getClinicalTrialSiteID(OFString &value, const signed long pos) const
1586 {
1587     return getStringValueFromElement(ClinicalTrialSiteID, value, pos);
1588 }
1589 
1590 
getClinicalTrialSiteName(OFString & value,const signed long pos) const1591 OFCondition DRTIonBeamsTreatmentRecordIOD::getClinicalTrialSiteName(OFString &value, const signed long pos) const
1592 {
1593     return getStringValueFromElement(ClinicalTrialSiteName, value, pos);
1594 }
1595 
1596 
getClinicalTrialSponsorName(OFString & value,const signed long pos) const1597 OFCondition DRTIonBeamsTreatmentRecordIOD::getClinicalTrialSponsorName(OFString &value, const signed long pos) const
1598 {
1599     return getStringValueFromElement(ClinicalTrialSponsorName, value, pos);
1600 }
1601 
1602 
getClinicalTrialSubjectID(OFString & value,const signed long pos) const1603 OFCondition DRTIonBeamsTreatmentRecordIOD::getClinicalTrialSubjectID(OFString &value, const signed long pos) const
1604 {
1605     return getStringValueFromElement(ClinicalTrialSubjectID, value, pos);
1606 }
1607 
1608 
getClinicalTrialSubjectReadingID(OFString & value,const signed long pos) const1609 OFCondition DRTIonBeamsTreatmentRecordIOD::getClinicalTrialSubjectReadingID(OFString &value, const signed long pos) const
1610 {
1611     return getStringValueFromElement(ClinicalTrialSubjectReadingID, value, pos);
1612 }
1613 
1614 
getClinicalTrialTimePointDescription(OFString & value,const signed long pos) const1615 OFCondition DRTIonBeamsTreatmentRecordIOD::getClinicalTrialTimePointDescription(OFString &value, const signed long pos) const
1616 {
1617     return getStringValueFromElement(ClinicalTrialTimePointDescription, value, pos);
1618 }
1619 
1620 
getClinicalTrialTimePointID(OFString & value,const signed long pos) const1621 OFCondition DRTIonBeamsTreatmentRecordIOD::getClinicalTrialTimePointID(OFString &value, const signed long pos) const
1622 {
1623     return getStringValueFromElement(ClinicalTrialTimePointID, value, pos);
1624 }
1625 
1626 
getCommentsOnThePerformedProcedureStep(OFString & value,const signed long pos) const1627 OFCondition DRTIonBeamsTreatmentRecordIOD::getCommentsOnThePerformedProcedureStep(OFString &value, const signed long pos) const
1628 {
1629     return getStringValueFromElement(CommentsOnThePerformedProcedureStep, value, pos);
1630 }
1631 
1632 
getConsultingPhysicianName(OFString & value,const signed long pos) const1633 OFCondition DRTIonBeamsTreatmentRecordIOD::getConsultingPhysicianName(OFString &value, const signed long pos) const
1634 {
1635     return getStringValueFromElement(ConsultingPhysicianName, value, pos);
1636 }
1637 
1638 
getContentQualification(OFString & value,const signed long pos) const1639 OFCondition DRTIonBeamsTreatmentRecordIOD::getContentQualification(OFString &value, const signed long pos) const
1640 {
1641     return getStringValueFromElement(ContentQualification, value, pos);
1642 }
1643 
1644 
getCurrentTreatmentStatus(OFString & value,const signed long pos) const1645 OFCondition DRTIonBeamsTreatmentRecordIOD::getCurrentTreatmentStatus(OFString &value, const signed long pos) const
1646 {
1647     return getStringValueFromElement(CurrentTreatmentStatus, value, pos);
1648 }
1649 
1650 
getDateOfLastCalibration(OFString & value,const signed long pos) const1651 OFCondition DRTIonBeamsTreatmentRecordIOD::getDateOfLastCalibration(OFString &value, const signed long pos) const
1652 {
1653     return getStringValueFromElement(DateOfLastCalibration, value, pos);
1654 }
1655 
1656 
getDeidentificationMethod(OFString & value,const signed long pos) const1657 OFCondition DRTIonBeamsTreatmentRecordIOD::getDeidentificationMethod(OFString &value, const signed long pos) const
1658 {
1659     return getStringValueFromElement(DeidentificationMethod, value, pos);
1660 }
1661 
1662 
getDerivationDescription(OFString & value,const signed long pos) const1663 OFCondition DRTIonBeamsTreatmentRecordIOD::getDerivationDescription(OFString &value, const signed long pos) const
1664 {
1665     return getStringValueFromElement(DerivationDescription, value, pos);
1666 }
1667 
1668 
getDeviceSerialNumber(OFString & value,const signed long pos) const1669 OFCondition DRTIonBeamsTreatmentRecordIOD::getDeviceSerialNumber(OFString &value, const signed long pos) const
1670 {
1671     return getStringValueFromElement(DeviceSerialNumber, value, pos);
1672 }
1673 
1674 
getEthnicGroup(OFString & value,const signed long pos) const1675 OFCondition DRTIonBeamsTreatmentRecordIOD::getEthnicGroup(OFString &value, const signed long pos) const
1676 {
1677     return getStringValueFromElement(EthnicGroup, value, pos);
1678 }
1679 
1680 
getFirstTreatmentDate(OFString & value,const signed long pos) const1681 OFCondition DRTIonBeamsTreatmentRecordIOD::getFirstTreatmentDate(OFString &value, const signed long pos) const
1682 {
1683     return getStringValueFromElement(FirstTreatmentDate, value, pos);
1684 }
1685 
1686 
getGantryID(OFString & value,const signed long pos) const1687 OFCondition DRTIonBeamsTreatmentRecordIOD::getGantryID(OFString &value, const signed long pos) const
1688 {
1689     return getStringValueFromElement(GantryID, value, pos);
1690 }
1691 
1692 
getInstanceCoercionDateTime(OFString & value,const signed long pos) const1693 OFCondition DRTIonBeamsTreatmentRecordIOD::getInstanceCoercionDateTime(OFString &value, const signed long pos) const
1694 {
1695     return getStringValueFromElement(InstanceCoercionDateTime, value, pos);
1696 }
1697 
1698 
getInstanceCreationDate(OFString & value,const signed long pos) const1699 OFCondition DRTIonBeamsTreatmentRecordIOD::getInstanceCreationDate(OFString &value, const signed long pos) const
1700 {
1701     return getStringValueFromElement(InstanceCreationDate, value, pos);
1702 }
1703 
1704 
getInstanceCreationTime(OFString & value,const signed long pos) const1705 OFCondition DRTIonBeamsTreatmentRecordIOD::getInstanceCreationTime(OFString &value, const signed long pos) const
1706 {
1707     return getStringValueFromElement(InstanceCreationTime, value, pos);
1708 }
1709 
1710 
getInstanceCreatorUID(OFString & value,const signed long pos) const1711 OFCondition DRTIonBeamsTreatmentRecordIOD::getInstanceCreatorUID(OFString &value, const signed long pos) const
1712 {
1713     return getStringValueFromElement(InstanceCreatorUID, value, pos);
1714 }
1715 
1716 
getInstanceNumber(OFString & value,const signed long pos) const1717 OFCondition DRTIonBeamsTreatmentRecordIOD::getInstanceNumber(OFString &value, const signed long pos) const
1718 {
1719     return getStringValueFromElement(InstanceNumber, value, pos);
1720 }
1721 
1722 
getInstanceNumber(Sint32 & value,const unsigned long pos) const1723 OFCondition DRTIonBeamsTreatmentRecordIOD::getInstanceNumber(Sint32 &value, const unsigned long pos) const
1724 {
1725     return OFconst_cast(DcmIntegerString &, InstanceNumber).getSint32(value, pos);
1726 }
1727 
1728 
getInstitutionAddress(OFString & value,const signed long pos) const1729 OFCondition DRTIonBeamsTreatmentRecordIOD::getInstitutionAddress(OFString &value, const signed long pos) const
1730 {
1731     return getStringValueFromElement(InstitutionAddress, value, pos);
1732 }
1733 
1734 
getInstitutionName(OFString & value,const signed long pos) const1735 OFCondition DRTIonBeamsTreatmentRecordIOD::getInstitutionName(OFString &value, const signed long pos) const
1736 {
1737     return getStringValueFromElement(InstitutionName, value, pos);
1738 }
1739 
1740 
getInstitutionalDepartmentName(OFString & value,const signed long pos) const1741 OFCondition DRTIonBeamsTreatmentRecordIOD::getInstitutionalDepartmentName(OFString &value, const signed long pos) const
1742 {
1743     return getStringValueFromElement(InstitutionalDepartmentName, value, pos);
1744 }
1745 
1746 
getIssuerOfPatientID(OFString & value,const signed long pos) const1747 OFCondition DRTIonBeamsTreatmentRecordIOD::getIssuerOfPatientID(OFString &value, const signed long pos) const
1748 {
1749     return getStringValueFromElement(IssuerOfPatientID, value, pos);
1750 }
1751 
1752 
getLastMenstrualDate(OFString & value,const signed long pos) const1753 OFCondition DRTIonBeamsTreatmentRecordIOD::getLastMenstrualDate(OFString &value, const signed long pos) const
1754 {
1755     return getStringValueFromElement(LastMenstrualDate, value, pos);
1756 }
1757 
1758 
getLongitudinalTemporalEventType(OFString & value,const signed long pos) const1759 OFCondition DRTIonBeamsTreatmentRecordIOD::getLongitudinalTemporalEventType(OFString &value, const signed long pos) const
1760 {
1761     return getStringValueFromElement(LongitudinalTemporalEventType, value, pos);
1762 }
1763 
1764 
getLongitudinalTemporalInformationModified(OFString & value,const signed long pos) const1765 OFCondition DRTIonBeamsTreatmentRecordIOD::getLongitudinalTemporalInformationModified(OFString &value, const signed long pos) const
1766 {
1767     return getStringValueFromElement(LongitudinalTemporalInformationModified, value, pos);
1768 }
1769 
1770 
getLongitudinalTemporalOffsetFromEvent(Float64 & value,const unsigned long pos) const1771 OFCondition DRTIonBeamsTreatmentRecordIOD::getLongitudinalTemporalOffsetFromEvent(Float64 &value, const unsigned long pos) const
1772 {
1773     return OFconst_cast(DcmFloatingPointDouble &, LongitudinalTemporalOffsetFromEvent).getFloat64(value, pos);
1774 }
1775 
1776 
getManufacturer(OFString & value,const signed long pos) const1777 OFCondition DRTIonBeamsTreatmentRecordIOD::getManufacturer(OFString &value, const signed long pos) const
1778 {
1779     return getStringValueFromElement(Manufacturer, value, pos);
1780 }
1781 
1782 
getManufacturerModelName(OFString & value,const signed long pos) const1783 OFCondition DRTIonBeamsTreatmentRecordIOD::getManufacturerModelName(OFString &value, const signed long pos) const
1784 {
1785     return getStringValueFromElement(ManufacturerModelName, value, pos);
1786 }
1787 
1788 
getMeasuredAPDimension(OFString & value,const signed long pos) const1789 OFCondition DRTIonBeamsTreatmentRecordIOD::getMeasuredAPDimension(OFString &value, const signed long pos) const
1790 {
1791     return getStringValueFromElement(MeasuredAPDimension, value, pos);
1792 }
1793 
1794 
getMeasuredAPDimension(Float64 & value,const unsigned long pos) const1795 OFCondition DRTIonBeamsTreatmentRecordIOD::getMeasuredAPDimension(Float64 &value, const unsigned long pos) const
1796 {
1797     return OFconst_cast(DcmDecimalString &, MeasuredAPDimension).getFloat64(value, pos);
1798 }
1799 
1800 
getMeasuredLateralDimension(OFString & value,const signed long pos) const1801 OFCondition DRTIonBeamsTreatmentRecordIOD::getMeasuredLateralDimension(OFString &value, const signed long pos) const
1802 {
1803     return getStringValueFromElement(MeasuredLateralDimension, value, pos);
1804 }
1805 
1806 
getMeasuredLateralDimension(Float64 & value,const unsigned long pos) const1807 OFCondition DRTIonBeamsTreatmentRecordIOD::getMeasuredLateralDimension(Float64 &value, const unsigned long pos) const
1808 {
1809     return OFconst_cast(DcmDecimalString &, MeasuredLateralDimension).getFloat64(value, pos);
1810 }
1811 
1812 
getMedicalAlerts(OFString & value,const signed long pos) const1813 OFCondition DRTIonBeamsTreatmentRecordIOD::getMedicalAlerts(OFString &value, const signed long pos) const
1814 {
1815     return getStringValueFromElement(MedicalAlerts, value, pos);
1816 }
1817 
1818 
getModality(OFString & value,const signed long pos) const1819 OFCondition DRTIonBeamsTreatmentRecordIOD::getModality(OFString &value, const signed long pos) const
1820 {
1821     return getStringValueFromElement(Modality, value, pos);
1822 }
1823 
1824 
getMostRecentTreatmentDate(OFString & value,const signed long pos) const1825 OFCondition DRTIonBeamsTreatmentRecordIOD::getMostRecentTreatmentDate(OFString &value, const signed long pos) const
1826 {
1827     return getStringValueFromElement(MostRecentTreatmentDate, value, pos);
1828 }
1829 
1830 
getNameOfPhysiciansReadingStudy(OFString & value,const signed long pos) const1831 OFCondition DRTIonBeamsTreatmentRecordIOD::getNameOfPhysiciansReadingStudy(OFString &value, const signed long pos) const
1832 {
1833     return getStringValueFromElement(NameOfPhysiciansReadingStudy, value, pos);
1834 }
1835 
1836 
getNumberOfFractionsPlanned(OFString & value,const signed long pos) const1837 OFCondition DRTIonBeamsTreatmentRecordIOD::getNumberOfFractionsPlanned(OFString &value, const signed long pos) const
1838 {
1839     return getStringValueFromElement(NumberOfFractionsPlanned, value, pos);
1840 }
1841 
1842 
getNumberOfFractionsPlanned(Sint32 & value,const unsigned long pos) const1843 OFCondition DRTIonBeamsTreatmentRecordIOD::getNumberOfFractionsPlanned(Sint32 &value, const unsigned long pos) const
1844 {
1845     return OFconst_cast(DcmIntegerString &, NumberOfFractionsPlanned).getSint32(value, pos);
1846 }
1847 
1848 
getOccupation(OFString & value,const signed long pos) const1849 OFCondition DRTIonBeamsTreatmentRecordIOD::getOccupation(OFString &value, const signed long pos) const
1850 {
1851     return getStringValueFromElement(Occupation, value, pos);
1852 }
1853 
1854 
getOperatorsName(OFString & value,const signed long pos) const1855 OFCondition DRTIonBeamsTreatmentRecordIOD::getOperatorsName(OFString &value, const signed long pos) const
1856 {
1857     return getStringValueFromElement(OperatorsName, value, pos);
1858 }
1859 
1860 
getOriginalSpecializedSOPClassUID(OFString & value,const signed long pos) const1861 OFCondition DRTIonBeamsTreatmentRecordIOD::getOriginalSpecializedSOPClassUID(OFString &value, const signed long pos) const
1862 {
1863     return getStringValueFromElement(OriginalSpecializedSOPClassUID, value, pos);
1864 }
1865 
1866 
getOtherPatientNames(OFString & value,const signed long pos) const1867 OFCondition DRTIonBeamsTreatmentRecordIOD::getOtherPatientNames(OFString &value, const signed long pos) const
1868 {
1869     return getStringValueFromElement(OtherPatientNames, value, pos);
1870 }
1871 
1872 
getPatientAge(OFString & value,const signed long pos) const1873 OFCondition DRTIonBeamsTreatmentRecordIOD::getPatientAge(OFString &value, const signed long pos) const
1874 {
1875     return getStringValueFromElement(PatientAge, value, pos);
1876 }
1877 
1878 
getPatientAlternativeCalendar(OFString & value,const signed long pos) const1879 OFCondition DRTIonBeamsTreatmentRecordIOD::getPatientAlternativeCalendar(OFString &value, const signed long pos) const
1880 {
1881     return getStringValueFromElement(PatientAlternativeCalendar, value, pos);
1882 }
1883 
1884 
getPatientBirthDate(OFString & value,const signed long pos) const1885 OFCondition DRTIonBeamsTreatmentRecordIOD::getPatientBirthDate(OFString &value, const signed long pos) const
1886 {
1887     return getStringValueFromElement(PatientBirthDate, value, pos);
1888 }
1889 
1890 
getPatientBirthDateInAlternativeCalendar(OFString & value,const signed long pos) const1891 OFCondition DRTIonBeamsTreatmentRecordIOD::getPatientBirthDateInAlternativeCalendar(OFString &value, const signed long pos) const
1892 {
1893     return getStringValueFromElement(PatientBirthDateInAlternativeCalendar, value, pos);
1894 }
1895 
1896 
getPatientBirthTime(OFString & value,const signed long pos) const1897 OFCondition DRTIonBeamsTreatmentRecordIOD::getPatientBirthTime(OFString &value, const signed long pos) const
1898 {
1899     return getStringValueFromElement(PatientBirthTime, value, pos);
1900 }
1901 
1902 
getPatientBodyMassIndex(OFString & value,const signed long pos) const1903 OFCondition DRTIonBeamsTreatmentRecordIOD::getPatientBodyMassIndex(OFString &value, const signed long pos) const
1904 {
1905     return getStringValueFromElement(PatientBodyMassIndex, value, pos);
1906 }
1907 
1908 
getPatientBodyMassIndex(Float64 & value,const unsigned long pos) const1909 OFCondition DRTIonBeamsTreatmentRecordIOD::getPatientBodyMassIndex(Float64 &value, const unsigned long pos) const
1910 {
1911     return OFconst_cast(DcmDecimalString &, PatientBodyMassIndex).getFloat64(value, pos);
1912 }
1913 
1914 
getPatientBreedDescription(OFString & value,const signed long pos) const1915 OFCondition DRTIonBeamsTreatmentRecordIOD::getPatientBreedDescription(OFString &value, const signed long pos) const
1916 {
1917     return getStringValueFromElement(PatientBreedDescription, value, pos);
1918 }
1919 
1920 
getPatientComments(OFString & value,const signed long pos) const1921 OFCondition DRTIonBeamsTreatmentRecordIOD::getPatientComments(OFString &value, const signed long pos) const
1922 {
1923     return getStringValueFromElement(PatientComments, value, pos);
1924 }
1925 
1926 
getPatientDeathDateInAlternativeCalendar(OFString & value,const signed long pos) const1927 OFCondition DRTIonBeamsTreatmentRecordIOD::getPatientDeathDateInAlternativeCalendar(OFString &value, const signed long pos) const
1928 {
1929     return getStringValueFromElement(PatientDeathDateInAlternativeCalendar, value, pos);
1930 }
1931 
1932 
getPatientID(OFString & value,const signed long pos) const1933 OFCondition DRTIonBeamsTreatmentRecordIOD::getPatientID(OFString &value, const signed long pos) const
1934 {
1935     return getStringValueFromElement(PatientID, value, pos);
1936 }
1937 
1938 
getPatientIdentityRemoved(OFString & value,const signed long pos) const1939 OFCondition DRTIonBeamsTreatmentRecordIOD::getPatientIdentityRemoved(OFString &value, const signed long pos) const
1940 {
1941     return getStringValueFromElement(PatientIdentityRemoved, value, pos);
1942 }
1943 
1944 
getPatientName(OFString & value,const signed long pos) const1945 OFCondition DRTIonBeamsTreatmentRecordIOD::getPatientName(OFString &value, const signed long pos) const
1946 {
1947     return getStringValueFromElement(PatientName, value, pos);
1948 }
1949 
1950 
getPatientSex(OFString & value,const signed long pos) const1951 OFCondition DRTIonBeamsTreatmentRecordIOD::getPatientSex(OFString &value, const signed long pos) const
1952 {
1953     return getStringValueFromElement(PatientSex, value, pos);
1954 }
1955 
1956 
getPatientSexNeutered(OFString & value,const signed long pos) const1957 OFCondition DRTIonBeamsTreatmentRecordIOD::getPatientSexNeutered(OFString &value, const signed long pos) const
1958 {
1959     return getStringValueFromElement(PatientSexNeutered, value, pos);
1960 }
1961 
1962 
getPatientSize(OFString & value,const signed long pos) const1963 OFCondition DRTIonBeamsTreatmentRecordIOD::getPatientSize(OFString &value, const signed long pos) const
1964 {
1965     return getStringValueFromElement(PatientSize, value, pos);
1966 }
1967 
1968 
getPatientSize(Float64 & value,const unsigned long pos) const1969 OFCondition DRTIonBeamsTreatmentRecordIOD::getPatientSize(Float64 &value, const unsigned long pos) const
1970 {
1971     return OFconst_cast(DcmDecimalString &, PatientSize).getFloat64(value, pos);
1972 }
1973 
1974 
getPatientSpeciesDescription(OFString & value,const signed long pos) const1975 OFCondition DRTIonBeamsTreatmentRecordIOD::getPatientSpeciesDescription(OFString &value, const signed long pos) const
1976 {
1977     return getStringValueFromElement(PatientSpeciesDescription, value, pos);
1978 }
1979 
1980 
getPatientState(OFString & value,const signed long pos) const1981 OFCondition DRTIonBeamsTreatmentRecordIOD::getPatientState(OFString &value, const signed long pos) const
1982 {
1983     return getStringValueFromElement(PatientState, value, pos);
1984 }
1985 
1986 
getPatientWeight(OFString & value,const signed long pos) const1987 OFCondition DRTIonBeamsTreatmentRecordIOD::getPatientWeight(OFString &value, const signed long pos) const
1988 {
1989     return getStringValueFromElement(PatientWeight, value, pos);
1990 }
1991 
1992 
getPatientWeight(Float64 & value,const unsigned long pos) const1993 OFCondition DRTIonBeamsTreatmentRecordIOD::getPatientWeight(Float64 &value, const unsigned long pos) const
1994 {
1995     return OFconst_cast(DcmDecimalString &, PatientWeight).getFloat64(value, pos);
1996 }
1997 
1998 
getPerformedProcedureStepDescription(OFString & value,const signed long pos) const1999 OFCondition DRTIonBeamsTreatmentRecordIOD::getPerformedProcedureStepDescription(OFString &value, const signed long pos) const
2000 {
2001     return getStringValueFromElement(PerformedProcedureStepDescription, value, pos);
2002 }
2003 
2004 
getPerformedProcedureStepEndDate(OFString & value,const signed long pos) const2005 OFCondition DRTIonBeamsTreatmentRecordIOD::getPerformedProcedureStepEndDate(OFString &value, const signed long pos) const
2006 {
2007     return getStringValueFromElement(PerformedProcedureStepEndDate, value, pos);
2008 }
2009 
2010 
getPerformedProcedureStepEndTime(OFString & value,const signed long pos) const2011 OFCondition DRTIonBeamsTreatmentRecordIOD::getPerformedProcedureStepEndTime(OFString &value, const signed long pos) const
2012 {
2013     return getStringValueFromElement(PerformedProcedureStepEndTime, value, pos);
2014 }
2015 
2016 
getPerformedProcedureStepID(OFString & value,const signed long pos) const2017 OFCondition DRTIonBeamsTreatmentRecordIOD::getPerformedProcedureStepID(OFString &value, const signed long pos) const
2018 {
2019     return getStringValueFromElement(PerformedProcedureStepID, value, pos);
2020 }
2021 
2022 
getPerformedProcedureStepStartDate(OFString & value,const signed long pos) const2023 OFCondition DRTIonBeamsTreatmentRecordIOD::getPerformedProcedureStepStartDate(OFString &value, const signed long pos) const
2024 {
2025     return getStringValueFromElement(PerformedProcedureStepStartDate, value, pos);
2026 }
2027 
2028 
getPerformedProcedureStepStartTime(OFString & value,const signed long pos) const2029 OFCondition DRTIonBeamsTreatmentRecordIOD::getPerformedProcedureStepStartTime(OFString &value, const signed long pos) const
2030 {
2031     return getStringValueFromElement(PerformedProcedureStepStartTime, value, pos);
2032 }
2033 
2034 
getPhysiciansOfRecord(OFString & value,const signed long pos) const2035 OFCondition DRTIonBeamsTreatmentRecordIOD::getPhysiciansOfRecord(OFString &value, const signed long pos) const
2036 {
2037     return getStringValueFromElement(PhysiciansOfRecord, value, pos);
2038 }
2039 
2040 
getPixelPaddingValue(Uint16 & value,const unsigned long pos) const2041 OFCondition DRTIonBeamsTreatmentRecordIOD::getPixelPaddingValue(Uint16 &value, const unsigned long pos) const
2042 {
2043     return OFconst_cast(DcmUnsignedShort &, PixelPaddingValue).getUint16(value, pos);
2044 }
2045 
2046 
getPregnancyStatus(Uint16 & value,const unsigned long pos) const2047 OFCondition DRTIonBeamsTreatmentRecordIOD::getPregnancyStatus(Uint16 &value, const unsigned long pos) const
2048 {
2049     return OFconst_cast(DcmUnsignedShort &, PregnancyStatus).getUint16(value, pos);
2050 }
2051 
2052 
getPrimaryDosimeterUnit(OFString & value,const signed long pos) const2053 OFCondition DRTIonBeamsTreatmentRecordIOD::getPrimaryDosimeterUnit(OFString &value, const signed long pos) const
2054 {
2055     return getStringValueFromElement(PrimaryDosimeterUnit, value, pos);
2056 }
2057 
2058 
getQualityControlSubject(OFString & value,const signed long pos) const2059 OFCondition DRTIonBeamsTreatmentRecordIOD::getQualityControlSubject(OFString &value, const signed long pos) const
2060 {
2061     return getStringValueFromElement(QualityControlSubject, value, pos);
2062 }
2063 
2064 
getQueryRetrieveView(OFString & value,const signed long pos) const2065 OFCondition DRTIonBeamsTreatmentRecordIOD::getQueryRetrieveView(OFString &value, const signed long pos) const
2066 {
2067     return getStringValueFromElement(QueryRetrieveView, value, pos);
2068 }
2069 
2070 
getReferencedFractionGroupNumber(OFString & value,const signed long pos) const2071 OFCondition DRTIonBeamsTreatmentRecordIOD::getReferencedFractionGroupNumber(OFString &value, const signed long pos) const
2072 {
2073     return getStringValueFromElement(ReferencedFractionGroupNumber, value, pos);
2074 }
2075 
2076 
getReferencedFractionGroupNumber(Sint32 & value,const unsigned long pos) const2077 OFCondition DRTIonBeamsTreatmentRecordIOD::getReferencedFractionGroupNumber(Sint32 &value, const unsigned long pos) const
2078 {
2079     return OFconst_cast(DcmIntegerString &, ReferencedFractionGroupNumber).getSint32(value, pos);
2080 }
2081 
2082 
getReferringPhysicianName(OFString & value,const signed long pos) const2083 OFCondition DRTIonBeamsTreatmentRecordIOD::getReferringPhysicianName(OFString &value, const signed long pos) const
2084 {
2085     return getStringValueFromElement(ReferringPhysicianName, value, pos);
2086 }
2087 
2088 
getRelatedGeneralSOPClassUID(OFString & value,const signed long pos) const2089 OFCondition DRTIonBeamsTreatmentRecordIOD::getRelatedGeneralSOPClassUID(OFString &value, const signed long pos) const
2090 {
2091     return getStringValueFromElement(RelatedGeneralSOPClassUID, value, pos);
2092 }
2093 
2094 
getResponsibleOrganization(OFString & value,const signed long pos) const2095 OFCondition DRTIonBeamsTreatmentRecordIOD::getResponsibleOrganization(OFString &value, const signed long pos) const
2096 {
2097     return getStringValueFromElement(ResponsibleOrganization, value, pos);
2098 }
2099 
2100 
getResponsiblePerson(OFString & value,const signed long pos) const2101 OFCondition DRTIonBeamsTreatmentRecordIOD::getResponsiblePerson(OFString &value, const signed long pos) const
2102 {
2103     return getStringValueFromElement(ResponsiblePerson, value, pos);
2104 }
2105 
2106 
getResponsiblePersonRole(OFString & value,const signed long pos) const2107 OFCondition DRTIonBeamsTreatmentRecordIOD::getResponsiblePersonRole(OFString &value, const signed long pos) const
2108 {
2109     return getStringValueFromElement(ResponsiblePersonRole, value, pos);
2110 }
2111 
2112 
getSOPAuthorizationComment(OFString & value,const signed long pos) const2113 OFCondition DRTIonBeamsTreatmentRecordIOD::getSOPAuthorizationComment(OFString &value, const signed long pos) const
2114 {
2115     return getStringValueFromElement(SOPAuthorizationComment, value, pos);
2116 }
2117 
2118 
getSOPAuthorizationDateTime(OFString & value,const signed long pos) const2119 OFCondition DRTIonBeamsTreatmentRecordIOD::getSOPAuthorizationDateTime(OFString &value, const signed long pos) const
2120 {
2121     return getStringValueFromElement(SOPAuthorizationDateTime, value, pos);
2122 }
2123 
2124 
getSOPClassUID(OFString & value,const signed long pos) const2125 OFCondition DRTIonBeamsTreatmentRecordIOD::getSOPClassUID(OFString &value, const signed long pos) const
2126 {
2127     return getStringValueFromElement(SOPClassUID, value, pos);
2128 }
2129 
2130 
getSOPInstanceStatus(OFString & value,const signed long pos) const2131 OFCondition DRTIonBeamsTreatmentRecordIOD::getSOPInstanceStatus(OFString &value, const signed long pos) const
2132 {
2133     return getStringValueFromElement(SOPInstanceStatus, value, pos);
2134 }
2135 
2136 
getSOPInstanceUID(OFString & value,const signed long pos) const2137 OFCondition DRTIonBeamsTreatmentRecordIOD::getSOPInstanceUID(OFString &value, const signed long pos) const
2138 {
2139     return getStringValueFromElement(SOPInstanceUID, value, pos);
2140 }
2141 
2142 
getSeriesDate(OFString & value,const signed long pos) const2143 OFCondition DRTIonBeamsTreatmentRecordIOD::getSeriesDate(OFString &value, const signed long pos) const
2144 {
2145     return getStringValueFromElement(SeriesDate, value, pos);
2146 }
2147 
2148 
getSeriesDescription(OFString & value,const signed long pos) const2149 OFCondition DRTIonBeamsTreatmentRecordIOD::getSeriesDescription(OFString &value, const signed long pos) const
2150 {
2151     return getStringValueFromElement(SeriesDescription, value, pos);
2152 }
2153 
2154 
getSeriesInstanceUID(OFString & value,const signed long pos) const2155 OFCondition DRTIonBeamsTreatmentRecordIOD::getSeriesInstanceUID(OFString &value, const signed long pos) const
2156 {
2157     return getStringValueFromElement(SeriesInstanceUID, value, pos);
2158 }
2159 
2160 
getSeriesNumber(OFString & value,const signed long pos) const2161 OFCondition DRTIonBeamsTreatmentRecordIOD::getSeriesNumber(OFString &value, const signed long pos) const
2162 {
2163     return getStringValueFromElement(SeriesNumber, value, pos);
2164 }
2165 
2166 
getSeriesNumber(Sint32 & value,const unsigned long pos) const2167 OFCondition DRTIonBeamsTreatmentRecordIOD::getSeriesNumber(Sint32 &value, const unsigned long pos) const
2168 {
2169     return OFconst_cast(DcmIntegerString &, SeriesNumber).getSint32(value, pos);
2170 }
2171 
2172 
getSeriesTime(OFString & value,const signed long pos) const2173 OFCondition DRTIonBeamsTreatmentRecordIOD::getSeriesTime(OFString &value, const signed long pos) const
2174 {
2175     return getStringValueFromElement(SeriesTime, value, pos);
2176 }
2177 
2178 
getServiceEpisodeDescription(OFString & value,const signed long pos) const2179 OFCondition DRTIonBeamsTreatmentRecordIOD::getServiceEpisodeDescription(OFString &value, const signed long pos) const
2180 {
2181     return getStringValueFromElement(ServiceEpisodeDescription, value, pos);
2182 }
2183 
2184 
getServiceEpisodeID(OFString & value,const signed long pos) const2185 OFCondition DRTIonBeamsTreatmentRecordIOD::getServiceEpisodeID(OFString &value, const signed long pos) const
2186 {
2187     return getStringValueFromElement(ServiceEpisodeID, value, pos);
2188 }
2189 
2190 
getSmokingStatus(OFString & value,const signed long pos) const2191 OFCondition DRTIonBeamsTreatmentRecordIOD::getSmokingStatus(OFString &value, const signed long pos) const
2192 {
2193     return getStringValueFromElement(SmokingStatus, value, pos);
2194 }
2195 
2196 
getSoftwareVersions(OFString & value,const signed long pos) const2197 OFCondition DRTIonBeamsTreatmentRecordIOD::getSoftwareVersions(OFString &value, const signed long pos) const
2198 {
2199     return getStringValueFromElement(SoftwareVersions, value, pos);
2200 }
2201 
2202 
getSpatialResolution(OFString & value,const signed long pos) const2203 OFCondition DRTIonBeamsTreatmentRecordIOD::getSpatialResolution(OFString &value, const signed long pos) const
2204 {
2205     return getStringValueFromElement(SpatialResolution, value, pos);
2206 }
2207 
2208 
getSpatialResolution(Float64 & value,const unsigned long pos) const2209 OFCondition DRTIonBeamsTreatmentRecordIOD::getSpatialResolution(Float64 &value, const unsigned long pos) const
2210 {
2211     return OFconst_cast(DcmDecimalString &, SpatialResolution).getFloat64(value, pos);
2212 }
2213 
2214 
getSpecificCharacterSet(OFString & value,const signed long pos) const2215 OFCondition DRTIonBeamsTreatmentRecordIOD::getSpecificCharacterSet(OFString &value, const signed long pos) const
2216 {
2217     return getStringValueFromElement(SpecificCharacterSet, value, pos);
2218 }
2219 
2220 
getStationName(OFString & value,const signed long pos) const2221 OFCondition DRTIonBeamsTreatmentRecordIOD::getStationName(OFString &value, const signed long pos) const
2222 {
2223     return getStringValueFromElement(StationName, value, pos);
2224 }
2225 
2226 
getStrainAdditionalInformation(OFString & value,const signed long pos) const2227 OFCondition DRTIonBeamsTreatmentRecordIOD::getStrainAdditionalInformation(OFString &value, const signed long pos) const
2228 {
2229     return getStringValueFromElement(StrainAdditionalInformation, value, pos);
2230 }
2231 
2232 
getStrainDescription(OFString & value,const signed long pos) const2233 OFCondition DRTIonBeamsTreatmentRecordIOD::getStrainDescription(OFString &value, const signed long pos) const
2234 {
2235     return getStringValueFromElement(StrainDescription, value, pos);
2236 }
2237 
2238 
getStrainNomenclature(OFString & value,const signed long pos) const2239 OFCondition DRTIonBeamsTreatmentRecordIOD::getStrainNomenclature(OFString &value, const signed long pos) const
2240 {
2241     return getStringValueFromElement(StrainNomenclature, value, pos);
2242 }
2243 
2244 
getStudyDate(OFString & value,const signed long pos) const2245 OFCondition DRTIonBeamsTreatmentRecordIOD::getStudyDate(OFString &value, const signed long pos) const
2246 {
2247     return getStringValueFromElement(StudyDate, value, pos);
2248 }
2249 
2250 
getStudyDescription(OFString & value,const signed long pos) const2251 OFCondition DRTIonBeamsTreatmentRecordIOD::getStudyDescription(OFString &value, const signed long pos) const
2252 {
2253     return getStringValueFromElement(StudyDescription, value, pos);
2254 }
2255 
2256 
getStudyID(OFString & value,const signed long pos) const2257 OFCondition DRTIonBeamsTreatmentRecordIOD::getStudyID(OFString &value, const signed long pos) const
2258 {
2259     return getStringValueFromElement(StudyID, value, pos);
2260 }
2261 
2262 
getStudyInstanceUID(OFString & value,const signed long pos) const2263 OFCondition DRTIonBeamsTreatmentRecordIOD::getStudyInstanceUID(OFString &value, const signed long pos) const
2264 {
2265     return getStringValueFromElement(StudyInstanceUID, value, pos);
2266 }
2267 
2268 
getStudyTime(OFString & value,const signed long pos) const2269 OFCondition DRTIonBeamsTreatmentRecordIOD::getStudyTime(OFString &value, const signed long pos) const
2270 {
2271     return getStringValueFromElement(StudyTime, value, pos);
2272 }
2273 
2274 
getTimeOfLastCalibration(OFString & value,const signed long pos) const2275 OFCondition DRTIonBeamsTreatmentRecordIOD::getTimeOfLastCalibration(OFString &value, const signed long pos) const
2276 {
2277     return getStringValueFromElement(TimeOfLastCalibration, value, pos);
2278 }
2279 
2280 
getTimezoneOffsetFromUTC(OFString & value,const signed long pos) const2281 OFCondition DRTIonBeamsTreatmentRecordIOD::getTimezoneOffsetFromUTC(OFString &value, const signed long pos) const
2282 {
2283     return getStringValueFromElement(TimezoneOffsetFromUTC, value, pos);
2284 }
2285 
2286 
getTreatmentDate(OFString & value,const signed long pos) const2287 OFCondition DRTIonBeamsTreatmentRecordIOD::getTreatmentDate(OFString &value, const signed long pos) const
2288 {
2289     return getStringValueFromElement(TreatmentDate, value, pos);
2290 }
2291 
2292 
getTreatmentStatusComment(OFString & value,const signed long pos) const2293 OFCondition DRTIonBeamsTreatmentRecordIOD::getTreatmentStatusComment(OFString &value, const signed long pos) const
2294 {
2295     return getStringValueFromElement(TreatmentStatusComment, value, pos);
2296 }
2297 
2298 
getTreatmentTime(OFString & value,const signed long pos) const2299 OFCondition DRTIonBeamsTreatmentRecordIOD::getTreatmentTime(OFString &value, const signed long pos) const
2300 {
2301     return getStringValueFromElement(TreatmentTime, value, pos);
2302 }
2303 
2304 
setAccessionNumber(const OFString & value,const OFBool check)2305 OFCondition DRTIonBeamsTreatmentRecordIOD::setAccessionNumber(const OFString &value, const OFBool check)
2306 {
2307     OFCondition result = (check) ? DcmShortString::checkStringValue(value, "1") : EC_Normal;
2308     if (result.good())
2309         result = AccessionNumber.putOFStringArray(value);
2310     return result;
2311 }
2312 
2313 
setAdditionalPatientHistory(const OFString & value,const OFBool check)2314 OFCondition DRTIonBeamsTreatmentRecordIOD::setAdditionalPatientHistory(const OFString &value, const OFBool check)
2315 {
2316     OFCondition result = (check) ? DcmLongText::checkStringValue(value) : EC_Normal;
2317     if (result.good())
2318         result = AdditionalPatientHistory.putOFStringArray(value);
2319     return result;
2320 }
2321 
2322 
setAdmissionID(const OFString & value,const OFBool check)2323 OFCondition DRTIonBeamsTreatmentRecordIOD::setAdmissionID(const OFString &value, const OFBool check)
2324 {
2325     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2326     if (result.good())
2327         result = AdmissionID.putOFStringArray(value);
2328     return result;
2329 }
2330 
2331 
setAdmittingDiagnosesDescription(const OFString & value,const OFBool check)2332 OFCondition DRTIonBeamsTreatmentRecordIOD::setAdmittingDiagnosesDescription(const OFString &value, const OFBool check)
2333 {
2334     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1-n") : EC_Normal;
2335     if (result.good())
2336         result = AdmittingDiagnosesDescription.putOFStringArray(value);
2337     return result;
2338 }
2339 
2340 
setAllergies(const OFString & value,const OFBool check)2341 OFCondition DRTIonBeamsTreatmentRecordIOD::setAllergies(const OFString &value, const OFBool check)
2342 {
2343     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1-n") : EC_Normal;
2344     if (result.good())
2345         result = Allergies.putOFStringArray(value);
2346     return result;
2347 }
2348 
2349 
setAuthorizationEquipmentCertificationNumber(const OFString & value,const OFBool check)2350 OFCondition DRTIonBeamsTreatmentRecordIOD::setAuthorizationEquipmentCertificationNumber(const OFString &value, const OFBool check)
2351 {
2352     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2353     if (result.good())
2354         result = AuthorizationEquipmentCertificationNumber.putOFStringArray(value);
2355     return result;
2356 }
2357 
2358 
setClinicalTrialCoordinatingCenterName(const OFString & value,const OFBool check)2359 OFCondition DRTIonBeamsTreatmentRecordIOD::setClinicalTrialCoordinatingCenterName(const OFString &value, const OFBool check)
2360 {
2361     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2362     if (result.good())
2363         result = ClinicalTrialCoordinatingCenterName.putOFStringArray(value);
2364     return result;
2365 }
2366 
2367 
setClinicalTrialProtocolEthicsCommitteeApprovalNumber(const OFString & value,const OFBool check)2368 OFCondition DRTIonBeamsTreatmentRecordIOD::setClinicalTrialProtocolEthicsCommitteeApprovalNumber(const OFString &value, const OFBool check)
2369 {
2370     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2371     if (result.good())
2372         result = ClinicalTrialProtocolEthicsCommitteeApprovalNumber.putOFStringArray(value);
2373     return result;
2374 }
2375 
2376 
setClinicalTrialProtocolEthicsCommitteeName(const OFString & value,const OFBool check)2377 OFCondition DRTIonBeamsTreatmentRecordIOD::setClinicalTrialProtocolEthicsCommitteeName(const OFString &value, const OFBool check)
2378 {
2379     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2380     if (result.good())
2381         result = ClinicalTrialProtocolEthicsCommitteeName.putOFStringArray(value);
2382     return result;
2383 }
2384 
2385 
setClinicalTrialProtocolID(const OFString & value,const OFBool check)2386 OFCondition DRTIonBeamsTreatmentRecordIOD::setClinicalTrialProtocolID(const OFString &value, const OFBool check)
2387 {
2388     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2389     if (result.good())
2390         result = ClinicalTrialProtocolID.putOFStringArray(value);
2391     return result;
2392 }
2393 
2394 
setClinicalTrialProtocolName(const OFString & value,const OFBool check)2395 OFCondition DRTIonBeamsTreatmentRecordIOD::setClinicalTrialProtocolName(const OFString &value, const OFBool check)
2396 {
2397     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2398     if (result.good())
2399         result = ClinicalTrialProtocolName.putOFStringArray(value);
2400     return result;
2401 }
2402 
2403 
setClinicalTrialSeriesDescription(const OFString & value,const OFBool check)2404 OFCondition DRTIonBeamsTreatmentRecordIOD::setClinicalTrialSeriesDescription(const OFString &value, const OFBool check)
2405 {
2406     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2407     if (result.good())
2408         result = ClinicalTrialSeriesDescription.putOFStringArray(value);
2409     return result;
2410 }
2411 
2412 
setClinicalTrialSeriesID(const OFString & value,const OFBool check)2413 OFCondition DRTIonBeamsTreatmentRecordIOD::setClinicalTrialSeriesID(const OFString &value, const OFBool check)
2414 {
2415     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2416     if (result.good())
2417         result = ClinicalTrialSeriesID.putOFStringArray(value);
2418     return result;
2419 }
2420 
2421 
setClinicalTrialSiteID(const OFString & value,const OFBool check)2422 OFCondition DRTIonBeamsTreatmentRecordIOD::setClinicalTrialSiteID(const OFString &value, const OFBool check)
2423 {
2424     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2425     if (result.good())
2426         result = ClinicalTrialSiteID.putOFStringArray(value);
2427     return result;
2428 }
2429 
2430 
setClinicalTrialSiteName(const OFString & value,const OFBool check)2431 OFCondition DRTIonBeamsTreatmentRecordIOD::setClinicalTrialSiteName(const OFString &value, const OFBool check)
2432 {
2433     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2434     if (result.good())
2435         result = ClinicalTrialSiteName.putOFStringArray(value);
2436     return result;
2437 }
2438 
2439 
setClinicalTrialSponsorName(const OFString & value,const OFBool check)2440 OFCondition DRTIonBeamsTreatmentRecordIOD::setClinicalTrialSponsorName(const OFString &value, const OFBool check)
2441 {
2442     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2443     if (result.good())
2444         result = ClinicalTrialSponsorName.putOFStringArray(value);
2445     return result;
2446 }
2447 
2448 
setClinicalTrialSubjectID(const OFString & value,const OFBool check)2449 OFCondition DRTIonBeamsTreatmentRecordIOD::setClinicalTrialSubjectID(const OFString &value, const OFBool check)
2450 {
2451     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2452     if (result.good())
2453         result = ClinicalTrialSubjectID.putOFStringArray(value);
2454     return result;
2455 }
2456 
2457 
setClinicalTrialSubjectReadingID(const OFString & value,const OFBool check)2458 OFCondition DRTIonBeamsTreatmentRecordIOD::setClinicalTrialSubjectReadingID(const OFString &value, const OFBool check)
2459 {
2460     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2461     if (result.good())
2462         result = ClinicalTrialSubjectReadingID.putOFStringArray(value);
2463     return result;
2464 }
2465 
2466 
setClinicalTrialTimePointDescription(const OFString & value,const OFBool check)2467 OFCondition DRTIonBeamsTreatmentRecordIOD::setClinicalTrialTimePointDescription(const OFString &value, const OFBool check)
2468 {
2469     OFCondition result = (check) ? DcmShortText::checkStringValue(value) : EC_Normal;
2470     if (result.good())
2471         result = ClinicalTrialTimePointDescription.putOFStringArray(value);
2472     return result;
2473 }
2474 
2475 
setClinicalTrialTimePointID(const OFString & value,const OFBool check)2476 OFCondition DRTIonBeamsTreatmentRecordIOD::setClinicalTrialTimePointID(const OFString &value, const OFBool check)
2477 {
2478     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2479     if (result.good())
2480         result = ClinicalTrialTimePointID.putOFStringArray(value);
2481     return result;
2482 }
2483 
2484 
setCommentsOnThePerformedProcedureStep(const OFString & value,const OFBool check)2485 OFCondition DRTIonBeamsTreatmentRecordIOD::setCommentsOnThePerformedProcedureStep(const OFString &value, const OFBool check)
2486 {
2487     OFCondition result = (check) ? DcmShortText::checkStringValue(value) : EC_Normal;
2488     if (result.good())
2489         result = CommentsOnThePerformedProcedureStep.putOFStringArray(value);
2490     return result;
2491 }
2492 
2493 
setConsultingPhysicianName(const OFString & value,const OFBool check)2494 OFCondition DRTIonBeamsTreatmentRecordIOD::setConsultingPhysicianName(const OFString &value, const OFBool check)
2495 {
2496     OFCondition result = (check) ? DcmPersonName::checkStringValue(value, "1-n") : EC_Normal;
2497     if (result.good())
2498         result = ConsultingPhysicianName.putOFStringArray(value);
2499     return result;
2500 }
2501 
2502 
setContentQualification(const OFString & value,const OFBool check)2503 OFCondition DRTIonBeamsTreatmentRecordIOD::setContentQualification(const OFString &value, const OFBool check)
2504 {
2505     OFCondition result = (check) ? DcmCodeString::checkStringValue(value, "1") : EC_Normal;
2506     if (result.good())
2507         result = ContentQualification.putOFStringArray(value);
2508     return result;
2509 }
2510 
2511 
setCurrentTreatmentStatus(const OFString & value,const OFBool check)2512 OFCondition DRTIonBeamsTreatmentRecordIOD::setCurrentTreatmentStatus(const OFString &value, const OFBool check)
2513 {
2514     OFCondition result = (check) ? DcmCodeString::checkStringValue(value, "1") : EC_Normal;
2515     if (result.good())
2516         result = CurrentTreatmentStatus.putOFStringArray(value);
2517     return result;
2518 }
2519 
2520 
setDateOfLastCalibration(const OFString & value,const OFBool check)2521 OFCondition DRTIonBeamsTreatmentRecordIOD::setDateOfLastCalibration(const OFString &value, const OFBool check)
2522 {
2523     OFCondition result = (check) ? DcmDate::checkStringValue(value, "1-n") : EC_Normal;
2524     if (result.good())
2525         result = DateOfLastCalibration.putOFStringArray(value);
2526     return result;
2527 }
2528 
2529 
setDeidentificationMethod(const OFString & value,const OFBool check)2530 OFCondition DRTIonBeamsTreatmentRecordIOD::setDeidentificationMethod(const OFString &value, const OFBool check)
2531 {
2532     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1-n") : EC_Normal;
2533     if (result.good())
2534         result = DeidentificationMethod.putOFStringArray(value);
2535     return result;
2536 }
2537 
2538 
setDerivationDescription(const OFString & value,const OFBool check)2539 OFCondition DRTIonBeamsTreatmentRecordIOD::setDerivationDescription(const OFString &value, const OFBool check)
2540 {
2541     OFCondition result = (check) ? DcmShortText::checkStringValue(value) : EC_Normal;
2542     if (result.good())
2543         result = DerivationDescription.putOFStringArray(value);
2544     return result;
2545 }
2546 
2547 
setDeviceSerialNumber(const OFString & value,const OFBool check)2548 OFCondition DRTIonBeamsTreatmentRecordIOD::setDeviceSerialNumber(const OFString &value, const OFBool check)
2549 {
2550     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2551     if (result.good())
2552         result = DeviceSerialNumber.putOFStringArray(value);
2553     return result;
2554 }
2555 
2556 
setEthnicGroup(const OFString & value,const OFBool check)2557 OFCondition DRTIonBeamsTreatmentRecordIOD::setEthnicGroup(const OFString &value, const OFBool check)
2558 {
2559     OFCondition result = (check) ? DcmShortString::checkStringValue(value, "1") : EC_Normal;
2560     if (result.good())
2561         result = EthnicGroup.putOFStringArray(value);
2562     return result;
2563 }
2564 
2565 
setFirstTreatmentDate(const OFString & value,const OFBool check)2566 OFCondition DRTIonBeamsTreatmentRecordIOD::setFirstTreatmentDate(const OFString &value, const OFBool check)
2567 {
2568     OFCondition result = (check) ? DcmDate::checkStringValue(value, "1") : EC_Normal;
2569     if (result.good())
2570         result = FirstTreatmentDate.putOFStringArray(value);
2571     return result;
2572 }
2573 
2574 
setGantryID(const OFString & value,const OFBool check)2575 OFCondition DRTIonBeamsTreatmentRecordIOD::setGantryID(const OFString &value, const OFBool check)
2576 {
2577     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2578     if (result.good())
2579         result = GantryID.putOFStringArray(value);
2580     return result;
2581 }
2582 
2583 
setInstanceCoercionDateTime(const OFString & value,const OFBool check)2584 OFCondition DRTIonBeamsTreatmentRecordIOD::setInstanceCoercionDateTime(const OFString &value, const OFBool check)
2585 {
2586     OFCondition result = (check) ? DcmDateTime::checkStringValue(value, "1") : EC_Normal;
2587     if (result.good())
2588         result = InstanceCoercionDateTime.putOFStringArray(value);
2589     return result;
2590 }
2591 
2592 
setInstanceCreationDate(const OFString & value,const OFBool check)2593 OFCondition DRTIonBeamsTreatmentRecordIOD::setInstanceCreationDate(const OFString &value, const OFBool check)
2594 {
2595     OFCondition result = (check) ? DcmDate::checkStringValue(value, "1") : EC_Normal;
2596     if (result.good())
2597         result = InstanceCreationDate.putOFStringArray(value);
2598     return result;
2599 }
2600 
2601 
setInstanceCreationTime(const OFString & value,const OFBool check)2602 OFCondition DRTIonBeamsTreatmentRecordIOD::setInstanceCreationTime(const OFString &value, const OFBool check)
2603 {
2604     OFCondition result = (check) ? DcmTime::checkStringValue(value, "1") : EC_Normal;
2605     if (result.good())
2606         result = InstanceCreationTime.putOFStringArray(value);
2607     return result;
2608 }
2609 
2610 
setInstanceCreatorUID(const OFString & value,const OFBool check)2611 OFCondition DRTIonBeamsTreatmentRecordIOD::setInstanceCreatorUID(const OFString &value, const OFBool check)
2612 {
2613     OFCondition result = (check) ? DcmUniqueIdentifier::checkStringValue(value, "1") : EC_Normal;
2614     if (result.good())
2615         result = InstanceCreatorUID.putOFStringArray(value);
2616     return result;
2617 }
2618 
2619 
setInstanceNumber(const OFString & value,const OFBool check)2620 OFCondition DRTIonBeamsTreatmentRecordIOD::setInstanceNumber(const OFString &value, const OFBool check)
2621 {
2622     OFCondition result = (check) ? DcmIntegerString::checkStringValue(value, "1") : EC_Normal;
2623     if (result.good())
2624         result = InstanceNumber.putOFStringArray(value);
2625     return result;
2626 }
2627 
2628 
setInstitutionAddress(const OFString & value,const OFBool check)2629 OFCondition DRTIonBeamsTreatmentRecordIOD::setInstitutionAddress(const OFString &value, const OFBool check)
2630 {
2631     OFCondition result = (check) ? DcmShortText::checkStringValue(value) : EC_Normal;
2632     if (result.good())
2633         result = InstitutionAddress.putOFStringArray(value);
2634     return result;
2635 }
2636 
2637 
setInstitutionName(const OFString & value,const OFBool check)2638 OFCondition DRTIonBeamsTreatmentRecordIOD::setInstitutionName(const OFString &value, const OFBool check)
2639 {
2640     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2641     if (result.good())
2642         result = InstitutionName.putOFStringArray(value);
2643     return result;
2644 }
2645 
2646 
setInstitutionalDepartmentName(const OFString & value,const OFBool check)2647 OFCondition DRTIonBeamsTreatmentRecordIOD::setInstitutionalDepartmentName(const OFString &value, const OFBool check)
2648 {
2649     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2650     if (result.good())
2651         result = InstitutionalDepartmentName.putOFStringArray(value);
2652     return result;
2653 }
2654 
2655 
setIssuerOfPatientID(const OFString & value,const OFBool check)2656 OFCondition DRTIonBeamsTreatmentRecordIOD::setIssuerOfPatientID(const OFString &value, const OFBool check)
2657 {
2658     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2659     if (result.good())
2660         result = IssuerOfPatientID.putOFStringArray(value);
2661     return result;
2662 }
2663 
2664 
setLastMenstrualDate(const OFString & value,const OFBool check)2665 OFCondition DRTIonBeamsTreatmentRecordIOD::setLastMenstrualDate(const OFString &value, const OFBool check)
2666 {
2667     OFCondition result = (check) ? DcmDate::checkStringValue(value, "1") : EC_Normal;
2668     if (result.good())
2669         result = LastMenstrualDate.putOFStringArray(value);
2670     return result;
2671 }
2672 
2673 
setLongitudinalTemporalEventType(const OFString & value,const OFBool check)2674 OFCondition DRTIonBeamsTreatmentRecordIOD::setLongitudinalTemporalEventType(const OFString &value, const OFBool check)
2675 {
2676     OFCondition result = (check) ? DcmCodeString::checkStringValue(value, "1") : EC_Normal;
2677     if (result.good())
2678         result = LongitudinalTemporalEventType.putOFStringArray(value);
2679     return result;
2680 }
2681 
2682 
setLongitudinalTemporalInformationModified(const OFString & value,const OFBool check)2683 OFCondition DRTIonBeamsTreatmentRecordIOD::setLongitudinalTemporalInformationModified(const OFString &value, const OFBool check)
2684 {
2685     OFCondition result = (check) ? DcmCodeString::checkStringValue(value, "1") : EC_Normal;
2686     if (result.good())
2687         result = LongitudinalTemporalInformationModified.putOFStringArray(value);
2688     return result;
2689 }
2690 
2691 
setLongitudinalTemporalOffsetFromEvent(const Float64 value,const unsigned long pos)2692 OFCondition DRTIonBeamsTreatmentRecordIOD::setLongitudinalTemporalOffsetFromEvent(const Float64 value, const unsigned long pos)
2693 {
2694     return LongitudinalTemporalOffsetFromEvent.putFloat64(value, pos);
2695 }
2696 
2697 
setManufacturer(const OFString & value,const OFBool check)2698 OFCondition DRTIonBeamsTreatmentRecordIOD::setManufacturer(const OFString &value, const OFBool check)
2699 {
2700     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2701     if (result.good())
2702         result = Manufacturer.putOFStringArray(value);
2703     return result;
2704 }
2705 
2706 
setManufacturerModelName(const OFString & value,const OFBool check)2707 OFCondition DRTIonBeamsTreatmentRecordIOD::setManufacturerModelName(const OFString &value, const OFBool check)
2708 {
2709     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2710     if (result.good())
2711         result = ManufacturerModelName.putOFStringArray(value);
2712     return result;
2713 }
2714 
2715 
setMeasuredAPDimension(const OFString & value,const OFBool check)2716 OFCondition DRTIonBeamsTreatmentRecordIOD::setMeasuredAPDimension(const OFString &value, const OFBool check)
2717 {
2718     OFCondition result = (check) ? DcmDecimalString::checkStringValue(value, "1") : EC_Normal;
2719     if (result.good())
2720         result = MeasuredAPDimension.putOFStringArray(value);
2721     return result;
2722 }
2723 
2724 
setMeasuredLateralDimension(const OFString & value,const OFBool check)2725 OFCondition DRTIonBeamsTreatmentRecordIOD::setMeasuredLateralDimension(const OFString &value, const OFBool check)
2726 {
2727     OFCondition result = (check) ? DcmDecimalString::checkStringValue(value, "1") : EC_Normal;
2728     if (result.good())
2729         result = MeasuredLateralDimension.putOFStringArray(value);
2730     return result;
2731 }
2732 
2733 
setMedicalAlerts(const OFString & value,const OFBool check)2734 OFCondition DRTIonBeamsTreatmentRecordIOD::setMedicalAlerts(const OFString &value, const OFBool check)
2735 {
2736     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1-n") : EC_Normal;
2737     if (result.good())
2738         result = MedicalAlerts.putOFStringArray(value);
2739     return result;
2740 }
2741 
2742 
setModality(const OFString & value,const OFBool check)2743 OFCondition DRTIonBeamsTreatmentRecordIOD::setModality(const OFString &value, const OFBool check)
2744 {
2745     OFCondition result = (check) ? DcmCodeString::checkStringValue(value, "1") : EC_Normal;
2746     if (result.good())
2747         result = Modality.putOFStringArray(value);
2748     return result;
2749 }
2750 
2751 
setMostRecentTreatmentDate(const OFString & value,const OFBool check)2752 OFCondition DRTIonBeamsTreatmentRecordIOD::setMostRecentTreatmentDate(const OFString &value, const OFBool check)
2753 {
2754     OFCondition result = (check) ? DcmDate::checkStringValue(value, "1") : EC_Normal;
2755     if (result.good())
2756         result = MostRecentTreatmentDate.putOFStringArray(value);
2757     return result;
2758 }
2759 
2760 
setNameOfPhysiciansReadingStudy(const OFString & value,const OFBool check)2761 OFCondition DRTIonBeamsTreatmentRecordIOD::setNameOfPhysiciansReadingStudy(const OFString &value, const OFBool check)
2762 {
2763     OFCondition result = (check) ? DcmPersonName::checkStringValue(value, "1-n") : EC_Normal;
2764     if (result.good())
2765         result = NameOfPhysiciansReadingStudy.putOFStringArray(value);
2766     return result;
2767 }
2768 
2769 
setNumberOfFractionsPlanned(const OFString & value,const OFBool check)2770 OFCondition DRTIonBeamsTreatmentRecordIOD::setNumberOfFractionsPlanned(const OFString &value, const OFBool check)
2771 {
2772     OFCondition result = (check) ? DcmIntegerString::checkStringValue(value, "1") : EC_Normal;
2773     if (result.good())
2774         result = NumberOfFractionsPlanned.putOFStringArray(value);
2775     return result;
2776 }
2777 
2778 
setOccupation(const OFString & value,const OFBool check)2779 OFCondition DRTIonBeamsTreatmentRecordIOD::setOccupation(const OFString &value, const OFBool check)
2780 {
2781     OFCondition result = (check) ? DcmShortString::checkStringValue(value, "1") : EC_Normal;
2782     if (result.good())
2783         result = Occupation.putOFStringArray(value);
2784     return result;
2785 }
2786 
2787 
setOperatorsName(const OFString & value,const OFBool check)2788 OFCondition DRTIonBeamsTreatmentRecordIOD::setOperatorsName(const OFString &value, const OFBool check)
2789 {
2790     OFCondition result = (check) ? DcmPersonName::checkStringValue(value, "1-n") : EC_Normal;
2791     if (result.good())
2792         result = OperatorsName.putOFStringArray(value);
2793     return result;
2794 }
2795 
2796 
setOriginalSpecializedSOPClassUID(const OFString & value,const OFBool check)2797 OFCondition DRTIonBeamsTreatmentRecordIOD::setOriginalSpecializedSOPClassUID(const OFString &value, const OFBool check)
2798 {
2799     OFCondition result = (check) ? DcmUniqueIdentifier::checkStringValue(value, "1") : EC_Normal;
2800     if (result.good())
2801         result = OriginalSpecializedSOPClassUID.putOFStringArray(value);
2802     return result;
2803 }
2804 
2805 
setOtherPatientNames(const OFString & value,const OFBool check)2806 OFCondition DRTIonBeamsTreatmentRecordIOD::setOtherPatientNames(const OFString &value, const OFBool check)
2807 {
2808     OFCondition result = (check) ? DcmPersonName::checkStringValue(value, "1-n") : EC_Normal;
2809     if (result.good())
2810         result = OtherPatientNames.putOFStringArray(value);
2811     return result;
2812 }
2813 
2814 
setPatientAge(const OFString & value,const OFBool check)2815 OFCondition DRTIonBeamsTreatmentRecordIOD::setPatientAge(const OFString &value, const OFBool check)
2816 {
2817     OFCondition result = (check) ? DcmAgeString::checkStringValue(value, "1") : EC_Normal;
2818     if (result.good())
2819         result = PatientAge.putOFStringArray(value);
2820     return result;
2821 }
2822 
2823 
setPatientAlternativeCalendar(const OFString & value,const OFBool check)2824 OFCondition DRTIonBeamsTreatmentRecordIOD::setPatientAlternativeCalendar(const OFString &value, const OFBool check)
2825 {
2826     OFCondition result = (check) ? DcmCodeString::checkStringValue(value, "1") : EC_Normal;
2827     if (result.good())
2828         result = PatientAlternativeCalendar.putOFStringArray(value);
2829     return result;
2830 }
2831 
2832 
setPatientBirthDate(const OFString & value,const OFBool check)2833 OFCondition DRTIonBeamsTreatmentRecordIOD::setPatientBirthDate(const OFString &value, const OFBool check)
2834 {
2835     OFCondition result = (check) ? DcmDate::checkStringValue(value, "1") : EC_Normal;
2836     if (result.good())
2837         result = PatientBirthDate.putOFStringArray(value);
2838     return result;
2839 }
2840 
2841 
setPatientBirthDateInAlternativeCalendar(const OFString & value,const OFBool check)2842 OFCondition DRTIonBeamsTreatmentRecordIOD::setPatientBirthDateInAlternativeCalendar(const OFString &value, const OFBool check)
2843 {
2844     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2845     if (result.good())
2846         result = PatientBirthDateInAlternativeCalendar.putOFStringArray(value);
2847     return result;
2848 }
2849 
2850 
setPatientBirthTime(const OFString & value,const OFBool check)2851 OFCondition DRTIonBeamsTreatmentRecordIOD::setPatientBirthTime(const OFString &value, const OFBool check)
2852 {
2853     OFCondition result = (check) ? DcmTime::checkStringValue(value, "1") : EC_Normal;
2854     if (result.good())
2855         result = PatientBirthTime.putOFStringArray(value);
2856     return result;
2857 }
2858 
2859 
setPatientBodyMassIndex(const OFString & value,const OFBool check)2860 OFCondition DRTIonBeamsTreatmentRecordIOD::setPatientBodyMassIndex(const OFString &value, const OFBool check)
2861 {
2862     OFCondition result = (check) ? DcmDecimalString::checkStringValue(value, "1") : EC_Normal;
2863     if (result.good())
2864         result = PatientBodyMassIndex.putOFStringArray(value);
2865     return result;
2866 }
2867 
2868 
setPatientBreedDescription(const OFString & value,const OFBool check)2869 OFCondition DRTIonBeamsTreatmentRecordIOD::setPatientBreedDescription(const OFString &value, const OFBool check)
2870 {
2871     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2872     if (result.good())
2873         result = PatientBreedDescription.putOFStringArray(value);
2874     return result;
2875 }
2876 
2877 
setPatientComments(const OFString & value,const OFBool check)2878 OFCondition DRTIonBeamsTreatmentRecordIOD::setPatientComments(const OFString &value, const OFBool check)
2879 {
2880     OFCondition result = (check) ? DcmLongText::checkStringValue(value) : EC_Normal;
2881     if (result.good())
2882         result = PatientComments.putOFStringArray(value);
2883     return result;
2884 }
2885 
2886 
setPatientDeathDateInAlternativeCalendar(const OFString & value,const OFBool check)2887 OFCondition DRTIonBeamsTreatmentRecordIOD::setPatientDeathDateInAlternativeCalendar(const OFString &value, const OFBool check)
2888 {
2889     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2890     if (result.good())
2891         result = PatientDeathDateInAlternativeCalendar.putOFStringArray(value);
2892     return result;
2893 }
2894 
2895 
setPatientID(const OFString & value,const OFBool check)2896 OFCondition DRTIonBeamsTreatmentRecordIOD::setPatientID(const OFString &value, const OFBool check)
2897 {
2898     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2899     if (result.good())
2900         result = PatientID.putOFStringArray(value);
2901     return result;
2902 }
2903 
2904 
setPatientIdentityRemoved(const OFString & value,const OFBool check)2905 OFCondition DRTIonBeamsTreatmentRecordIOD::setPatientIdentityRemoved(const OFString &value, const OFBool check)
2906 {
2907     OFCondition result = (check) ? DcmCodeString::checkStringValue(value, "1") : EC_Normal;
2908     if (result.good())
2909         result = PatientIdentityRemoved.putOFStringArray(value);
2910     return result;
2911 }
2912 
2913 
setPatientName(const OFString & value,const OFBool check)2914 OFCondition DRTIonBeamsTreatmentRecordIOD::setPatientName(const OFString &value, const OFBool check)
2915 {
2916     OFCondition result = (check) ? DcmPersonName::checkStringValue(value, "1") : EC_Normal;
2917     if (result.good())
2918         result = PatientName.putOFStringArray(value);
2919     return result;
2920 }
2921 
2922 
setPatientSex(const OFString & value,const OFBool check)2923 OFCondition DRTIonBeamsTreatmentRecordIOD::setPatientSex(const OFString &value, const OFBool check)
2924 {
2925     OFCondition result = (check) ? DcmCodeString::checkStringValue(value, "1") : EC_Normal;
2926     if (result.good())
2927         result = PatientSex.putOFStringArray(value);
2928     return result;
2929 }
2930 
2931 
setPatientSexNeutered(const OFString & value,const OFBool check)2932 OFCondition DRTIonBeamsTreatmentRecordIOD::setPatientSexNeutered(const OFString &value, const OFBool check)
2933 {
2934     OFCondition result = (check) ? DcmCodeString::checkStringValue(value, "1") : EC_Normal;
2935     if (result.good())
2936         result = PatientSexNeutered.putOFStringArray(value);
2937     return result;
2938 }
2939 
2940 
setPatientSize(const OFString & value,const OFBool check)2941 OFCondition DRTIonBeamsTreatmentRecordIOD::setPatientSize(const OFString &value, const OFBool check)
2942 {
2943     OFCondition result = (check) ? DcmDecimalString::checkStringValue(value, "1") : EC_Normal;
2944     if (result.good())
2945         result = PatientSize.putOFStringArray(value);
2946     return result;
2947 }
2948 
2949 
setPatientSpeciesDescription(const OFString & value,const OFBool check)2950 OFCondition DRTIonBeamsTreatmentRecordIOD::setPatientSpeciesDescription(const OFString &value, const OFBool check)
2951 {
2952     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2953     if (result.good())
2954         result = PatientSpeciesDescription.putOFStringArray(value);
2955     return result;
2956 }
2957 
2958 
setPatientState(const OFString & value,const OFBool check)2959 OFCondition DRTIonBeamsTreatmentRecordIOD::setPatientState(const OFString &value, const OFBool check)
2960 {
2961     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2962     if (result.good())
2963         result = PatientState.putOFStringArray(value);
2964     return result;
2965 }
2966 
2967 
setPatientWeight(const OFString & value,const OFBool check)2968 OFCondition DRTIonBeamsTreatmentRecordIOD::setPatientWeight(const OFString &value, const OFBool check)
2969 {
2970     OFCondition result = (check) ? DcmDecimalString::checkStringValue(value, "1") : EC_Normal;
2971     if (result.good())
2972         result = PatientWeight.putOFStringArray(value);
2973     return result;
2974 }
2975 
2976 
setPerformedProcedureStepDescription(const OFString & value,const OFBool check)2977 OFCondition DRTIonBeamsTreatmentRecordIOD::setPerformedProcedureStepDescription(const OFString &value, const OFBool check)
2978 {
2979     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
2980     if (result.good())
2981         result = PerformedProcedureStepDescription.putOFStringArray(value);
2982     return result;
2983 }
2984 
2985 
setPerformedProcedureStepEndDate(const OFString & value,const OFBool check)2986 OFCondition DRTIonBeamsTreatmentRecordIOD::setPerformedProcedureStepEndDate(const OFString &value, const OFBool check)
2987 {
2988     OFCondition result = (check) ? DcmDate::checkStringValue(value, "1") : EC_Normal;
2989     if (result.good())
2990         result = PerformedProcedureStepEndDate.putOFStringArray(value);
2991     return result;
2992 }
2993 
2994 
setPerformedProcedureStepEndTime(const OFString & value,const OFBool check)2995 OFCondition DRTIonBeamsTreatmentRecordIOD::setPerformedProcedureStepEndTime(const OFString &value, const OFBool check)
2996 {
2997     OFCondition result = (check) ? DcmTime::checkStringValue(value, "1") : EC_Normal;
2998     if (result.good())
2999         result = PerformedProcedureStepEndTime.putOFStringArray(value);
3000     return result;
3001 }
3002 
3003 
setPerformedProcedureStepID(const OFString & value,const OFBool check)3004 OFCondition DRTIonBeamsTreatmentRecordIOD::setPerformedProcedureStepID(const OFString &value, const OFBool check)
3005 {
3006     OFCondition result = (check) ? DcmShortString::checkStringValue(value, "1") : EC_Normal;
3007     if (result.good())
3008         result = PerformedProcedureStepID.putOFStringArray(value);
3009     return result;
3010 }
3011 
3012 
setPerformedProcedureStepStartDate(const OFString & value,const OFBool check)3013 OFCondition DRTIonBeamsTreatmentRecordIOD::setPerformedProcedureStepStartDate(const OFString &value, const OFBool check)
3014 {
3015     OFCondition result = (check) ? DcmDate::checkStringValue(value, "1") : EC_Normal;
3016     if (result.good())
3017         result = PerformedProcedureStepStartDate.putOFStringArray(value);
3018     return result;
3019 }
3020 
3021 
setPerformedProcedureStepStartTime(const OFString & value,const OFBool check)3022 OFCondition DRTIonBeamsTreatmentRecordIOD::setPerformedProcedureStepStartTime(const OFString &value, const OFBool check)
3023 {
3024     OFCondition result = (check) ? DcmTime::checkStringValue(value, "1") : EC_Normal;
3025     if (result.good())
3026         result = PerformedProcedureStepStartTime.putOFStringArray(value);
3027     return result;
3028 }
3029 
3030 
setPhysiciansOfRecord(const OFString & value,const OFBool check)3031 OFCondition DRTIonBeamsTreatmentRecordIOD::setPhysiciansOfRecord(const OFString &value, const OFBool check)
3032 {
3033     OFCondition result = (check) ? DcmPersonName::checkStringValue(value, "1-n") : EC_Normal;
3034     if (result.good())
3035         result = PhysiciansOfRecord.putOFStringArray(value);
3036     return result;
3037 }
3038 
3039 
setPixelPaddingValue(const Uint16 value,const unsigned long pos)3040 OFCondition DRTIonBeamsTreatmentRecordIOD::setPixelPaddingValue(const Uint16 value, const unsigned long pos)
3041 {
3042     return PixelPaddingValue.putUint16(value, pos);
3043 }
3044 
3045 
setPregnancyStatus(const Uint16 value,const unsigned long pos)3046 OFCondition DRTIonBeamsTreatmentRecordIOD::setPregnancyStatus(const Uint16 value, const unsigned long pos)
3047 {
3048     return PregnancyStatus.putUint16(value, pos);
3049 }
3050 
3051 
setPrimaryDosimeterUnit(const OFString & value,const OFBool check)3052 OFCondition DRTIonBeamsTreatmentRecordIOD::setPrimaryDosimeterUnit(const OFString &value, const OFBool check)
3053 {
3054     OFCondition result = (check) ? DcmCodeString::checkStringValue(value, "1") : EC_Normal;
3055     if (result.good())
3056         result = PrimaryDosimeterUnit.putOFStringArray(value);
3057     return result;
3058 }
3059 
3060 
setQualityControlSubject(const OFString & value,const OFBool check)3061 OFCondition DRTIonBeamsTreatmentRecordIOD::setQualityControlSubject(const OFString &value, const OFBool check)
3062 {
3063     OFCondition result = (check) ? DcmCodeString::checkStringValue(value, "1") : EC_Normal;
3064     if (result.good())
3065         result = QualityControlSubject.putOFStringArray(value);
3066     return result;
3067 }
3068 
3069 
setQueryRetrieveView(const OFString & value,const OFBool check)3070 OFCondition DRTIonBeamsTreatmentRecordIOD::setQueryRetrieveView(const OFString &value, const OFBool check)
3071 {
3072     OFCondition result = (check) ? DcmCodeString::checkStringValue(value, "1") : EC_Normal;
3073     if (result.good())
3074         result = QueryRetrieveView.putOFStringArray(value);
3075     return result;
3076 }
3077 
3078 
setReferencedFractionGroupNumber(const OFString & value,const OFBool check)3079 OFCondition DRTIonBeamsTreatmentRecordIOD::setReferencedFractionGroupNumber(const OFString &value, const OFBool check)
3080 {
3081     OFCondition result = (check) ? DcmIntegerString::checkStringValue(value, "1") : EC_Normal;
3082     if (result.good())
3083         result = ReferencedFractionGroupNumber.putOFStringArray(value);
3084     return result;
3085 }
3086 
3087 
setReferringPhysicianName(const OFString & value,const OFBool check)3088 OFCondition DRTIonBeamsTreatmentRecordIOD::setReferringPhysicianName(const OFString &value, const OFBool check)
3089 {
3090     OFCondition result = (check) ? DcmPersonName::checkStringValue(value, "1") : EC_Normal;
3091     if (result.good())
3092         result = ReferringPhysicianName.putOFStringArray(value);
3093     return result;
3094 }
3095 
3096 
setRelatedGeneralSOPClassUID(const OFString & value,const OFBool check)3097 OFCondition DRTIonBeamsTreatmentRecordIOD::setRelatedGeneralSOPClassUID(const OFString &value, const OFBool check)
3098 {
3099     OFCondition result = (check) ? DcmUniqueIdentifier::checkStringValue(value, "1-n") : EC_Normal;
3100     if (result.good())
3101         result = RelatedGeneralSOPClassUID.putOFStringArray(value);
3102     return result;
3103 }
3104 
3105 
setResponsibleOrganization(const OFString & value,const OFBool check)3106 OFCondition DRTIonBeamsTreatmentRecordIOD::setResponsibleOrganization(const OFString &value, const OFBool check)
3107 {
3108     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
3109     if (result.good())
3110         result = ResponsibleOrganization.putOFStringArray(value);
3111     return result;
3112 }
3113 
3114 
setResponsiblePerson(const OFString & value,const OFBool check)3115 OFCondition DRTIonBeamsTreatmentRecordIOD::setResponsiblePerson(const OFString &value, const OFBool check)
3116 {
3117     OFCondition result = (check) ? DcmPersonName::checkStringValue(value, "1") : EC_Normal;
3118     if (result.good())
3119         result = ResponsiblePerson.putOFStringArray(value);
3120     return result;
3121 }
3122 
3123 
setResponsiblePersonRole(const OFString & value,const OFBool check)3124 OFCondition DRTIonBeamsTreatmentRecordIOD::setResponsiblePersonRole(const OFString &value, const OFBool check)
3125 {
3126     OFCondition result = (check) ? DcmCodeString::checkStringValue(value, "1") : EC_Normal;
3127     if (result.good())
3128         result = ResponsiblePersonRole.putOFStringArray(value);
3129     return result;
3130 }
3131 
3132 
setSOPAuthorizationComment(const OFString & value,const OFBool check)3133 OFCondition DRTIonBeamsTreatmentRecordIOD::setSOPAuthorizationComment(const OFString &value, const OFBool check)
3134 {
3135     OFCondition result = (check) ? DcmLongText::checkStringValue(value) : EC_Normal;
3136     if (result.good())
3137         result = SOPAuthorizationComment.putOFStringArray(value);
3138     return result;
3139 }
3140 
3141 
setSOPAuthorizationDateTime(const OFString & value,const OFBool check)3142 OFCondition DRTIonBeamsTreatmentRecordIOD::setSOPAuthorizationDateTime(const OFString &value, const OFBool check)
3143 {
3144     OFCondition result = (check) ? DcmDateTime::checkStringValue(value, "1") : EC_Normal;
3145     if (result.good())
3146         result = SOPAuthorizationDateTime.putOFStringArray(value);
3147     return result;
3148 }
3149 
3150 
setSOPClassUID(const OFString & value,const OFBool check)3151 OFCondition DRTIonBeamsTreatmentRecordIOD::setSOPClassUID(const OFString &value, const OFBool check)
3152 {
3153     OFCondition result = (check) ? DcmUniqueIdentifier::checkStringValue(value, "1") : EC_Normal;
3154     if (result.good())
3155         result = SOPClassUID.putOFStringArray(value);
3156     return result;
3157 }
3158 
3159 
setSOPInstanceStatus(const OFString & value,const OFBool check)3160 OFCondition DRTIonBeamsTreatmentRecordIOD::setSOPInstanceStatus(const OFString &value, const OFBool check)
3161 {
3162     OFCondition result = (check) ? DcmCodeString::checkStringValue(value, "1") : EC_Normal;
3163     if (result.good())
3164         result = SOPInstanceStatus.putOFStringArray(value);
3165     return result;
3166 }
3167 
3168 
setSOPInstanceUID(const OFString & value,const OFBool check)3169 OFCondition DRTIonBeamsTreatmentRecordIOD::setSOPInstanceUID(const OFString &value, const OFBool check)
3170 {
3171     OFCondition result = (check) ? DcmUniqueIdentifier::checkStringValue(value, "1") : EC_Normal;
3172     if (result.good())
3173         result = SOPInstanceUID.putOFStringArray(value);
3174     return result;
3175 }
3176 
3177 
setSeriesDate(const OFString & value,const OFBool check)3178 OFCondition DRTIonBeamsTreatmentRecordIOD::setSeriesDate(const OFString &value, const OFBool check)
3179 {
3180     OFCondition result = (check) ? DcmDate::checkStringValue(value, "1") : EC_Normal;
3181     if (result.good())
3182         result = SeriesDate.putOFStringArray(value);
3183     return result;
3184 }
3185 
3186 
setSeriesDescription(const OFString & value,const OFBool check)3187 OFCondition DRTIonBeamsTreatmentRecordIOD::setSeriesDescription(const OFString &value, const OFBool check)
3188 {
3189     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
3190     if (result.good())
3191         result = SeriesDescription.putOFStringArray(value);
3192     return result;
3193 }
3194 
3195 
setSeriesInstanceUID(const OFString & value,const OFBool check)3196 OFCondition DRTIonBeamsTreatmentRecordIOD::setSeriesInstanceUID(const OFString &value, const OFBool check)
3197 {
3198     OFCondition result = (check) ? DcmUniqueIdentifier::checkStringValue(value, "1") : EC_Normal;
3199     if (result.good())
3200         result = SeriesInstanceUID.putOFStringArray(value);
3201     return result;
3202 }
3203 
3204 
setSeriesNumber(const OFString & value,const OFBool check)3205 OFCondition DRTIonBeamsTreatmentRecordIOD::setSeriesNumber(const OFString &value, const OFBool check)
3206 {
3207     OFCondition result = (check) ? DcmIntegerString::checkStringValue(value, "1") : EC_Normal;
3208     if (result.good())
3209         result = SeriesNumber.putOFStringArray(value);
3210     return result;
3211 }
3212 
3213 
setSeriesTime(const OFString & value,const OFBool check)3214 OFCondition DRTIonBeamsTreatmentRecordIOD::setSeriesTime(const OFString &value, const OFBool check)
3215 {
3216     OFCondition result = (check) ? DcmTime::checkStringValue(value, "1") : EC_Normal;
3217     if (result.good())
3218         result = SeriesTime.putOFStringArray(value);
3219     return result;
3220 }
3221 
3222 
setServiceEpisodeDescription(const OFString & value,const OFBool check)3223 OFCondition DRTIonBeamsTreatmentRecordIOD::setServiceEpisodeDescription(const OFString &value, const OFBool check)
3224 {
3225     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
3226     if (result.good())
3227         result = ServiceEpisodeDescription.putOFStringArray(value);
3228     return result;
3229 }
3230 
3231 
setServiceEpisodeID(const OFString & value,const OFBool check)3232 OFCondition DRTIonBeamsTreatmentRecordIOD::setServiceEpisodeID(const OFString &value, const OFBool check)
3233 {
3234     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
3235     if (result.good())
3236         result = ServiceEpisodeID.putOFStringArray(value);
3237     return result;
3238 }
3239 
3240 
setSmokingStatus(const OFString & value,const OFBool check)3241 OFCondition DRTIonBeamsTreatmentRecordIOD::setSmokingStatus(const OFString &value, const OFBool check)
3242 {
3243     OFCondition result = (check) ? DcmCodeString::checkStringValue(value, "1") : EC_Normal;
3244     if (result.good())
3245         result = SmokingStatus.putOFStringArray(value);
3246     return result;
3247 }
3248 
3249 
setSoftwareVersions(const OFString & value,const OFBool check)3250 OFCondition DRTIonBeamsTreatmentRecordIOD::setSoftwareVersions(const OFString &value, const OFBool check)
3251 {
3252     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1-n") : EC_Normal;
3253     if (result.good())
3254         result = SoftwareVersions.putOFStringArray(value);
3255     return result;
3256 }
3257 
3258 
setSpatialResolution(const OFString & value,const OFBool check)3259 OFCondition DRTIonBeamsTreatmentRecordIOD::setSpatialResolution(const OFString &value, const OFBool check)
3260 {
3261     OFCondition result = (check) ? DcmDecimalString::checkStringValue(value, "1") : EC_Normal;
3262     if (result.good())
3263         result = SpatialResolution.putOFStringArray(value);
3264     return result;
3265 }
3266 
3267 
setSpecificCharacterSet(const OFString & value,const OFBool check)3268 OFCondition DRTIonBeamsTreatmentRecordIOD::setSpecificCharacterSet(const OFString &value, const OFBool check)
3269 {
3270     OFCondition result = (check) ? DcmCodeString::checkStringValue(value, "1-n") : EC_Normal;
3271     if (result.good())
3272         result = SpecificCharacterSet.putOFStringArray(value);
3273     return result;
3274 }
3275 
3276 
setStationName(const OFString & value,const OFBool check)3277 OFCondition DRTIonBeamsTreatmentRecordIOD::setStationName(const OFString &value, const OFBool check)
3278 {
3279     OFCondition result = (check) ? DcmShortString::checkStringValue(value, "1") : EC_Normal;
3280     if (result.good())
3281         result = StationName.putOFStringArray(value);
3282     return result;
3283 }
3284 
3285 
setStrainAdditionalInformation(const OFString & value,const OFBool check)3286 OFCondition DRTIonBeamsTreatmentRecordIOD::setStrainAdditionalInformation(const OFString &value, const OFBool check)
3287 {
3288     OFCondition result = (check) ? DcmUnlimitedText::checkStringValue(value) : EC_Normal;
3289     if (result.good())
3290         result = StrainAdditionalInformation.putOFStringArray(value);
3291     return result;
3292 }
3293 
3294 
setStrainDescription(const OFString & value,const OFBool check)3295 OFCondition DRTIonBeamsTreatmentRecordIOD::setStrainDescription(const OFString &value, const OFBool check)
3296 {
3297     OFCondition result = (check) ? DcmUnlimitedCharacters::checkStringValue(value, "1") : EC_Normal;
3298     if (result.good())
3299         result = StrainDescription.putOFStringArray(value);
3300     return result;
3301 }
3302 
3303 
setStrainNomenclature(const OFString & value,const OFBool check)3304 OFCondition DRTIonBeamsTreatmentRecordIOD::setStrainNomenclature(const OFString &value, const OFBool check)
3305 {
3306     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
3307     if (result.good())
3308         result = StrainNomenclature.putOFStringArray(value);
3309     return result;
3310 }
3311 
3312 
setStudyDate(const OFString & value,const OFBool check)3313 OFCondition DRTIonBeamsTreatmentRecordIOD::setStudyDate(const OFString &value, const OFBool check)
3314 {
3315     OFCondition result = (check) ? DcmDate::checkStringValue(value, "1") : EC_Normal;
3316     if (result.good())
3317         result = StudyDate.putOFStringArray(value);
3318     return result;
3319 }
3320 
3321 
setStudyDescription(const OFString & value,const OFBool check)3322 OFCondition DRTIonBeamsTreatmentRecordIOD::setStudyDescription(const OFString &value, const OFBool check)
3323 {
3324     OFCondition result = (check) ? DcmLongString::checkStringValue(value, "1") : EC_Normal;
3325     if (result.good())
3326         result = StudyDescription.putOFStringArray(value);
3327     return result;
3328 }
3329 
3330 
setStudyID(const OFString & value,const OFBool check)3331 OFCondition DRTIonBeamsTreatmentRecordIOD::setStudyID(const OFString &value, const OFBool check)
3332 {
3333     OFCondition result = (check) ? DcmShortString::checkStringValue(value, "1") : EC_Normal;
3334     if (result.good())
3335         result = StudyID.putOFStringArray(value);
3336     return result;
3337 }
3338 
3339 
setStudyInstanceUID(const OFString & value,const OFBool check)3340 OFCondition DRTIonBeamsTreatmentRecordIOD::setStudyInstanceUID(const OFString &value, const OFBool check)
3341 {
3342     OFCondition result = (check) ? DcmUniqueIdentifier::checkStringValue(value, "1") : EC_Normal;
3343     if (result.good())
3344         result = StudyInstanceUID.putOFStringArray(value);
3345     return result;
3346 }
3347 
3348 
setStudyTime(const OFString & value,const OFBool check)3349 OFCondition DRTIonBeamsTreatmentRecordIOD::setStudyTime(const OFString &value, const OFBool check)
3350 {
3351     OFCondition result = (check) ? DcmTime::checkStringValue(value, "1") : EC_Normal;
3352     if (result.good())
3353         result = StudyTime.putOFStringArray(value);
3354     return result;
3355 }
3356 
3357 
setTimeOfLastCalibration(const OFString & value,const OFBool check)3358 OFCondition DRTIonBeamsTreatmentRecordIOD::setTimeOfLastCalibration(const OFString &value, const OFBool check)
3359 {
3360     OFCondition result = (check) ? DcmTime::checkStringValue(value, "1-n") : EC_Normal;
3361     if (result.good())
3362         result = TimeOfLastCalibration.putOFStringArray(value);
3363     return result;
3364 }
3365 
3366 
setTimezoneOffsetFromUTC(const OFString & value,const OFBool check)3367 OFCondition DRTIonBeamsTreatmentRecordIOD::setTimezoneOffsetFromUTC(const OFString &value, const OFBool check)
3368 {
3369     OFCondition result = (check) ? DcmShortString::checkStringValue(value, "1") : EC_Normal;
3370     if (result.good())
3371         result = TimezoneOffsetFromUTC.putOFStringArray(value);
3372     return result;
3373 }
3374 
3375 
setTreatmentDate(const OFString & value,const OFBool check)3376 OFCondition DRTIonBeamsTreatmentRecordIOD::setTreatmentDate(const OFString &value, const OFBool check)
3377 {
3378     OFCondition result = (check) ? DcmDate::checkStringValue(value, "1") : EC_Normal;
3379     if (result.good())
3380         result = TreatmentDate.putOFStringArray(value);
3381     return result;
3382 }
3383 
3384 
setTreatmentStatusComment(const OFString & value,const OFBool check)3385 OFCondition DRTIonBeamsTreatmentRecordIOD::setTreatmentStatusComment(const OFString &value, const OFBool check)
3386 {
3387     OFCondition result = (check) ? DcmShortText::checkStringValue(value) : EC_Normal;
3388     if (result.good())
3389         result = TreatmentStatusComment.putOFStringArray(value);
3390     return result;
3391 }
3392 
3393 
setTreatmentTime(const OFString & value,const OFBool check)3394 OFCondition DRTIonBeamsTreatmentRecordIOD::setTreatmentTime(const OFString &value, const OFBool check)
3395 {
3396     OFCondition result = (check) ? DcmTime::checkStringValue(value, "1") : EC_Normal;
3397     if (result.good())
3398         result = TreatmentTime.putOFStringArray(value);
3399     return result;
3400 }
3401 
3402 
3403 // end of source file
3404