Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Model Driven Health Tools » custodianAddress and custodianTelecom Exception
custodianAddress and custodianTelecom Exception [message #1757902] Tue, 21 March 2017 15:01 Go to next message
Mostafa Elhefnawy is currently offline Mostafa ElhefnawyFriend
Messages: 2
Registered: March 2017
Junior Member
I got the following exception, When I'm trying to set custodian address and telecom as follows:

// custodianAddress
AD custodianAddress = DatatypesFactory.eINSTANCE.createAD();
custodianOrganization.getAddrs().add(custodianAddress);

//Custodian Telecom
TEL custodianTel=DatatypesFactory.eINSTANCE.createTEL("tel:+1-(xxx)xxx-xxxx");
custodianOrganization.getTelecoms().add(custodianTel);


Exception

Exception in thread "main" java.lang.UnsupportedOperationException
at org.eclipse.emf.common.util.BasicEList$UnmodifiableEList.add(BasicEList.java:909)
at src_test.CreateDischargeSummary.main(CreateDischargeSummary.java:218)


Re: custodianAddress and custodianTelecom Exception [message #1757928 is a reply to message #1757902] Tue, 21 March 2017 22:07 Go to previous messageGo to next message
Dan Brown is currently offline Dan BrownFriend
Messages: 21
Registered: December 2015
Junior Member
BasicEList is the parent of the type retrieved (UnmodifiableEList) which doesn't support the add method.
Show the full context/source/what you are trying to do and maybe I can see a workaround for it.
Re: custodianAddress and custodianTelecom Exception [message #1757930 is a reply to message #1757928] Tue, 21 March 2017 22:22 Go to previous message
Mostafa Elhefnawy is currently offline Mostafa ElhefnawyFriend
Messages: 2
Registered: March 2017
Junior Member
I'm just trying to set the custodian address and telecom as those are required elements in many c-cda R2.1 document templates
Previous Topic:Create CDA R1.1 and R2.1
Next Topic:CCDA Validation - How to get exact line of faliure
Goto Forum:
  


Current Time: Fri Apr 26 22:24:39 GMT 2024

Powered by FUDForum. Page generated in 0.03284 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top