168169170171172173174175176177178
// Consent if (childScreeningFields.getConsent() != null) { template.setAuthorizingConsent(new Consent() .setConsentCode(childScreeningFields.getConsent()) .addID(new ConsentID(CDAUUID.generateUUIDString()))); } // ==== Now create the coded sections ==== // Blood Spot Screening
31323334353637383940
} public static Consent createFull() { Consent template = new Consent(); template.addID(new ConsentID().setRoot("7AFDCAD6-1CE3-45A6-A176-DDAC27F46C87")); template.setConsentCode(DocumentConsentSnCT._319951000000105); return template; }
330331332333334335336337338
return template; } public static Consent createConsent() { Consent template = new Consent(); template.addID(new ConsentID("7AFDCAD6-1CE3-45A6-A176-DDAC27F46C87")); template.setConsentCode(DocumentConsentSnCT._Consentgiventosharepatientdatawithspecifiedthirdparty); return template; }