Ejemplo n.º 1
0
        public void RenderCoding()
        {
            var c = new Coding("http://www.loinc.org/", "23456-5");
            Assert.AreEqual("23456-5@http://www.loinc.org/", c.ForDisplay());

            c.Display = "Testing rendering";
            Assert.AreEqual("23456-5@http://www.loinc.org/ (Testing rendering)", c.ForDisplay());

            var c2 = new Coding("http://www.loinc.org/", "12345-6");
            var cc = new CodeableConcept();
            cc.Coding = new List<Coding>() { c,c2 };            
            Assert.AreEqual("{23456-5@http://www.loinc.org/ (Testing rendering), 12345-6@http://www.loinc.org/}", cc.ForDisplay());

            cc.Text = "Unit test rendering";
            Assert.AreEqual("Unit test rendering {23456-5@http://www.loinc.org/ (Testing rendering), 12345-6@http://www.loinc.org/}", cc.ForDisplay());
        }