public void ShapedDatasetSchemaExtractor_Encounter_Ok() { var fields = ShapedDatasetSchemaExtractor.Extract <Encounter>(); Assert.NotEmpty(fields); Assert.Contains(fields, f => f.Name == "personId" && f.Type == LeafType.String); Assert.Contains(fields, f => f.Name == "location" && f.Type == LeafType.String); }
public void ShapedDatasetSchemaExtractor_Observation_Ok() { var fields = ShapedDatasetSchemaExtractor.Extract <Observation>(); Assert.NotEmpty(fields); Assert.Contains(fields, f => f.Name == "personId" && f.Type == LeafType.String); Assert.Contains(fields, f => f.Name == "effectiveDate" && f.Type == LeafType.DateTime); }
MedicationAdministrationContract() { Shape = Shape.MedicationRequest; Fields = ShapedDatasetSchemaExtractor.Extract <MedicationAdministration>(); }
AllergyContract() { Shape = Shape.Allergy; Fields = ShapedDatasetSchemaExtractor.Extract <Allergy>(); }
ImmunizationContract() { Shape = Shape.Immunization; Fields = ShapedDatasetSchemaExtractor.Extract <Immunization>(); }
ProcedureContract() { Shape = Shape.Procedure; Fields = ShapedDatasetSchemaExtractor.Extract <Procedure>(); }
ConditionContract() { Shape = Shape.Condition; Fields = ShapedDatasetSchemaExtractor.Extract <Condition>(); }
DemographicContract() { Shape = Shape.Demographic; Fields = ShapedDatasetSchemaExtractor.Extract <PatientDemographic>(); }
EncounterContract() { Shape = Shape.Encounter; Fields = ShapedDatasetSchemaExtractor.Extract <Encounter>(); }
ObservationContract() { Shape = Shape.Observation; Fields = ShapedDatasetSchemaExtractor.Extract <Observation>(); }
ConceptDatasetContract() { Shape = Shape.Concept; Fields = ShapedDatasetSchemaExtractor.Extract <ConceptDataset>(); }