Exemplo n.º 1
0
        public void TennesseePidFirstNameIsThomasUsingCustomDelimiters()
        {
            // Arrange
            SegmentDelimiters delimiters = new SegmentDelimiters { FieldSeparator = '*' };
            string testPidSegment = "PID*1**10006579^^^1^MRN^1**THOMAS^C^CHAPMAN**19241010*M**1*111 DUCK ST^^FOWL^CA^999990000^^M*1*8885551212*8885551212*1*2**40007716^^^AccMgr^VN^1*123121234***********NO";

            // Act
            SegmentFactoryManager newManager = new SegmentFactoryManager(delimiters);
            SegmentFactory newFactory = newManager.GetFactory(DriverTypes.TennesseeHealthCare);

            PID newPid = newFactory.CreatePIDInstance(testPidSegment);

            // Assert
            Assert.AreEqual("THOMAS", newPid.GetPatientName().GivenName.ToUpper());
        }
Exemplo n.º 2
0
        public void GenericV23PidFirstNameIsDonaldUsingCustomDelimiters()
        {
            // Arrange
            SegmentDelimiters delimiters = new SegmentDelimiters { FieldSeparator = '%' };
            string testPidSegment = "PID%1%%10006579^^^1^MRN^1%%DUCK^DONALD^D%%19241010%M%%1%111 DUCK ST^^FOWL^CA^999990000^^M%1%(888)555-1212%(888)555-1212%1%2%%40007716^^^AccMgr^VN^1%123121234%%%%%%%%%%%NO";

            // Act
            SegmentFactoryManager newManager = new SegmentFactoryManager(delimiters);
            SegmentFactory newFactory = newManager.GetFactory(DriverTypes.GenericV23);

            PID newPid = newFactory.CreatePIDInstance(testPidSegment);

            // Assert
            Assert.AreEqual("DONALD", newPid.GetPatientName().GivenName.ToUpper());
        }
Exemplo n.º 3
0
 protected SegmentFactory(SegmentDelimiters delimiters)
 {
     _delimiters = delimiters;
 }
Exemplo n.º 4
0
 protected SegmentFactory()
 {
     _delimiters = new SegmentDelimiters();
 }
Exemplo n.º 5
0
 public SegmentFactoryManager(SegmentDelimiters delimiters)
 {
     _delimiters = delimiters;
 }
Exemplo n.º 6
0
 public SegmentFactoryManager()
 {
     _delimiters = new SegmentDelimiters();
 }
Exemplo n.º 7
0
 public SegmentFactoryManager(SegmentDelimiters delimiters)
 {
     _delimiters = delimiters;
 }
Exemplo n.º 8
0
 public SegmentFactoryManager()
 {
     _delimiters = new SegmentDelimiters();
 }
Exemplo n.º 9
0
 protected Message(string message)
 {
     _segments = new List<Segment>();
     _delimiters = new SegmentDelimiters();
     _message = message;
 }
Exemplo n.º 10
0
 protected SegmentFactory(SegmentDelimiters delimiters)
 {
     _delimiters = delimiters;
 }
Exemplo n.º 11
0
 protected SegmentFactory()
 {
     _delimiters = new SegmentDelimiters();
 }
Exemplo n.º 12
0
 protected Segment(string segment)
 {
     _delimiters = new SegmentDelimiters();
     _segment    = segment;
 }
Exemplo n.º 13
0
 protected Segment(string segment)
 {
     _delimiters = new SegmentDelimiters();
     _segment = segment;
 }