}
// Loop through coded sections, extracting values
List<CodedSections> codedSections = document.getCodedSections();
for (CodedSections s : codedSections) {
CodedSection codedSection = s.getCodedEntry();
String className = ((Payload)codedSection).getClassName();
// End of life care plan
if (className.equals("EoLCarePlan")) {
EoLCarePlan eolcp = (EoLCarePlan)codedSection;