本文整理汇总了Java中org.marc.everest.datatypes.NullFlavor类的典型用法代码示例。如果您正苦于以下问题:Java NullFlavor类的具体用法?Java NullFlavor怎么用?Java NullFlavor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
NullFlavor类属于org.marc.everest.datatypes包,在下文中一共展示了NullFlavor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAllergen
import org.marc.everest.datatypes.NullFlavor; //导入依赖的package包/类
protected ArrayList<Participant2> getAllergen() {
Participant2 participant = new Participant2(ParticipationType.Consumable, ContextControl.OverridingPropagating);
ParticipantRole participantRole = new ParticipantRole(new CD<String>(Constants.RoleClass.MANU.toString()));
PlayingEntity playingEntity = new PlayingEntity(EntityClassRoot.ManufacturedMaterial);
CE<String> code = new CE<String>();
if(!EverestUtils.isNullorEmptyorWhitespace(allergy.getRegionalIdentifier())) {
code.setCodeEx(allergy.getRegionalIdentifier());
code.setCodeSystem(Constants.CodeSystems.DIN_OID);
code.setCodeSystemName(Constants.CodeSystems.DIN_NAME);
} else {
code.setNullFlavor(NullFlavor.NoInformation);
}
SET<PN> names = new SET<PN>(new PN(null, Arrays.asList(new ENXP(allergy.getDescription()))));
playingEntity.setCode(code);
playingEntity.setName(names);
participantRole.setPlayingEntityChoice(playingEntity);
participant.setParticipantRole(participantRole);
return new ArrayList<Participant2>(Arrays.asList(participant));
}
示例2: getAllergenGroup
import org.marc.everest.datatypes.NullFlavor; //导入依赖的package包/类
protected EntryRelationship getAllergenGroup() {
EntryRelationship entryRelationship = new EntryRelationship(x_ActRelationshipEntryRelationship.HasComponent, new BL(true));
Observation observation = new Observation(x_ActMoodDocumentObservation.Eventoccurrence);
CD<String> code = new CD<String>(Constants.ObservationType.ALRGRP.toString(), Constants.CodeSystems.ACT_CODE_CODESYSTEM_OID);
code.setCodeSystemName(Constants.CodeSystems.ACT_CODE_CODESYSTEM_NAME);
CD<String> value = new CD<String>();
value.setNullFlavor(NullFlavor.NoInformation);
observation.setCode(code);
observation.setValue(value);
entryRelationship.setClinicalStatement(observation);
return entryRelationship;
}
示例3: getClinicalStatus
import org.marc.everest.datatypes.NullFlavor; //导入依赖的package包/类
protected EntryRelationship getClinicalStatus() {
EntryRelationship entryRelationship = new EntryRelationship(x_ActRelationshipEntryRelationship.SUBJ, new BL(true));
Observation observation = new Observation(x_ActMoodDocumentObservation.Eventoccurrence);
CD<String> code = new CD<String>(Constants.ObservationType.CLINSTAT.toString(), Constants.CodeSystems.OBSERVATIONTYPE_CA_PENDING_OID);
code.setCodeSystemName(Constants.CodeSystems.OBSERVATIONTYPE_CA_PENDING_NAME);
ED text = new ED();
text.setNullFlavor(NullFlavor.NoInformation);
CD<String> value = new CD<String>();
value.setNullFlavor(NullFlavor.NoInformation);
observation.setCode(code);
observation.setText(text);
observation.setValue(value);
entryRelationship.setClinicalStatement(observation);
return entryRelationship;
}
示例4: setSubject
import org.marc.everest.datatypes.NullFlavor; //导入依赖的package包/类
private void setSubject() {
RelatedSubject relatedSubject = new RelatedSubject(x_DocumentSubject.PersonalRelationship);
Subject subject = new Subject(ContextControl.OverridingPropagating, relatedSubject);
String relationship = familyHistory.getExtMap().get(CaseManagementNoteExt.RELATIONSHIP);
CE<String> code = new CE<String>();
if(!EverestUtils.isNullorEmptyorWhitespace(relationship)) {
code.setCodeSystem(Constants.CodeSystems.ROLE_CODE_OID);
code.setCodeSystemName(Constants.CodeSystems.ROLE_CODE_NAME);
code.setDisplayName(relationship);
if(Mappings.personalRelationshipRole.containsKey(relationship.toLowerCase())) {
code.setCodeEx(Mappings.personalRelationshipRole.get(relationship.toLowerCase()));
} else {
code.setCodeEx("OTH");
}
} else {
code.setNullFlavor(NullFlavor.NoInformation);
}
relatedSubject.setCode(code);
this.subject = subject;
}
示例5: getEntryRelationship
import org.marc.everest.datatypes.NullFlavor; //导入依赖的package包/类
public EntryRelationship getEntryRelationship(String severity) {
entryRelationship.setTypeCode(x_ActRelationshipEntryRelationship.SUBJ);
entryRelationship.setContextConductionInd(true);
entryRelationship.setTemplateId(Arrays.asList(new II(Constants.ObservationOids.SEVERITY_OBSERVATION_TEMPLATE_ID)));
CD<String> value = new CD<String>();
if(Mappings.allergyTestValue.containsKey(severity)) {
value.setCodeEx(Mappings.allergyTestValue.get(severity));
value.setCodeSystem(Constants.CodeSystems.OBSERVATION_VALUE_OID);
value.setCodeSystemName(Constants.CodeSystems.OBSERVATION_VALUE_NAME);
value.setDisplayName(Mappings.allergyTestName.get(severity));
} else {
value.setNullFlavor(NullFlavor.Unknown);
}
observation.setMoodCode(x_ActMoodDocumentObservation.Eventoccurrence);
observation.getCode().setCodeEx(Constants.ObservationType.SEV.toString());
observation.setValue(value);
return entryRelationship;
}
示例6: getDuration
import org.marc.everest.datatypes.NullFlavor; //导入依赖的package包/类
private ISetComponent<TS> getDuration() {
IVL<TS> ivl = new IVL<TS>();
try {
if(!EverestUtils.isNullorEmptyorWhitespace(drug.getDuration()) && drug.getDuration() != "0" &&
!EverestUtils.isNullorEmptyorWhitespace(drug.getDurUnit())) {
BigDecimal duration = new BigDecimal(drug.getDuration());
ivl.setWidth(new PQ(duration, drug.getDurUnit()));
} else {
ivl.setNullFlavor(NullFlavor.Unknown);
}
} catch (NumberFormatException e) {
log.warn("Duration " + drug.getDuration() + " not a number");
ivl.setNullFlavor(NullFlavor.Unknown);
}
return ivl;
}
示例7: getFrequency
import org.marc.everest.datatypes.NullFlavor; //导入依赖的package包/类
private ISetComponent<TS> getFrequency() {
ISetComponent<TS> iSetComponent;
if(!EverestUtils.isNullorEmptyorWhitespace(drug.getFreqCode())) {
if(Mappings.frequencyInterval.containsKey(drug.getFreqCode())) {
iSetComponent = Mappings.frequencyInterval.get(drug.getFreqCode());
} else {
iSetComponent = new PIVL<TS>();
iSetComponent.setNullFlavor(new CS<NullFlavor>(NullFlavor.Other));
}
} else {
iSetComponent = new PIVL<TS>();
iSetComponent.setNullFlavor(new CS<NullFlavor>(NullFlavor.Unknown));
}
return iSetComponent;
}
示例8: getEntryRelationship
import org.marc.everest.datatypes.NullFlavor; //导入依赖的package包/类
public EntryRelationship getEntryRelationship(String value) {
entryRelationship.setTypeCode(x_ActRelationshipEntryRelationship.HasComponent);
entryRelationship.setContextConductionInd(true);
entryRelationship.setTemplateId(Arrays.asList(new II(Constants.ObservationOids.SECONDARY_CODE_ICD9_OBSERVATION_TEMPLATE_ID)));
observation.setMoodCode(x_ActMoodDocumentObservation.Eventoccurrence);
observation.getCode().setCodeEx(Constants.ObservationType.ICD9CODE.toString());
CD<String> icd9Value = new CD<String>();
if(!EverestUtils.isNullorEmptyorWhitespace(value)) {
String description = EverestUtils.getICD9Description(value);
if(!EverestUtils.isNullorEmptyorWhitespace(description)) {
icd9Value.setDisplayName(description);
}
icd9Value.setCodeEx(value);
icd9Value.setCodeSystem(Constants.CodeSystems.ICD9_OID);
icd9Value.setCodeSystemName(Constants.CodeSystems.ICD9_NAME);
} else {
icd9Value.setNullFlavor(NullFlavor.Unknown);
}
observation.setValue(icd9Value);
return entryRelationship;
}
示例9: getEntryRelationship
import org.marc.everest.datatypes.NullFlavor; //导入依赖的package包/类
public EntryRelationship getEntryRelationship(String value) {
entryRelationship.setTypeCode(x_ActRelationshipEntryRelationship.SUBJ);
entryRelationship.setContextConductionInd(true);
entryRelationship.setTemplateId(Arrays.asList(new II(Constants.ObservationOids.UNBOUND_OBSERVATION_TEMPLATE_ID)));
observation.setMoodCode(x_ActMoodDocumentObservation.Eventoccurrence);
observation.getCode().setCodeEx(Constants.ObservationType.UNBOUND.toString());
ED text = new ED();
if(!EverestUtils.isNullorEmptyorWhitespace(value)) {
text.setData(value);
} else {
text.setNullFlavor(NullFlavor.NoInformation);
}
observation.setText(text);
return entryRelationship;
}
示例10: getPerformer
import org.marc.everest.datatypes.NullFlavor; //导入依赖的package包/类
private ArrayList<Performer2> getPerformer() {
String labname = labComponent.getMeasurementsMap().get(Constants.MeasurementsExtKeys.labname.toString());
ArrayList<Performer2> performers = null;
if(!EverestUtils.isNullorEmptyorWhitespace(labname)) {
Performer2 performer = new Performer2();
AssignedEntity assignedEntity = new AssignedEntity();
Organization organization = new Organization();
II ii = new II();
ii.setNullFlavor(NullFlavor.NoInformation);
ON on = new ON(EntityNameUse.OfficialRecord, Arrays.asList(new ENXP(labname)));
organization.setName(new SET<ON>(on));
assignedEntity.setId(new SET<II>(ii));
assignedEntity.setRepresentedOrganization(organization);
performer.setTemplateId(Arrays.asList(new II(Constants.TemplateOids.PERFORMER_PARTICIPATION_TEMPLATE_ID)));
performer.setTime(getTime());
performer.setAssignedEntity(assignedEntity);
performers = new ArrayList<Performer2>(Arrays.asList(performer));
}
return performers;
}
示例11: setGender
import org.marc.everest.datatypes.NullFlavor; //导入依赖的package包/类
private void setGender() {
CE<AdministrativeGender> gender = new CE<AdministrativeGender>();
if(EverestUtils.isNullorEmptyorWhitespace(demographic.getSex())) {
gender.setNullFlavor(NullFlavor.NoInformation);
}
else {
String sexCode = demographic.getSex().toUpperCase().replace("U", "UN");
if(Mappings.genderCode.containsKey(sexCode)) {
gender.setCodeEx(Mappings.genderCode.get(sexCode));
gender.setDisplayName(Mappings.genderDescription.get(sexCode));
}
else {
gender.setNullFlavor(NullFlavor.NoInformation);
}
}
this.gender = gender;
}
示例12: setIds
import org.marc.everest.datatypes.NullFlavor; //导入依赖的package包/类
private void setIds() {
II id = new II();
if(!EverestUtils.isNullorEmptyorWhitespace(provider.getPractitionerNo())) {
id.setRoot(Constants.DocumentHeader.BC_MINISTRY_OF_HEALTH_PRACTITIONER_ID_OID);
id.setAssigningAuthorityName(Constants.DocumentHeader.BC_MINISTRY_OF_HEALTH_PRACTITIONER_NAME);
id.setExtension(provider.getPractitionerNo());
} else if (!EverestUtils.isNullorEmptyorWhitespace(provider.getOhipNo())) {
id.setRoot(Constants.DocumentHeader.MEDICAL_SERVICES_PLAN_BILLING_NUMBER_OID);
id.setAssigningAuthorityName(Constants.DocumentHeader.MEDICAL_SERVICES_PLAN_BILLING_NUMBER_NAME);
id.setExtension(provider.getOhipNo());
} else if (provider.getId() != null) {
id.setRoot(Constants.DocumentHeader.LOCALLY_ASSIGNED_IDENTIFIER_OID);
id.setAssigningAuthorityName(Constants.DocumentHeader.LOCALLY_ASSIGNED_IDENTIFIER_NAME);
id.setExtension(provider.getId());
} else {
id.setNullFlavor(NullFlavor.NoInformation);
}
this.ids = new SET<II>(id);
}
示例13: providerParticipationNullTest
import org.marc.everest.datatypes.NullFlavor; //导入依赖的package包/类
@Test
public void providerParticipationNullTest() {
Participant2 provider = new ProviderParticipationModel(null).getProvider();
assertNotNull(provider);
assertEquals(ParticipationType.PrimaryPerformer, provider.getTypeCode().getCode());
assertEquals(ContextControl.OverridingPropagating, provider.getContextControlCode().getCode());
assertTrue(provider.getTemplateId().contains(new II(Constants.TemplateOids.PROVIDER_PARTICIPATION_TEMPLATE_ID)));
ParticipantRole participantRole = provider.getParticipantRole();
assertNotNull(participantRole);
assertNotNull(participantRole.getId());
PlayingEntity playingEntity = participantRole.getPlayingEntityChoiceIfPlayingEntity();
assertNotNull(playingEntity);
assertNotNull(playingEntity.getDesc());
SET<PN> names = playingEntity.getName();
assertNotNull(names);
assertFalse(names.isNull());
assertFalse(names.isEmpty());
assertNotNull(names.get(0));
assertTrue(names.get(0).isNull());
assertEquals(NullFlavor.NoInformation, names.get(0).getNullFlavor().getCode());
}
示例14: allergyGroupNullTest
import org.marc.everest.datatypes.NullFlavor; //导入依赖的package包/类
@Test
public void allergyGroupNullTest() {
EntryRelationship entryRelationship = nullAllergiesModel.getAllergenGroup();
assertNotNull(entryRelationship);
assertTrue(entryRelationship.getContextConductionInd().toBoolean());
assertEquals(x_ActRelationshipEntryRelationship.HasComponent, entryRelationship.getTypeCode().getCode());
Observation observation = entryRelationship.getClinicalStatementIfObservation();
assertNotNull(observation);
assertEquals(ActClassObservation.OBS, observation.getClassCode().getCode());
assertEquals(x_ActMoodDocumentObservation.Eventoccurrence, observation.getMoodCode().getCode());
assertNotNull(observation.getCode());
assertEquals(Constants.ObservationType.ALRGRP.toString(), observation.getCode().getCode());
assertEquals(Constants.CodeSystems.ACT_CODE_CODESYSTEM_OID, observation.getCode().getCodeSystem());
assertEquals(Constants.CodeSystems.ACT_CODE_CODESYSTEM_NAME, observation.getCode().getCodeSystemName());
assertNotNull(observation.getValue());
assertTrue(observation.getValue().isNull());
assertEquals(NullFlavor.NoInformation, observation.getValue().getNullFlavor().getCode());
}
示例15: clinicalStatusTest
import org.marc.everest.datatypes.NullFlavor; //导入依赖的package包/类
@Test
public void clinicalStatusTest() {
EntryRelationship entryRelationship = allergiesModel.getClinicalStatus();
assertNotNull(entryRelationship);
assertTrue(entryRelationship.getContextConductionInd().toBoolean());
assertEquals(x_ActRelationshipEntryRelationship.SUBJ, entryRelationship.getTypeCode().getCode());
Observation observation = entryRelationship.getClinicalStatementIfObservation();
assertNotNull(observation);
assertEquals(ActClassObservation.OBS, observation.getClassCode().getCode());
assertEquals(x_ActMoodDocumentObservation.Eventoccurrence, observation.getMoodCode().getCode());
assertNotNull(observation.getCode());
assertEquals(Constants.ObservationType.CLINSTAT.toString(), observation.getCode().getCode());
assertEquals(Constants.CodeSystems.OBSERVATIONTYPE_CA_PENDING_OID, observation.getCode().getCodeSystem());
assertEquals(Constants.CodeSystems.OBSERVATIONTYPE_CA_PENDING_NAME, observation.getCode().getCodeSystemName());
assertNotNull(observation.getText());
assertTrue(observation.getText().isNull());
assertEquals(NullFlavor.NoInformation, observation.getText().getNullFlavor().getCode());
assertNotNull(observation.getValue());
assertTrue(observation.getValue().isNull());
assertEquals(NullFlavor.NoInformation, observation.getValue().getNullFlavor().getCode());
}