getPid() 공개 메소드

public getPid ( ) : NHapi.Model.V24.Segment.PID
리턴 NHapi.Model.V24.Segment.PID
예제 #1
0
        internal IList <Medication> getMedsHl7()
        {
            QBP_Q13_PID msg = new QBP_Q13_PID();

            fillMshSegment(msg.MSH, HL7Constants.FIELD_SEPARATOR.ToString(), "MHV EVAULT", "200MHS", "127.0.0.1", "DNS", "MHV VISTA", _cxn.DataSource.SiteId.Id,
                           _cxn.DataSource.Provider, "DNS", "", "QBP", "Q13", "QBP_Q13", "", "P", "2.4");
            fillQpdSegment(msg, msg.QPD, "0", new DateTime(), new DateTime(), "", "Q13", "RxList");
            addIdToPID(msg.getPid(), _cxn.Pid, 1, "", "");
            fillRdfSegment(msg.RDF, DATA_FIELDs);
            fillRcpSegment(msg.RCP);

            string response = (string)_cxn.query(msg.encode());

            return(toMedsFromHL7(response));
        }
        internal IList<Medication> getMedsHl7()
        {
            QBP_Q13_PID msg = new QBP_Q13_PID();

            fillMshSegment(msg.MSH, HL7Constants.FIELD_SEPARATOR.ToString(), "MHV EVAULT", "200MHS", "127.0.0.1", "DNS", "MHV VISTA", _cxn.DataSource.SiteId.Id,
                _cxn.DataSource.Provider, "DNS", "", "QBP", "Q13", "QBP_Q13", "", "P", "2.4");
            fillQpdSegment(msg, msg.QPD, "0", new DateTime(), new DateTime(), "", "Q13", "RxList");
            addIdToPID(msg.getPid(), _cxn.Pid, 1, "", "");
            fillRdfSegment(msg.RDF, DATA_FIELDs);
            fillRcpSegment(msg.RCP);

            string response = (string)_cxn.query(msg.encode());
            return toMedsFromHL7(response);
        }