public void Cleanup() { this.configuration = null; this.entityAddress = null; this.entityName = null; this.genericMessage = null; this.patient = null; }
public void Initialize() { this.configuration = new Configuration.TargetConfiguration("Test", "llp://localhost:2100", "PAT_IDENTITY_SRC", "UnitTestDevice"); this.configuration.NotificationDomainConfigurations.Add(new Configuration.NotificationDomainConfiguration("TestNotificationDomain")); this.entityAddress = new EntityAddress { AddressUse = new Concept { Key = AddressUseKeys.HomeAddress } }; this.entityAddress.Component.Add(new EntityAddressComponent(AddressComponentKeys.City, "Hamilton")); this.entityAddress.Component.Add(new EntityAddressComponent(AddressComponentKeys.Country, "Canada")); this.entityAddress.Component.Add(new EntityAddressComponent(AddressComponentKeys.PostalCode, "L8N3T2")); this.entityAddress.Component.Add(new EntityAddressComponent(AddressComponentKeys.State, "Ontario")); this.entityAddress.Component.Add(new EntityAddressComponent(AddressComponentKeys.StreetAddressLine, "123 Main street west")); this.entityName = new EntityName(NameUseKeys.OfficialRecord, "Khanna", "Nityan David"); this.genericMessage = new GenericMessage.V25(new DefaultModelClassFactory()); this.patient = new Patient { Addresses = new List <EntityAddress> { this.entityAddress }, DateOfBirth = new DateTime(1970, 01, 01), DateOfBirthPrecision = DatePrecision.Day, GenderConcept = new Concept { Mnemonic = "male" }, Names = new List <EntityName>() { this.entityName }, Relationships = new List <EntityRelationship> { new EntityRelationship(EntityRelationshipTypeKeys.Mother, new Person { Names = new List <EntityName> { new EntityName(NameUseKeys.OfficialRecord, "Smith", "Mary L A") } }) } }; }