LabTestResults ltr = new LabTestResults();

ltr.OrderedBy = new Organization("39502605");

ltr.When = new ApproximateDateTime("2008-01-26 20:05:00.000");

LabTestResultGroup grp = new LabTestResultGroup(new CodableValue("CBC With Differential/Platelet"));

grp.LaboratoryName = new Organization("MB");

grp.Status = new CodableValue("C");

ltr.Groups.Add(grp);

LabTestResultDetails details = new LabTestResultDetails();

details.CollectionMethod = new CodableValue("Methodraw");

details.ClinicalCode = new CodableValue("Monocytes", new CodedValue("11112-0", "loinc", "regenstrief", "2.22")); // code to a real vocab (loinc?) here...

details.Name = "Monocytes";

details.Status = new CodableValue("F");

details.When = new ApproximateDateTime(); // needs to be set to a real value - was DateTime.Parse("2008-01-26 06:56:00.000"));

details.Value = new LabTestResultValue();

details.Value.Ranges.Add(new TestResultRange(new CodableValue("ReferenceRange"), new DoubleRange(4, 13)));

details.Value.Measurement = new GeneralMeasurement();

details.Value.Measurement.Display = "19%";

details.Value.Measurement.Structured.Add(new StructuredMeasurement(19, new CodableValue("%", new CodedValue("pcnt", "lab-results-units"))));

grp.Results.Add(details);

PersonInfo.SelectedRecord.NewItem(ltr);