(self)
Returns the JSON schema of this resource type.

        >>> resource_type = FHIRResourceType(
        ...     case_type=CaseType(name='mother'),
        ...     name='Patient',
        ... )
        >>> schema = resource_type.get_json_schema()
        >>> schema['$ref']
        '#/definitions/Patient'
Returns the JSON schema of this resource type.
Returns the JSON schema of this resource type .
def get_json_schema(self) -> dict:
        """
        Returns the JSON schema of this resource type.

        >>> resource_type = FHIRResourceType(
        ...     case_type=CaseType(name='mother'),
        ...     name='Patient',
        ... )
        >>> schema = resource_type.get_json_schema()
        >>> schema['$ref']
        '#/definitions/Patient'

        """
        try:
            with open(self._schema_file, 'r') as file:
                return json.load(file)
        except FileNotFoundError:
            raise ConfigurationError(
                f'Unknown resource type {self.name!r} for FHIR version '
                f'{self.fhir_version}'
            )
def get_json_schema ( self ) -> dict : try : with open ( self . _schema_file , 'r' ) as file : return json . load ( file ) except FileNotFoundError : raise ConfigurationError ( f'Unknown resource type {self.name!r} for FHIR version ' f'{self.fhir_version}' )