本文整理汇总了Java中org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender类的典型用法代码示例。如果您正苦于以下问题:Java AdministrativeGender类的具体用法?Java AdministrativeGender怎么用?Java AdministrativeGender使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AdministrativeGender类属于org.hl7.fhir.dstu3.model.Enumerations包,在下文中一共展示了AdministrativeGender类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: apply
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender; //导入依赖的package包/类
@Override
public AdministrativeGender apply(String codeString) {
if (codeString != null && !"".equals(codeString) || codeString != null && !"".equals(codeString)) {
if ("male".equalsIgnoreCase(codeString) || "M".equalsIgnoreCase(codeString)) {
return AdministrativeGender.MALE;
} else if ("female".equalsIgnoreCase(codeString) || "F".equalsIgnoreCase(codeString)) {
return AdministrativeGender.FEMALE;
} else if ("other".equalsIgnoreCase(codeString) || "O".equalsIgnoreCase(codeString)) {
return AdministrativeGender.OTHER;
} else if ("unknown".equalsIgnoreCase(codeString) || "UN".equalsIgnoreCase(codeString)) {
return AdministrativeGender.UNKNOWN;
} else {
throw new IllegalArgumentException("Unknown AdministrativeGender code \'" + codeString + "\'");
}
} else {
return null;
}
}
开发者ID:bhits,项目名称:registration-api,代码行数:19,代码来源:FhirResourceConverter.java
示例2: apply
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender; //导入依赖的package包/类
@Override
public AdministrativeGender apply(String codeString) {
if (codeString != null && !"".equals(codeString) || codeString != null && !"".equals(codeString)) {
if ("male".equalsIgnoreCase(codeString) || "M".equalsIgnoreCase(codeString)) {
return AdministrativeGender.MALE;
} else if ("female".equalsIgnoreCase(codeString) || "F".equalsIgnoreCase(codeString)) {
return Enumerations.AdministrativeGender.FEMALE;
} else if ("other".equalsIgnoreCase(codeString) || "O".equalsIgnoreCase(codeString)) {
return AdministrativeGender.OTHER;
} else if ("unknown".equalsIgnoreCase(codeString) || "UN".equalsIgnoreCase(codeString)) {
return AdministrativeGender.UNKNOWN;
} else {
throw new IllegalArgumentException("Unknown AdministrativeGender code \'" + codeString + "\'");
}
} else {
return null;
}
}
开发者ID:bhits,项目名称:pcm-api,代码行数:19,代码来源:FhirPatientServiceImpl.java
示例3: PatientResourceProvider
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender; //导入依赖的package包/类
/**
* Constructor, which pre-populates the provider with one resource instance.
*/
public PatientResourceProvider() {
long resourceId = myNextId++;
Patient patient = new Patient();
patient.setId(Long.toString(resourceId));
patient.addIdentifier();
patient.getIdentifier().get(0).setSystem("urn:hapitest:mrns");
patient.getIdentifier().get(0).setValue("00002");
patient.addName().addFamily("Test");
patient.getName().get(0).addGiven("PatientOne");
patient.setGender(AdministrativeGender.FEMALE);
LinkedList<Patient> list = new LinkedList<Patient>();
list.add(patient);
myIdToPatientVersions.put(resourceId, list);
}
开发者ID:furore-fhir,项目名称:fhirstarters,代码行数:23,代码来源:PatientResourceProvider.java
示例4: main
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender; //导入依赖的package包/类
public static void main(String[] theArgs) {
Patient pat = new Patient();
pat.addName().setFamily("Simpson").addGiven("Homer").addGiven("J");
pat.addIdentifier().setSystem("http://acme.org/MRNs").setValue("7000135");
pat.setGender(AdministrativeGender.MALE);
// Create a context
FhirContext ctx = FhirContext.forDstu3();
// Create a client
String serverBaseUrl = "http://fhirtest.uhn.ca/baseDstu3";
IGenericClient client = ctx.newRestfulGenericClient(serverBaseUrl);
// Use the client to store a new resource instance
MethodOutcome outcome = client
.create()
.resource(pat)
.execute();
// Print the ID of the newly created resource
System.out.println(outcome.getId());
}
开发者ID:furore-fhir,项目名称:fhirstarters,代码行数:24,代码来源:Example06_ClientCreate.java
示例5: main
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender; //导入依赖的package包/类
public static void main(String[] theArgs) {
// Create a client
IGenericClient client = FhirContext.forDstu3().newRestfulGenericClient("http://fhirtest.uhn.ca/baseDstu3");
// Register some interceptors
client.registerInterceptor(new CookieInterceptor("mycookie=Chips Ahoy"));
client.registerInterceptor(new LoggingInterceptor());
// Read a Patient
Patient patient = client.read().resource(Patient.class).withId("example").execute();
// Change the gender
patient.setGender(patient.getGender() == AdministrativeGender.MALE ? AdministrativeGender.FEMALE : AdministrativeGender.MALE);
// Update the patient
MethodOutcome outcome = client.update().resource(patient).execute();
System.out.println("Now have ID: " + outcome.getId());
}
开发者ID:furore-fhir,项目名称:fhirstarters,代码行数:21,代码来源:Example09_Interceptors.java
示例6: main
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender; //导入依赖的package包/类
public static void main(String[] theArgs) {
// Create a Patient
Patient pat = new Patient();
pat.addName().setFamily("Simpson").addGiven("Homer").addGiven("J");
pat.addIdentifier().setSystem("http://acme.org/MRNs").setValue("7000135");
pat.addTelecom().setUse(ContactPointUse.HOME).setSystem(ContactPointSystem.PHONE).setValue("1 (416) 340-4800");
pat.setGender(AdministrativeGender.MALE);
// Create a context
FhirContext ctx = FhirContext.forDstu3();
// Create a JSON parser
IParser parser = ctx.newJsonParser();
parser.setPrettyPrint(true);
String encode = parser.encodeResourceToString(pat);
System.out.println(encode);
}
开发者ID:furore-fhir,项目名称:fhirstarters,代码行数:21,代码来源:Example04_EncodeResource.java
示例7: testOperationOutcome
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender; //导入依赖的package包/类
@Test
public void testOperationOutcome() throws Exception {
myInterceptor.setAddResponseOutcomeHeaderOnSeverity(ResultSeverityEnum.INFORMATION);
Patient patient = new Patient();
patient.addIdentifier().setValue("002");
patient.setGender(AdministrativeGender.MALE);
myReturnResource = patient;
HttpGet httpPost = new HttpGet("http://localhost:" + ourPort + "/Patient?foo=bar");
HttpResponse status = ourClient.execute(httpPost);
String responseContent = IOUtils.toString(status.getEntity().getContent());
IOUtils.closeQuietly(status.getEntity().getContent());
ourLog.info("Response was:\n{}", status);
ourLog.trace("Response was:\n{}", responseContent);
Assert.assertEquals(200, status.getStatusLine().getStatusCode());
Assert.assertThat(status.toString(), (Matchers.containsString(
"X-FHIR-Response-Validation: {\"resourceType\":\"OperationOutcome\",\"issue\":[{\"severity\":\"information\",\"code\":\"informational\",\"diagnostics\":\"No issues detected\"}]}")));
}
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:23,代码来源:ResponseValidatingInterceptorDstu3Test.java
示例8: testSearchJsonInvalidNoValidatorsSpecified
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender; //导入依赖的package包/类
/**
* Ignored until #264 is fixed
*/
@Test
public void testSearchJsonInvalidNoValidatorsSpecified() throws Exception {
Patient patient = new Patient();
patient.addIdentifier().setValue("002");
patient.setGender(AdministrativeGender.MALE);
patient.addContact().addRelationship().setText("FOO");
myReturnResource = patient;
HttpGet httpPost = new HttpGet("http://localhost:" + ourPort + "/Patient?foo=bar");
HttpResponse status = ourClient.execute(httpPost);
String responseContent = IOUtils.toString(status.getEntity().getContent());
IOUtils.closeQuietly(status.getEntity().getContent());
ourLog.info("Response was:\n{}", status);
ourLog.info("Response was:\n{}", responseContent);
Assert.assertEquals(422, status.getStatusLine().getStatusCode());
Assert.assertThat(responseContent, Matchers.containsString("<severity value=\"error\"/>"));
}
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:25,代码来源:ResponseValidatingInterceptorDstu3Test.java
示例9: testSearchJsonValidNoValidatorsSpecified
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender; //导入依赖的package包/类
@Test
public void testSearchJsonValidNoValidatorsSpecified() throws Exception {
Patient patient = new Patient();
patient.addIdentifier().setValue("002");
patient.setGender(AdministrativeGender.MALE);
myReturnResource = patient;
HttpGet httpPost = new HttpGet("http://localhost:" + ourPort + "/Patient?foo=bar");
HttpResponse status = ourClient.execute(httpPost);
String responseContent = IOUtils.toString(status.getEntity().getContent());
IOUtils.closeQuietly(status.getEntity().getContent());
ourLog.info("Response was:\n{}", status);
ourLog.trace("Response was:\n{}", responseContent);
Assert.assertEquals(200, status.getStatusLine().getStatusCode());
Assert.assertThat(status.toString(), Matchers.not(Matchers.containsString("X-FHIR-Response-Validation")));
}
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:21,代码来源:ResponseValidatingInterceptorDstu3Test.java
示例10: testSearchJsonValidNoValidatorsSpecifiedDefaultMessage
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender; //导入依赖的package包/类
@Test
public void testSearchJsonValidNoValidatorsSpecifiedDefaultMessage() throws Exception {
myInterceptor.setResponseHeaderValueNoIssues("NO ISSUES");
myInterceptor.setAddResponseHeaderOnSeverity(ResultSeverityEnum.INFORMATION);
Patient patient = new Patient();
patient.addIdentifier().setValue("002");
patient.setGender(AdministrativeGender.MALE);
myReturnResource = patient;
HttpGet httpPost = new HttpGet("http://localhost:" + ourPort + "/Patient?foo=bar");
HttpResponse status = ourClient.execute(httpPost);
String responseContent = IOUtils.toString(status.getEntity().getContent());
IOUtils.closeQuietly(status.getEntity().getContent());
ourLog.info("Response was:\n{}", status);
ourLog.trace("Response was:\n{}", responseContent);
Assert.assertEquals(200, status.getStatusLine().getStatusCode());
Assert.assertThat(status.toString(), (Matchers.containsString("X-FHIR-Response-Validation: NO ISSUES")));
}
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:24,代码来源:ResponseValidatingInterceptorDstu3Test.java
示例11: testSearchXmlInvalidInstanceValidator
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender; //导入依赖的package包/类
@Test
public void testSearchXmlInvalidInstanceValidator() throws Exception {
IValidatorModule module = new FhirInstanceValidator();
myInterceptor.addValidatorModule(module);
myInterceptor.setAddResponseHeaderOnSeverity(ResultSeverityEnum.INFORMATION);
Patient patient = new Patient();
patient.addIdentifier().setValue("002");
patient.setGender(AdministrativeGender.MALE);
patient.addContact().addRelationship().setText("FOO");
myReturnResource = patient;
HttpGet httpPost = new HttpGet("http://localhost:" + ourPort + "/Patient?foo=bar");
HttpResponse status = ourClient.execute(httpPost);
String responseContent = IOUtils.toString(status.getEntity().getContent());
IOUtils.closeQuietly(status.getEntity().getContent());
ourLog.info("Response was:\n{}", status);
ourLog.info("Response was:\n{}", responseContent);
Assert.assertEquals(422, status.getStatusLine().getStatusCode());
Assert.assertThat(status.toString(), Matchers.containsString("X-FHIR-Response-Validation"));
}
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:26,代码来源:ResponseValidatingInterceptorDstu3Test.java
示例12: testSearchXmlInvalidNoValidatorsSpecified
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender; //导入依赖的package包/类
/**
* Ignored until #264 is fixed
*/
@Test
public void testSearchXmlInvalidNoValidatorsSpecified() throws Exception {
Patient patient = new Patient();
patient.addIdentifier().setValue("002");
patient.setGender(AdministrativeGender.MALE);
patient.addContact().addRelationship().setText("FOO");
myReturnResource = patient;
HttpGet httpPost = new HttpGet("http://localhost:" + ourPort + "/Patient?foo=bar");
HttpResponse status = ourClient.execute(httpPost);
String responseContent = IOUtils.toString(status.getEntity().getContent());
IOUtils.closeQuietly(status.getEntity().getContent());
ourLog.info("Response was:\n{}", status);
ourLog.info("Response was:\n{}", responseContent);
Assert.assertEquals(422, status.getStatusLine().getStatusCode());
Assert.assertThat(responseContent, Matchers.containsString("<severity value=\"error\"/>"));
}
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:25,代码来源:ResponseValidatingInterceptorDstu3Test.java
示例13: testSearchXmlValidNoValidatorsSpecified
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender; //导入依赖的package包/类
@Test
public void testSearchXmlValidNoValidatorsSpecified() throws Exception {
Patient patient = new Patient();
patient.addIdentifier().setValue("002");
patient.setGender(AdministrativeGender.MALE);
myReturnResource = patient;
HttpGet httpPost = new HttpGet("http://localhost:" + ourPort + "/Patient?foo=bar");
HttpResponse status = ourClient.execute(httpPost);
String responseContent = IOUtils.toString(status.getEntity().getContent());
IOUtils.closeQuietly(status.getEntity().getContent());
ourLog.info("Response was:\n{}", status);
ourLog.trace("Response was:\n{}", responseContent);
Assert.assertEquals(200, status.getStatusLine().getStatusCode());
Assert.assertThat(status.toString(), Matchers.not(Matchers.containsString("X-FHIR-Response-Validation")));
}
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:21,代码来源:ResponseValidatingInterceptorDstu3Test.java
示例14: testCreateJsonInvalidNoFailure
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender; //导入依赖的package包/类
@Test
public void testCreateJsonInvalidNoFailure() throws Exception {
myInterceptor.setFailOnSeverity(null);
myInterceptor.setAddResponseHeaderOnSeverity(ResultSeverityEnum.INFORMATION);
Patient patient = new Patient();
patient.addIdentifier().setValue("002");
patient.setGender(AdministrativeGender.MALE);
patient.addContact().addRelationship().setText("FOO");
String encoded = ourCtx.newJsonParser().encodeResourceToString(patient);
HttpPost httpPost = new HttpPost("http://localhost:" + ourPort + "/Patient");
httpPost.setEntity(new StringEntity(encoded, ContentType.create(Constants.CT_FHIR_JSON, "UTF-8")));
HttpResponse status = ourClient.execute(httpPost);
String responseContent = IOUtils.toString(status.getEntity().getContent());
IOUtils.closeQuietly(status.getEntity().getContent());
ourLog.info("Response was:\n{}", status);
ourLog.info("Response was:\n{}", responseContent);
assertEquals(201, status.getStatusLine().getStatusCode());
assertThat(status.toString(), Matchers.containsString("X-FHIR-Request-Validation"));
assertThat(responseContent, Matchers.not(Matchers.containsString("<severity value=\"error\"/>")));
}
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:27,代码来源:RequestValidatingInterceptorDstu3Test.java
示例15: testCreateJsonInvalidNoValidatorsSpecified
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender; //导入依赖的package包/类
@Test
public void testCreateJsonInvalidNoValidatorsSpecified() throws Exception {
myInterceptor.setAddResponseHeaderOnSeverity(ResultSeverityEnum.INFORMATION);
Patient patient = new Patient();
patient.addIdentifier().setValue("002");
patient.setGender(AdministrativeGender.MALE);
patient.addContact().addRelationship().setText("FOO");
String encoded = ourCtx.newJsonParser().encodeResourceToString(patient);
HttpPost httpPost = new HttpPost("http://localhost:" + ourPort + "/Patient");
httpPost.setEntity(new StringEntity(encoded, ContentType.create(Constants.CT_FHIR_JSON, "UTF-8")));
HttpResponse status = ourClient.execute(httpPost);
String responseContent = IOUtils.toString(status.getEntity().getContent());
IOUtils.closeQuietly(status.getEntity().getContent());
ourLog.info("Response was:\n{}", status);
ourLog.info("Response was:\n{}", responseContent);
assertEquals(422, status.getStatusLine().getStatusCode());
assertThat(status.toString(), Matchers.containsString("X-FHIR-Request-Validation"));
assertThat(responseContent, Matchers.containsString("\"severity\":\"error\""));
}
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:26,代码来源:RequestValidatingInterceptorDstu3Test.java
示例16: testCreateJsonValidNoValidatorsSpecified
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender; //导入依赖的package包/类
@Test
public void testCreateJsonValidNoValidatorsSpecified() throws Exception {
Patient patient = new Patient();
patient.addIdentifier().setValue("002");
patient.setGender(AdministrativeGender.MALE);
String encoded = ourCtx.newJsonParser().encodeResourceToString(patient);
HttpPost httpPost = new HttpPost("http://localhost:" + ourPort + "/Patient");
httpPost.setEntity(new StringEntity(encoded, ContentType.create(Constants.CT_FHIR_JSON, "UTF-8")));
HttpResponse status = ourClient.execute(httpPost);
String responseContent = IOUtils.toString(status.getEntity().getContent());
IOUtils.closeQuietly(status.getEntity().getContent());
ourLog.info("Response was:\n{}", status);
ourLog.trace("Response was:\n{}", responseContent);
assertEquals(201, status.getStatusLine().getStatusCode());
assertThat(status.toString(), Matchers.not(Matchers.containsString("X-FHIR-Request-Validation")));
}
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:22,代码来源:RequestValidatingInterceptorDstu3Test.java
示例17: testCreateJsonValidNoValidatorsSpecifiedDefaultMessage
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender; //导入依赖的package包/类
@Test
public void testCreateJsonValidNoValidatorsSpecifiedDefaultMessage() throws Exception {
myInterceptor.setResponseHeaderValueNoIssues("NO ISSUES");
myInterceptor.setAddResponseHeaderOnSeverity(ResultSeverityEnum.INFORMATION);
Patient patient = new Patient();
patient.addIdentifier().setValue("002");
patient.setGender(AdministrativeGender.MALE);
String encoded = ourCtx.newJsonParser().encodeResourceToString(patient);
HttpPost httpPost = new HttpPost("http://localhost:" + ourPort + "/Patient");
httpPost.setEntity(new StringEntity(encoded, ContentType.create(Constants.CT_FHIR_JSON, "UTF-8")));
HttpResponse status = ourClient.execute(httpPost);
String responseContent = IOUtils.toString(status.getEntity().getContent());
IOUtils.closeQuietly(status.getEntity().getContent());
ourLog.info("Response was:\n{}", status);
ourLog.trace("Response was:\n{}", responseContent);
assertEquals(201, status.getStatusLine().getStatusCode());
assertThat(status.toString(), (Matchers.containsString("X-FHIR-Request-Validation: NO ISSUES")));
}
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:25,代码来源:RequestValidatingInterceptorDstu3Test.java
示例18: testCreateXmlInvalidNoValidatorsSpecified
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender; //导入依赖的package包/类
@Test
public void testCreateXmlInvalidNoValidatorsSpecified() throws Exception {
myInterceptor.setAddResponseHeaderOnSeverity(ResultSeverityEnum.INFORMATION);
Patient patient = new Patient();
patient.addIdentifier().setValue("002");
patient.setGender(AdministrativeGender.MALE);
patient.addContact().addRelationship().setText("FOO");
String encoded = ourCtx.newXmlParser().encodeResourceToString(patient);
HttpPost httpPost = new HttpPost("http://localhost:" + ourPort + "/Patient");
httpPost.setEntity(new StringEntity(encoded, ContentType.create(Constants.CT_FHIR_XML, "UTF-8")));
HttpResponse status = ourClient.execute(httpPost);
String responseContent = IOUtils.toString(status.getEntity().getContent());
IOUtils.closeQuietly(status.getEntity().getContent());
ourLog.info("Response was:\n{}", status);
ourLog.info("Response was:\n{}", responseContent);
assertEquals(422, status.getStatusLine().getStatusCode());
assertThat(status.toString(), Matchers.containsString("X-FHIR-Request-Validation"));
}
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:25,代码来源:RequestValidatingInterceptorDstu3Test.java
示例19: testCreateXmlInvalidNoValidatorsSpecifiedOutcomeHeader
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender; //导入依赖的package包/类
@Test
public void testCreateXmlInvalidNoValidatorsSpecifiedOutcomeHeader() throws Exception {
myInterceptor.setAddResponseHeaderOnSeverity(null);
myInterceptor.setFailOnSeverity(null);
myInterceptor.setAddResponseOutcomeHeaderOnSeverity(ResultSeverityEnum.INFORMATION);
Patient patient = new Patient();
patient.addIdentifier().setValue("002");
patient.setGender(AdministrativeGender.MALE);
patient.addContact().addRelationship().setText("FOO");
String encoded = ourCtx.newXmlParser().encodeResourceToString(patient);
HttpPost httpPost = new HttpPost("http://localhost:" + ourPort + "/Patient");
httpPost.setEntity(new StringEntity(encoded, ContentType.create(Constants.CT_FHIR_XML, "UTF-8")));
HttpResponse status = ourClient.execute(httpPost);
String responseContent = IOUtils.toString(status.getEntity().getContent());
IOUtils.closeQuietly(status.getEntity().getContent());
ourLog.info("Response was:\n{}", status);
ourLog.info("Response was:\n{}", responseContent);
assertEquals(201, status.getStatusLine().getStatusCode());
assertThat(status.toString(), Matchers.containsString("X-FHIR-Request-Validation: {\"resourceType\":\"OperationOutcome"));
}
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:27,代码来源:RequestValidatingInterceptorDstu3Test.java
示例20: testCreateXmlValidNoValidatorsSpecified
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender; //导入依赖的package包/类
@Test
public void testCreateXmlValidNoValidatorsSpecified() throws Exception {
Patient patient = new Patient();
patient.addIdentifier().setValue("002");
patient.setGender(AdministrativeGender.MALE);
String encoded = ourCtx.newXmlParser().encodeResourceToString(patient);
HttpPost httpPost = new HttpPost("http://localhost:" + ourPort + "/Patient");
httpPost.setEntity(new StringEntity(encoded, ContentType.create(Constants.CT_FHIR_XML, "UTF-8")));
HttpResponse status = ourClient.execute(httpPost);
String responseContent = IOUtils.toString(status.getEntity().getContent());
IOUtils.closeQuietly(status.getEntity().getContent());
ourLog.info("Response was:\n{}", status);
ourLog.trace("Response was:\n{}", responseContent);
assertEquals(201, status.getStatusLine().getStatusCode());
assertThat(status.toString(), Matchers.not(Matchers.containsString("X-FHIR-Request-Validation")));
}
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:22,代码来源:RequestValidatingInterceptorDstu3Test.java
注:本文中的org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论