Lines Matching refs:Patient

220 		if (H.Element()) memcpy(hdr->Patient.Id, H.Element()->GetText(), MAX_LENGTH_PID);  in sopen_HL7aECG_read()
221 hdr->Patient.Name[0] = 0; in sopen_HL7aECG_read()
225 strncpy(hdr->Patient.Name, H.Element()->GetText(), MAX_LENGTH_NAME); in sopen_HL7aECG_read()
226 hdr->Patient.Name[MAX_LENGTH_NAME]=0; in sopen_HL7aECG_read()
227 NameLength = strlen(hdr->Patient.Name); in sopen_HL7aECG_read()
234 hdr->Patient.Name[NameLength]= 0x1f; // unit separator ascii(31) in sopen_HL7aECG_read()
235 strncpy(hdr->Patient.Name+NameLength+1, str, l2+1); in sopen_HL7aECG_read()
244 hdr->Patient.Name[NameLength]= ' '; in sopen_HL7aECG_read()
245 strncpy(hdr->Patient.Name+NameLength+1, str, l2+1); in sopen_HL7aECG_read()
255 hdr->Patient.Sex = (t[0]=='M') + (t[0]=='m') + 2 * ( (t[0]=='F') + (t[0]=='f') ); in sopen_HL7aECG_read()
329 strncpy(hdr->Patient.Id, H.FirstChild("PID").Element()->GetText(),MAX_LENGTH_PID); in sopen_HL7aECG_read()
331 hdr->Patient.Sex = (toupper(tmp[0])=='M') + 2*(toupper(tmp[0])=='F'); in sopen_HL7aECG_read()
337 if (0 < l1 && l1 <= MAX_LENGTH_PID) strncpy(hdr->Patient.Name, str1, l1+1); in sopen_HL7aECG_read()
339 hdr->Patient.Name[l1] = 0x1f; in sopen_HL7aECG_read()
340 strncpy(hdr->Patient.Name+l1+1, str2, l2+1); in sopen_HL7aECG_read()
564 strcpy(hdr->Patient.Name, str1); // Flawfinder: ignore in sopen_HL7aECG_read()
566 strcpy(hdr->Patient.Name, str1); // Flawfinder: ignore in sopen_HL7aECG_read()
567 hdr->Patient.Name[l1] = 0x1f; in sopen_HL7aECG_read()
568 strcpy(hdr->Patient.Name+l1+1, str2); // Flawfinder: ignore in sopen_HL7aECG_read()
577 hdr->Patient.Sex = (tolower(gender[0])=='m') + (tolower(gender[0])=='f'); in sopen_HL7aECG_read()
580 hdr->Patient.Birthday = str_time2gdf_time(Birth.Element()->Attribute("value")); in sopen_HL7aECG_read()
632 strncpy(hdr->Patient.Id,tmpstr,MAX_LENGTH_PID); in sopen_HL7aECG_read()
650 strncpy(hdr->Patient.Name, name, MAX_LENGTH_NAME); in sopen_HL7aECG_read()
674 hdr->Patient.Name[0] = 0; in sopen_HL7aECG_read()
689 hdr->Patient.Weight = (uint8_t)(atof(weight->Attribute("value"))*PhysDimScale(code)*1e-3); in sopen_HL7aECG_read()
701 hdr->Patient.Height = (uint8_t)(atof(height->Attribute("value"))*PhysDimScale(code)*1e+2); in sopen_HL7aECG_read()
711 hdr->Patient.Birthday = str_time2gdf_time(T0); in sopen_HL7aECG_read()
724 hdr->Patient.Sex = 0; in sopen_HL7aECG_read()
726 hdr->Patient.Sex = 2; in sopen_HL7aECG_read()
728 hdr->Patient.Sex = 1; in sopen_HL7aECG_read()
730 hdr->Patient.Sex = 0; in sopen_HL7aECG_read()
733 hdr->Patient.Sex = 0; in sopen_HL7aECG_read()
1066 if (strlen(hdr->Patient.Id)>0) { in sclose_HL7aECG_write()
1068 trialSubjectId->SetAttribute("extension", hdr->Patient.Id); in sclose_HL7aECG_write()
1079 if (strlen(hdr->Patient.Name)>0) in sclose_HL7aECG_write()
1084 strcpy(tmpstr, hdr->Patient.Name); in sclose_HL7aECG_write()
1102 if(hdr->Patient.Sex == 1){ in sclose_HL7aECG_write()
1106 else if(hdr->Patient.Sex == 2){ in sclose_HL7aECG_write()
1118 if (hdr->Patient.Birthday>0) { in sclose_HL7aECG_write()
1119 t0 = gdf_time2tm_time(hdr->Patient.Birthday); in sclose_HL7aECG_write()
1130 if (hdr->Patient.Weight) { in sclose_HL7aECG_write()
1131 sprintf(tmp,"%i",hdr->Patient.Weight); in sclose_HL7aECG_write()
1137 if (hdr->Patient.Height) { in sclose_HL7aECG_write()
1138 sprintf(tmp,"%i",hdr->Patient.Height); in sclose_HL7aECG_write()