• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Meta类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.hl7.fhir.dstu3.model.Meta的典型用法代码示例。如果您正苦于以下问题:Java Meta类的具体用法?Java Meta怎么用?Java Meta使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Meta类属于org.hl7.fhir.dstu3.model包,在下文中一共展示了Meta类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: transform

import org.hl7.fhir.dstu3.model.Meta; //导入依赖的package包/类
@Override
public DocumentReference transform(final DocumentReferenceEntity documentReferenceEntity) {
    final DocumentReference documentReference = new DocumentReference();

    Meta meta = new Meta();
            //.addProfile(CareConnectProfile.Condition_1);

    if (documentReferenceEntity.getUpdated() != null) {
        meta.setLastUpdated(documentReferenceEntity.getUpdated());
    }
    else {
        if (documentReferenceEntity.getCreated() != null) {
            meta.setLastUpdated(documentReferenceEntity.getCreated());
        }
    }
    documentReference.setMeta(meta);

    documentReference.setId(documentReferenceEntity.getId().toString());



    for (DocumentReferenceIdentifier identifier : documentReferenceEntity.getIdentifiers()) {
        documentReference.addIdentifier()
                .setSystem(identifier.getSystem().getUri())
                .setValue(identifier.getValue());
    }

    return documentReference;

}
 
开发者ID:nhsconnect,项目名称:careconnect-reference-implementation,代码行数:31,代码来源:DocumentReferenceEntityToFHIRDocumentReferenceTransformer.java


示例2: makeShareable

