def testPageOfFhirStores(self):
     """Test PageOfFhirStores"""
     PageOfFhirStores(offset=PageOffset(10),
                      limit=PageLimit(10),
                      links=ResponsePageMetadataLinks(next="next"),
                      total_results=30,
                      fhir_stores=[FhirStore(name=FhirStoreName("foo"))])
 def testPageOfDatasets(self):
     """Test PageOfDatasets"""
     PageOfDatasets(offset=PageOffset(10),
                    limit=PageLimit(10),
                    links=ResponsePageMetadataLinks(next="next"),
                    total_results=30,
                    datasets=[Dataset(name=DatasetName("foo"))])
示例#3
0
 def testPageOfPatients(self):
     """Test PageOfPatients"""
     PageOfPatients(offset=PageOffset(10),
                    limit=PageLimit(10),
                    links=ResponsePageMetadataLinks(next="next"),
                    total_results=30,
                    patients=[Patient(identifier=PatientId("note-id"))])
 def testPageOfAnnotationStores(self):
     """Test PageOfAnnotationStores"""
     # FIXME: construct object with mandatory attributes with example values
     # model = PageOfAnnotationStores()  # noqa: E501
     PageOfAnnotationStores(
         offset=PageOffset(3),
         limit=PageLimit(10),
         total_results=4,
         links=ResponsePageMetadataLinks(next="next"),
         annotation_stores=[
             AnnotationStore(name=AnnotationStoreName("name"))
         ])
示例#5
0
 def testPageOfNotes(self):
     """Test PageOfNotes"""
     # FIXME: construct object with mandatory attributes with example values
     # model = PageOfNotes()  # noqa: E501
     PageOfNotes(offset=PageOffset(10),
                 limit=PageLimit(10),
                 links=ResponsePageMetadataLinks(next="next"),
                 total_results=30,
                 notes=[
                     Note(identifier=NoteId("identifier"),
                          text="text",
                          type="type",
                          patient_id=PatientId('patient-1'))
                 ])
 def testPageOfAnnotations(self):
     """Test PageOfAnnotations"""
     # FIXME: construct object with mandatory attributes with example values
     # model = PageOfAnnotations()  # noqa: E501
     model = Annotation(name=AnnotationName("name"),
                        annotation_source=AnnotationSource(
                            resource_source=ResourceSource(name="foo")),
                        text_date_annotations=[
                            TextDateAnnotation(start=1,
                                               length=32,
                                               text='foo',
                                               confidence=95.5)
                        ])
     PageOfAnnotations(offset=PageOffset(10),
                       limit=PageLimit(10),
                       links=ResponsePageMetadataLinks(next="next"),
                       total_results=30,
                       annotations=[model])
 def testPageLimit(self):
     """Test PageLimit"""
     # FIXME: construct object with mandatory attributes with example values
     # model = PageLimit()  # noqa: E501
     PageLimit(10)
 def testResponsePageMetadata(self):
     """Test ResponsePageMetadata"""
     ResponsePageMetadata(offset=PageOffset(10),
                          limit=PageLimit(10),
                          links=ResponsePageMetadataLinks(next="next"),
                          total_results=30)