Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 MedicationAdministrationContract()
 {
     Shape  = Shape.MedicationRequest;
     Fields = ShapedDatasetSchemaExtractor.Extract <MedicationAdministration>();
 }
Exemple #4
0
 AllergyContract()
 {
     Shape  = Shape.Allergy;
     Fields = ShapedDatasetSchemaExtractor.Extract <Allergy>();
 }
Exemple #5
0
 ImmunizationContract()
 {
     Shape  = Shape.Immunization;
     Fields = ShapedDatasetSchemaExtractor.Extract <Immunization>();
 }
Exemple #6
0
 ProcedureContract()
 {
     Shape  = Shape.Procedure;
     Fields = ShapedDatasetSchemaExtractor.Extract <Procedure>();
 }
Exemple #7
0
 ConditionContract()
 {
     Shape  = Shape.Condition;
     Fields = ShapedDatasetSchemaExtractor.Extract <Condition>();
 }
Exemple #8
0
 DemographicContract()
 {
     Shape  = Shape.Demographic;
     Fields = ShapedDatasetSchemaExtractor.Extract <PatientDemographic>();
 }
Exemple #9
0
 EncounterContract()
 {
     Shape  = Shape.Encounter;
     Fields = ShapedDatasetSchemaExtractor.Extract <Encounter>();
 }
Exemple #10
0
 ObservationContract()
 {
     Shape  = Shape.Observation;
     Fields = ShapedDatasetSchemaExtractor.Extract <Observation>();
 }
Exemple #11
0
 ConceptDatasetContract()
 {
     Shape  = Shape.Concept;
     Fields = ShapedDatasetSchemaExtractor.Extract <ConceptDataset>();
 }