use of org.hl7.fhir.r5.utils.validation.constants in project cqf-ruler by DBCG.
the class DetectedIssueBuilder method initializeDstu2_1.
@Override
protected void initializeDstu2_1(T theResource) {
super.initializeDstu2_1(theResource);
org.hl7.fhir.dstu2016may.model.DetectedIssue detectedIssue = (org.hl7.fhir.dstu2016may.model.DetectedIssue) theResource;
detectedIssue.setIdentifier(new Identifier().setSystem(getIdentifier().getKey()).setValue(getIdentifier().getValue())).setPatient(new Reference(myPatient));
getEvidenceDetails().forEach(detectedIssue::setReference);
}
use of org.hl7.fhir.r5.utils.validation.constants in project cqf-ruler by DBCG.
the class IdsTest method testContextSupported.
@Test
public void testContextSupported() {
IIdType id = Ids.newId(FhirContext.forDstu3Cached(), "Patient/123");
assertTrue(id instanceof org.hl7.fhir.dstu3.model.IdType);
}
use of org.hl7.fhir.r5.utils.validation.constants in project cqf-ruler by DBCG.
the class IdsTest method testPartsSupported.
@Test
public void testPartsSupported() {
IIdType id = Ids.newId(FhirVersionEnum.DSTU3, "Patient", "123");
assertTrue(id instanceof org.hl7.fhir.dstu3.model.IdType);
assertEquals("Patient", id.getResourceType());
assertEquals("123", id.getIdPart());
}
use of org.hl7.fhir.r5.utils.validation.constants in project cqf-ruler by DBCG.
the class IdsTest method testClassSupported.
@Test
public void testClassSupported() {
IIdType id = Ids.newId(org.hl7.fhir.dstu3.model.Library.class, "123");
assertTrue(id instanceof org.hl7.fhir.dstu3.model.IdType);
assertEquals("Library", id.getResourceType());
assertEquals("123", id.getIdPart());
}
use of org.hl7.fhir.r5.utils.validation.constants in project cqf-ruler by DBCG.
the class DataRequirements method getModuleDefinitionLibraryDstu3.
public static org.hl7.fhir.dstu3.model.Library getModuleDefinitionLibraryDstu3(LibraryManager libraryManager, TranslatedLibrary translatedLibrary, CqlTranslatorOptions options) {
org.hl7.fhir.r5.model.Library libraryR5 = getModuleDefinitionLibraryR5(libraryManager, translatedLibrary, options);
BaseAdvisor_30_50 baseAdvisor_30_50 = new BaseAdvisor_30_50();
VersionConvertor_30_50 versionConvertor_30_50 = new VersionConvertor_30_50(baseAdvisor_30_50);
org.hl7.fhir.dstu3.model.Library libraryDstu3 = null;
libraryDstu3 = (org.hl7.fhir.dstu3.model.Library) versionConvertor_30_50.convertResource(libraryR5);
// There is no DSTU3 extension to support FHIRQueryPattern representation on a DataRequirement
return libraryDstu3;
}
Aggregations