Beispiel #1
0
        public List <AdverseReaction> Extract(CdaXmlDocument document)
        {
            var nodes = document.SelectNodes(_documentXPaths.Get("AdverseReactions"));

            if (nodes == null || nodes.Count == 0)
            {
                return(null);
            }

            return
                ((from XmlNode node in nodes
                  select new AdverseReaction
            {
                AdverseReactionId = document.GetString(node, _documentXPaths.Get("AdverseReactionsId")),
                SubstanceAgent = document.GetRelativeCode(node, _documentXPaths.Get("SubstanceAgent")),
                AdverseReactionType = document.GetRelativeCode(node, _documentXPaths.Get("AdverseReactionType")),
                Manifestations = document.GetListOfRelativeCodableText(node, _documentXPaths.Get("Manifestations"))
            }
                  ).ToList());
        }