import org.hl7.fhir.dstu3.model.Meta; //导入依赖的package包/类
public static CodeSystem makeShareable(CodeSystem cs) {
  if (!cs.hasMeta())
    cs.setMeta(new Meta());
  for (UriType t : cs.getMeta().getProfile()) 
    if (t.getValue().equals("http://hl7.org/fhir/StructureDefinition/shareablecodesystem"))
      return cs;
  cs.getMeta().getProfile().add(new UriType("http://hl7.org/fhir/StructureDefinition/shareablecodesystem"));
  return cs;
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:10,代码来源:CodeSystemUtilities.java


示例3: makeShareable

import org.hl7.fhir.dstu3.model.Meta; //导入依赖的package包/类
public static ValueSet makeShareable(ValueSet vs) {
  if (!vs.hasMeta())
    vs.setMeta(new Meta());
  for (UriType t : vs.getMeta().getProfile()) 
    if (t.getValue().equals("http://hl7.org/fhir/StructureDefinition/valueset-shareable-definition"))
      return vs;
  vs.getMeta().getProfile().add(new UriType("http://hl7.org/fhir/StructureDefinition/valueset-shareable-definition"));
  return vs;
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:10,代码来源:ValueSetUtilities.java


示例4: addReference

import org.hl7.fhir.dstu3.model.Meta; //导入依赖的package包/类
protected String addReference(DomainResource r, String title, String id) throws Exception {
	if (r.getText() == null)
		r.setText(new Narrative());
	if (r.getText().getDiv() == null) {
		r.getText().setStatus(NarrativeStatus.GENERATED);
		new NarrativeGenerator("", "", context).generate(r);
	}
	r.setMeta(new Meta().setLastUpdatedElement(InstantType.now()));
	r.setId(id);
	feed.getEntry().add(new BundleEntryComponent().setResource(r));
	return id;
}
 
开发者ID:jamesagnew,项目名称:hapi-fhir,代码行数:13,代码来源:CCDAConverter.java


示例5: transform

import org.hl7.fhir.dstu3.model.Meta; //导入依赖的package包/类
@Override
public Organization transform(final OrganisationEntity organisationEntity) {
    final Organization organisation = new Organization();

    Meta meta = new Meta().addProfile(CareConnectProfile.Organization_1);

    if (organisationEntity.getUpdated() != null) {
        meta.setLastUpdated(organisationEntity.getUpdated());
    }
    else {
        if (organisationEntity.getCreated() != null) {
            meta.setLastUpdated(organisationEntity.getCreated());
        }
    }
    organisation.setMeta(meta);

    for(int f=0;f<organisationEntity.getIdentifiers().size();f++)
    {
        organisation.addIdentifier()
                .setSystem(organisationEntity.getIdentifiers().get(f).getSystem().getUri())
                .setValue(organisationEntity.getIdentifiers().get(f).getValue());
    }


    organisation.setId(organisationEntity.getId().toString());

    organisation.setName(
            organisationEntity.getName());


    for(OrganisationTelecom telecom : organisationEntity.getTelecoms())
    {
        organisation.addTelecom()
                .setSystem(telecom.getSystem())
                .setValue(telecom.getValue())
                .setUse(telecom.getTelecomUse());
    }

    for(OrganisationAddress organisationAddress : organisationEntity.getAddresses()) {
        Address adr = addressTransformer.transform(organisationAddress);
        organisation.addAddress(adr);
    }

    if (organisationEntity.getType()!=null) {
        organisation.addType()
                .addCoding()
                .setCode(organisationEntity.getType().getCode())
                .setDisplay(organisationEntity.getType().getDisplay())
                .setSystem(organisationEntity.getType().getSystem());
    }
    if (organisationEntity.getPartOf() != null) {
        organisation.setPartOf(new Reference("Organization/"+organisationEntity.getPartOf().getId()));
        organisation.getPartOf().setDisplay(organisationEntity.getPartOf().getName());
    }
    if (organisationEntity.getActive() != null) {
        organisation.setActive(organisationEntity.getActive());
    }
    return organisation;

}
 
开发者ID:nhsconnect,项目名称:careconnect-reference-implementation,代码行数:61,代码来源:OrganisationEntityToFHIROrganizationTransformer.java


示例6: transform

import org.hl7.fhir.dstu3.model.Meta; //导入依赖的package包/类
@Override
public org.hl7.fhir.dstu3.model.PractitionerRole transform(final PractitionerRole roleEntity) {
    final org.hl7.fhir.dstu3.model.PractitionerRole practitionerRole = new org.hl7.fhir.dstu3.model.PractitionerRole();

    Meta meta = new Meta().addProfile(CareConnectProfile.PractitionerRole_1);

    if (roleEntity.getUpdated() != null) {
        meta.setLastUpdated(roleEntity.getUpdated());
    }
    else {
        if (roleEntity.getCreated() != null) {
            meta.setLastUpdated(roleEntity.getCreated());
        }
    }

    for(int f=0;f<roleEntity.getIdentifiers().size();f++)
    {
        practitionerRole.addIdentifier()
                .setSystem(roleEntity.getIdentifiers().get(f).getSystem().getUri())
                .setValue(roleEntity.getIdentifiers().get(f).getValue());
    }

    practitionerRole.setId(roleEntity.getId().toString());

    if (roleEntity.getOrganisation() != null) {
        practitionerRole.getOrganization()
                .setReference("Organization/"+roleEntity.getOrganisation().getId())
                .setDisplay(roleEntity.getOrganisation().getName());
    }
    if (roleEntity.getRole() != null) {
        CodeableConcept role = new CodeableConcept();
        role.addCoding()
                .setCode(roleEntity.getRole().getCode())
                .setDisplay(roleEntity.getRole().getDisplay())
                .setSystem(roleEntity.getRole().getSystem());
        practitionerRole.getCode().add(role);
    }
    if (roleEntity.getPractitioner() != null) {
        practitionerRole.getPractitioner()
                .setReference("Practitioner/"+roleEntity.getPractitioner().getId())
                .setDisplay(roleEntity.getPractitioner().getNames().get(0).getDisplayName());
    }
    for (PractitionerSpecialty specialty : roleEntity.getSpecialties()) {
        CodeableConcept concept = new CodeableConcept();
        concept.addCoding()
                .setCode(specialty.getSpecialty().getCode())
                .setDisplay(specialty.getSpecialty().getDisplay())
                .setSystem(specialty.getSpecialty().getSystem());
        practitionerRole.addSpecialty(concept);
    }

    for(PractitionerRoleIdentifier identifier : roleEntity.getIdentifiers())
    {
        practitionerRole.addIdentifier()
                .setSystem(identifier.getSystem().getUri())
                .setValue(identifier.getValue());
    }


    return practitionerRole;

}
 
开发者ID:nhsconnect,项目名称:careconnect-reference-implementation,代码行数:63,代码来源:PractitionerRoleToFHIRPractitionerRoleTransformer.java


示例7: transform

import org.hl7.fhir.dstu3.model.Meta; //导入依赖的package包/类
@Override
public DiagnosticReport transform(final DiagnosticReportEntity diagnosticReportEntity) {
    final DiagnosticReport diagnosticReport = new DiagnosticReport();

    Meta meta = new Meta();
            //.addProfile(CareConnectProfile.Condition_1);

    if (diagnosticReportEntity.getUpdated() != null) {
        meta.setLastUpdated(diagnosticReportEntity.getUpdated());
    }
    else {
        if (diagnosticReportEntity.getCreated() != null) {
            meta.setLastUpdated(diagnosticReportEntity.getCreated());
        }
    }
    diagnosticReport.setMeta(meta);

    diagnosticReport.setId(diagnosticReportEntity.getId().toString());



    if (diagnosticReportEntity.getStatus() != null) {
        diagnosticReport.setStatus(diagnosticReportEntity.getStatus());
    }

    if (diagnosticReportEntity.getPatient() != null) {
        diagnosticReport
                .setSubject(new Reference("Patient/"+diagnosticReportEntity.getPatient().getId())
                .setDisplay(diagnosticReportEntity.getPatient().getNames().get(0).getDisplayName()));
    }



    for (DiagnosticReportIdentifier identifier : diagnosticReportEntity.getIdentifiers()) {
        diagnosticReport.addIdentifier()
                .setSystem(identifier.getSystem().getUri())
                .setValue(identifier.getValue());
    }

    for (DiagnosticReportResult reportResult : diagnosticReportEntity.getResults()) {
        diagnosticReport.addResult(new Reference("Observation/"+reportResult.getObservation().getId()));
    }

    return diagnosticReport;

}
 
开发者ID:nhsconnect,项目名称:careconnect-reference-implementation,代码行数:47,代码来源:DiagnosticReportEntityToFHIRDiagnosticReportTransformer.java


示例8: transform

import org.hl7.fhir.dstu3.model.Meta; //导入依赖的package包/类
@Override
public EpisodeOfCare transform(final EpisodeOfCareEntity episodeEntity) {
    final EpisodeOfCare episode = new EpisodeOfCare();

    Meta meta = new Meta();
    //.addProfile(CareConnectProfile.EpisodeOfCare_1);

    if (episodeEntity.getUpdated() != null) {
        meta.setLastUpdated(episodeEntity.getUpdated());
    }
    else {
        if (episodeEntity.getCreated() != null) {
            meta.setLastUpdated(episodeEntity.getCreated());
        }
    }
    episode.setMeta(meta);

    episode.setId(episodeEntity.getId().toString());

    for(EpisodeOfCareIdentifier identifier : episodeEntity.getIdentifiers())
    {
        episode.addIdentifier()
                .setSystem(identifier.getSystem().getUri())
                .setValue(identifier.getValue());
    }
    if (episodeEntity.getCareManager() != null) {
        episode.setCareManager(new Reference("Practitioner/"+episodeEntity.getCareManager().getId()));
        episode.getCareManager().setDisplay(episodeEntity.getCareManager().getNames().get(0).getDisplayName());
    }
    if (episodeEntity.getPatient() != null) {
        episode
                .setPatient(new Reference("Patient/"+episodeEntity.getPatient().getId())
                .setDisplay(episodeEntity.getPatient().getNames().get(0).getDisplayName()));
    }
    if (episodeEntity.getManagingOrganisation() != null) {
        episode
                .setManagingOrganization(new Reference("Organization/"+episodeEntity.getManagingOrganisation().getId())
                .setDisplay(episodeEntity.getManagingOrganisation().getName()));
    }
    if (episodeEntity.getType() != null) {
        episode.addType().addCoding()
                .setCode(episodeEntity.getType().getCode())
                .setSystem(episodeEntity.getType().getSystem())
                .setDisplay(episodeEntity.getType().getDisplay());
    }
    if (episodeEntity.getStatus() != null) {
        episode.setStatus(episodeEntity.getStatus());
    }

    if (episodeEntity.getPeriodStartDate() != null || episodeEntity.getPeriodEndDate() != null)
    {
        Period period = new Period();
        if (episodeEntity.getPeriodStartDate() != null ) {
           period.setStart(episodeEntity.getPeriodStartDate());
        }
        if (episodeEntity.getPeriodEndDate() != null) {
            period.setEnd(episodeEntity.getPeriodEndDate());
        }
        episode.setPeriod(period);
    }


    return episode;

}
 
开发者ID:nhsconnect,项目名称:careconnect-reference-implementation,代码行数:66,代码来源:EpisodeOfCareEntityToFHIREpisodeOfCareTransformer.java


示例9: transform

import org.hl7.fhir.dstu3.model.Meta; //导入依赖的package包/类
@Override
public Practitioner transform(final PractitionerEntity practitionerEntity) {
    final Practitioner practitioner = new Practitioner();

    Meta meta = new Meta().addProfile(CareConnectProfile.Practitioner_1);

    if (practitionerEntity.getUpdated() != null) {
        meta.setLastUpdated(practitionerEntity.getUpdated());
    }
    else {
        if (practitionerEntity.getCreated() != null) {
            meta.setLastUpdated(practitionerEntity.getCreated());
        }
    }
    practitioner.setMeta(meta);
    if (practitionerEntity.getActive() != null) {
        practitioner.setActive(practitionerEntity.getActive());
    }

    for(int f=0;f<practitionerEntity.getIdentifiers().size();f++)
    {
        practitioner.addIdentifier()
                .setSystem(practitionerEntity.getIdentifiers().get(f).getSystem().getUri())
                .setValue(practitionerEntity.getIdentifiers().get(f).getValue());
    }


    practitioner.setId(practitionerEntity.getId().toString());

    if (practitionerEntity.getNames().size() > 0) {

        practitioner.addName()
                .setFamily(practitionerEntity.getNames().get(0).getFamilyName())
                .addGiven(practitionerEntity.getNames().get(0).getGivenName())
                .addPrefix(practitionerEntity.getNames().get(0).getPrefix());
    }
    for(int f=0;f<practitionerEntity.getTelecoms().size();f++)
    {
        practitioner.addTelecom()
                .setSystem(practitionerEntity.getTelecoms().get(f).getSystem())
                .setValue(practitionerEntity.getTelecoms().get(f).getValue())
                .setUse(practitionerEntity.getTelecoms().get(f).getTelecomUse());
    }


    for (PractitionerAddress practitionerAddress : practitionerEntity.getAddresses()){
        Address address = addressTransformer.transform(practitionerAddress);
        practitioner.addAddress(address);
    }

    if (practitionerEntity.getGender() !=null)
    {
        practitioner.setGender(daoutils.getGender(practitionerEntity.getGender()));
    }

    return practitioner;

}
 
开发者ID:nhsconnect,项目名称:careconnect-reference-implementation,代码行数:59,代码来源:PractitionerEntityToFHIRPractitionerTransformer.java


示例10: transform

import org.hl7.fhir.dstu3.model.Meta; //导入依赖的package包/类
@Override
public Location transform(final LocationEntity locationEntity) {
    final Location location = new Location();

    Meta meta = new Meta().addProfile(CareConnectProfile.Location_1);

    if (locationEntity.getUpdated() != null) {
        meta.setLastUpdated(locationEntity.getUpdated());
    }
    else {
        if (locationEntity.getCreated() != null) {
            meta.setLastUpdated(locationEntity.getCreated());
        }
    }
    location.setMeta(meta);

    for(int f=0;f<locationEntity.getIdentifiers().size();f++)
    {
        location.addIdentifier()
                .setSystem(locationEntity.getIdentifiers().get(f).getSystem().getUri())
                .setValue(locationEntity.getIdentifiers().get(f).getValue());
    }


    location.setId(locationEntity.getId().toString());

    location.setName(locationEntity.getName());

    for(int f=0;f<locationEntity.getTelecoms().size();f++)
    {
        location.addTelecom()
                .setSystem(locationEntity.getTelecoms().get(f).getSystem())
                .setValue(locationEntity.getTelecoms().get(f).getValue())
                .setUse(locationEntity.getTelecoms().get(f).getTelecomUse());
    }

    for (LocationAddress locationAddress : locationEntity.getAddresses()){
        Address adr= addressTransformer.transform(locationAddress);
        location.setAddress(adr);
    }

    if (locationEntity.getManagingOrganisation() != null) {
        location.setManagingOrganization(new Reference("Organization/"+locationEntity.getManagingOrganisation().getId()));
        location.getManagingOrganization().setDisplay(locationEntity.getManagingOrganisation().getName());
    }
    if (locationEntity.getType()!=null) {
        location.getType().addCoding()
                .setCode(locationEntity.getType().getCode())
                .setDisplay(locationEntity.getType().getDisplay())
                .setSystem(locationEntity.getType().getSystem());
    }
    if (locationEntity.getPhysicalType()!=null) {
        location.getPhysicalType().addCoding()
                .setCode(locationEntity.getPhysicalType().getCode())
                .setDisplay(locationEntity.getPhysicalType().getDisplay())
                .setSystem(locationEntity.getPhysicalType().getSystem());
    }
    if (locationEntity.getPartOf() !=null) {
        location.setPartOf(new Reference("Location/"+locationEntity.getPartOf().getId()))
        .getPartOf().setDisplay(locationEntity.getPartOf().getName());
    }


    return location;

}
 
开发者ID:nhsconnect,项目名称:careconnect-reference-implementation,代码行数:67,代码来源:LocationEntityToFHIRLocationTransformer.java


示例11: transform

import org.hl7.fhir.dstu3.model.Meta; //导入依赖的package包/类
@Override
public Condition transform(final ConditionEntity conditionEntity) {
    final Condition condition = new Condition();

    Meta meta = new Meta().addProfile(CareConnectProfile.Condition_1);

    if (conditionEntity.getUpdated() != null) {
        meta.setLastUpdated(conditionEntity.getUpdated());
    }
    else {
        if (conditionEntity.getCreated() != null) {
            meta.setLastUpdated(conditionEntity.getCreated());
        }
    }
    condition.setMeta(meta);

    condition.setId(conditionEntity.getId().toString());

    if (conditionEntity.getPatient() != null) {
        condition
                .setSubject(new Reference("Patient/"+conditionEntity.getPatient().getId())
                .setDisplay(conditionEntity.getPatient().getNames().get(0).getDisplayName()));
    }
    if (conditionEntity.getAssertedDateTime() != null) {
        condition.setAssertedDate(conditionEntity.getAssertedDateTime());
    }
    if (conditionEntity.getAsserterPractitioner() != null) {
        condition.setAsserter(
                new Reference("Practitioner/"+conditionEntity.getAsserterPractitioner().getId())
                .setDisplay(conditionEntity.getAsserterPractitioner().getNames().get(0).getDisplayName())
        );
    }
    if (conditionEntity.getClinicalStatus() != null) {
        condition.setClinicalStatus(conditionEntity.getClinicalStatus());
    }
    if (conditionEntity.getCode() != null) {
        condition.getCode().addCoding()
                .setCode(conditionEntity.getCode().getCode())
                .setDisplay(conditionEntity.getCode().getDisplay())
                .setSystem(conditionEntity.getCode().getSystem());
    }
    if (conditionEntity.getContextEncounter() != null) {
        condition.setContext(new Reference("Encounter/"+conditionEntity.getContextEncounter().getId()));
    } else if (conditionEntity.getContextEpisode() != null) {
        condition.setContext(new Reference("EpisodeOfCare/"+conditionEntity.getContextEpisode().getId()));
    }
    if (conditionEntity.getOnsetDateTime() != null) {
        condition.setOnset(new DateTimeType().setValue(conditionEntity.getOnsetDateTime()));
    }
    if (conditionEntity.getVerificationStatus()!=null) {
        condition.setVerificationStatus(conditionEntity.getVerificationStatus());
    }
    if (conditionEntity.getAssertedDateTime() != null) {
        condition.setAssertedDate(conditionEntity.getAssertedDateTime());
    }
    if (conditionEntity.getSeverity() != null) {
        condition.getSeverity().addCoding()
                .setCode(conditionEntity.getSeverity().getCode())
                .setDisplay(conditionEntity.getSeverity().getDisplay())
                .setSystem(conditionEntity.getSeverity().getSystem());
    }
    for (ConditionCategory category : conditionEntity.getCategories()) {
        condition.addCategory().addCoding()
                .setCode(category.getCategory().getCode())
                .setSystem(category.getCategory().getSystem())
                .setDisplay(category.getCategory().getDisplay());
    }
    for (ConditionIdentifier identifier : conditionEntity.getIdentifiers()) {
        condition.addIdentifier()
                .setSystem(identifier.getSystem().getUri())
                .setValue(identifier.getValue());
    }

    return condition;

}
 
开发者ID:nhsconnect,项目名称:careconnect-reference-implementation,代码行数:77,代码来源:ConditionEntityToFHIRConditionTransformer.java



注:本文中的org.hl7.fhir.dstu3.model.Meta类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ImplicitAccessTokenProvider类代码示例发布时间:2022-05-23
下一篇:
Java DOMHelper类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap