hl7:relatedDocument 
                                  | 
                                  | 
                                 0 … * | 
                                  | 
                                 
                                     L'elemento relatedDocument viene utilizzato nella gestione delle trasformazioni successive
                                       alla prima versione del documento; è un elemento OPZIONALE alla prima generazione
                                       di un documento CDA ed è OBBLIGATORIO per le trasformazioni successive.
                                     
                                  | 
                                 CDAr cGen | 
                              
                              
                                 @typeCode 
                                  | 
                                 cs | 
                                 1 … 1 | 
                                 R | 
                                 
                                     L’attributo relatedDocument/@typeCode PUÒ essere valorizzato come segue: 
                                    • APND (append): DEVE essere usato in caso di documenti CDA ottenuti aggiungendo al
                                       documento “sorgente”;
                                     
                                    • RPLC (replace): DEVE essere usato in caso di documenti CDA ottenuti sostituendo
                                       il documento “sorgente”;
                                     
                                    • XFRM
                                       (Transform): DEVE essere usato in caso di documenti CDA ottenuti tramite una trasformazione
                                       del documento “sorgente”.
                                     
                                  | 
                              
                              
                                 |   | 
                                 CONF | 
                                 
                                    
                                  | 
                              
                              
                                 hl7:parentDocument 
                                  | 
                                  | 
                                 1 … 1 | 
                                 R | 
                                  | 
                                 CDAr cGen | 
                              
                              
                                 @classCode 
                                  | 
                                 cs | 
                                 0 … 1 | 
                                 F | 
                                 DOCCLIN | 
                              
                              
                                 @moodCode 
                                  | 
                                 cs | 
                                 0 … 1 | 
                                 F | 
                                 EVN | 
                              
                              
                                 hl7:id 
                                  | 
                                 II | 
                                 1 … * | 
                                 R | 
                                 
                                     L'elemento id rappresenta l'identificativo del documento padre. 
                                  | 
                                 CDAr cGen | 
                              
                              
                                 @root 
                                  | 
                                 uid | 
                                 1 … 1 | 
                                 R | 
                                  | 
                              
                              
                                 @extension 
                                  | 
                                 st | 
                                 1 … 1 | 
                                 R | 
                                  | 
                              
                              
                                 @assigningAuthorityName 
                                  | 
                                  | 
                                 0 … 1 | 
                                   | 
                                  | 
                              
                              
                                 |   | 
                                 Example | 
                                 <id root="2.16.840.1.113883.2.9.2.120.4.4" extension="030702.LCNLDE90L47H501Q.20210420112426.F123E45G" assigningAuthorityName="HL7 Italia"/> | 
                              
                              
                                 hl7:code 
                                  | 
                                 CD | 
                                 0 … 1 | 
                                  | 
                                  | 
                                 CDAr cGen | 
                              
                              
                                 @code 
                                  | 
                                  | 
                                 1 … 1 | 
                                 R | 
                                  | 
                              
                              
                                 @codeSystem 
                                  | 
                                  | 
                                 1 … 1 | 
                                 R | 
                                  | 
                              
                              
                                 @codeSystemName 
                                  | 
                                  | 
                                 0 … 1 | 
                                   | 
                                  | 
                              
                              
                                 @displayName 
                                  | 
                                  | 
                                 0 … 1 | 
                                   | 
                                  | 
                              
                              
                                 
                                    @codeSystem 
                                  | 
                                 CONF | 
                                 1 … 1 | 
                                 F | 
                                 2.16.840.1.113883.6.1 (LOINC) | 
                              
                              
                                 hl7:text 
                                  | 
                                 ED | 
                                 0 … 1 | 
                                  | 
                                  | 
                                 CDAr cGen | 
                              
                              
                                 hl7:setId 
                                  | 
                                 II | 
                                 0 … 1 | 
                                  | 
                                 
                                     L'elemento setId rappresenta l'identificativo comune a tutte le revisioni del documento. 
                                  | 
                                 CDAr cGen | 
                              
                              
                                 |   | 
                                 Example | 
                                 <setId root="2.16.840.1.113883.2.9.2.120.4.4" extension="030702.LCNLDE90L47H501Q.20220420112426.DW322E34" assigningAuthorityName="Regione Lazio"/> | 
                              
                              
                                 hl7:versionNumber 
                                  | 
                                 INT | 
                                 0 … 1 | 
                                  | 
                                 
                                     L'elemento versionNumber rappresenta la versione del documento. 
                                  | 
                                 CDAr cGen | 
                              
                              
                                 |   | 
                                 Example | 
                                 <versionNumber value="1"/> |