snomed

package
v1.0.1-0...-ff3196c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package snomed defines the specification for SNOMED-CT releases in the RF2 format. See https://confluence.ihtsdotools.org/display/DOCRELFMT/SNOMED+CT+Release+File+Specifications

These are, in large part, raw representations of the release files with some small additions, predominantly relating to valid enumerations, to aid computability.

The structures are not intended for use in a working terminology server which needs optimised structures in order to be performant.

These structures are designed to cope with importing any SNOMED-CT distribution, including full distributions, a snapshot or a delta.

Full The files representing each type of component contain every version of every component ever released. Snapshot The files representing each type of component contain one version of every component released up to the time of the snapshot. The version of each component contained in a snapshot is the most recent version of that component at the time of the snapshot. Delta The files representing each type of component contain only component versions created since the previous release. Each component version in a delta release represents either a new component or a change to an existing component.

NB: The associated import functionality imports only from snapshot files.

***************************************************************************

Copyright 2018 Mark Wardle / Eldrix Ltd

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Package snomed is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	AdditionalRelationship int64 = 900000000000227009
	DefiningRelationship   int64 = 900000000000006009 // NB:  has children inferred and stated
	InferredRelationship   int64 = 900000000000011006 // NB: IS-A defining
	StatedRelationship     int64 = 900000000000010007 // NB: IS-A defining
	QualifyingRelationship int64 = 900000000000225001
)

Valid types of characteristic types

View Source
const (
	// The SNOMED CT root concept
	Root Identifier = 138875005

	// IsAConceptID represents the relationship type, IS-A; the commonest type of relationship
	IsA = 116680003

	// Top level concepts
	BodyStructure                   = 123037004
	ClinicalFinding                 = 404684003
	EnvironmentGeographicLocation   = 308916002
	Event                           = 308916002
	ObservableEntity                = 363787002
	Organism                        = 410607006
	PharmaceuticalBiologicalProduct = 373873005
	PhysicalForce                   = 78621006
	PhysicalObject                  = 260787004
	Procedure                       = 71388002
	QualifierValue                  = 362981000
	RecordArtefact                  = 419891008
	SituationWithExplicitContext    = 243796009
	SocialContext                   = 243796009
	Specimen                        = 123038009
	StagingAndScales                = 254291000
	Substance                       = 254291000
	LinkageConcept                  = 106237007

	// Special concepts
	SpecialConcept      = 370115009
	NavigationalConcept = 363743006
	ReferenceSetConcept = 900000000000455006

	// RelationshipType concepts
	Attribute                    = 246061005
	ConceptModelAttribute        = 410662002
	Access                       = 260507000
	AssociatedFinding            = 246090004
	AssociatedMorphology         = 116676008
	AssociatedProcedure          = 363589002
	AssociatedWith               = 47429007
	After                        = 255234002
	CausativeAgent               = 246075003
	DueTo                        = 42752001
	ClinicalCourse               = 263502005
	Component                    = 246093002
	DirectSubstance              = 363701004
	Episodicity                  = 246456000
	FindingContext               = 408729009
	FindingInformer              = 419066007
	FindingMethod                = 418775008
	FindingSite                  = 363698007
	HasActiveIngredient          = 127489000
	HasDefinitionalManifestation = 363705008
	HasDoseForm                  = 411116001
	HasFocus                     = 363702006
	HasIntent                    = 363703001
	HasInterpretation            = 363713009
	HasSpecimen                  = 116686009
	Interprets                   = 363714003
	Laterality                   = 272741003
	MeasurementMethod            = 370129005
	Method                       = 260686004
	Occurrence                   = 246454002
	PartOf                       = 123005000
	PathologicalProcess          = 370135005
	Priority                     = 260870009
	ProcedureContext             = 408730004
	ProcedureDevice              = 405815000
	DirectDevice                 = 363699004
	IndirectDevice               = 363710007
	UsingDevice                  = 424226004
	UsingAccessDevice            = 425391005
	ProcedureMorphology          = 405816004
	DirectMorphology             = 363700003
	IndirectMorphology           = 363709002
	ProcedureSite                = 363704007
	ProcedureSiteDirect          = 405813007
	ProcedureSiteIndirect        = 405814001
	Property                     = 370130000
	RecipientCategory            = 370131001
	RevisionStatus               = 246513007
	RouteOfAdministration        = 410675002
	ScaleType                    = 370132008
	Severity                     = 246112005
	SpecimenProcedure            = 118171006
	SpecimenSourceIdentity       = 118170007
	SpecimenSourceMorphology     = 118168003
	SpecimenSourceTopography     = 118169006
	SpecimenSubstance            = 370133003
	SubjectOfInformation         = 131195008
	SubjectRelationshipContext   = 408732007
	SurgicalApproach             = 424876005
	TemporalContext              = 408731000
	TimeAspect                   = 370134009
	UsingEnergy                  = 424244007
	UsingSubstance               = 42436100

	// Other common concepts
	Side = 182353008
)

Common concept identifiers, predominantly for the SNOMED-CT metadata model.

View Source
const (
	LateralisableReferenceSet        = 723264001
	PossiblyEquivalentToReferenceSet = 900000000000523009
	ReplacedByReferenceSet           = 900000000000526001
	SimilarToReferenceSet            = 900000000000529008
	SameAsReferenceSet               = 900000000000527005
	WasAReferenceSet                 = 900000000000528000
)

common known reference sets useful for semantic interpretation

Variables

View Source
var (
	Expression_DefinitionStatus_name = map[int32]string{
		0: "EQUIVALENT_TO",
		1: "SUBTYPE_OF",
	}
	Expression_DefinitionStatus_value = map[string]int32{
		"EQUIVALENT_TO": 0,
		"SUBTYPE_OF":    1,
	}
)

Enum value maps for Expression_DefinitionStatus.

View Source
var (
	SubsumptionResponse_Result_name = map[int32]string{
		0: "EQUIVALENT",
		1: "SUBSUMES",
		2: "SUBSUMED_BY",
		3: "NOT_SUBSUMED",
	}
	SubsumptionResponse_Result_value = map[string]int32{
		"EQUIVALENT":   0,
		"SUBSUMES":     1,
		"SUBSUMED_BY":  2,
		"NOT_SUBSUMED": 3,
	}
)

Enum value maps for SubsumptionResponse_Result.

View Source
var (
	MapRequest_Parents_name = map[int32]string{
		0: "FALLBACK",
		1: "ALWAYS",
		2: "NEVER",
	}
	MapRequest_Parents_value = map[string]int32{
		"FALLBACK": 0,
		"ALWAYS":   1,
		"NEVER":    2,
	}
)

Enum value maps for MapRequest_Parents.

View Source
var (
	SearchRequest_Fuzzy_name = map[int32]string{
		0: "FALLBACK_FUZZY",
		1: "ALWAYS_FUZZY",
		2: "NO_FUZZY",
	}
	SearchRequest_Fuzzy_value = map[string]int32{
		"FALLBACK_FUZZY": 0,
		"ALWAYS_FUZZY":   1,
		"NO_FUZZY":       2,
	}
)

Enum value maps for SearchRequest_Fuzzy.

View Source
var File_server_proto protoreflect.FileDescriptor
View Source
var File_snomed_proto protoreflect.FileDescriptor

Functions

func RegisterSearchHandler

func RegisterSearchHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSearchHandler registers the http handlers for service Search to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSearchHandlerClient

func RegisterSearchHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SearchClient) error

RegisterSearchHandlerClient registers the http handlers for service Search to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SearchClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SearchClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SearchClient" to call the correct interceptors.

func RegisterSearchHandlerFromEndpoint

func RegisterSearchHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSearchHandlerFromEndpoint is same as RegisterSearchHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSearchHandlerServer

func RegisterSearchHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SearchServer) error

RegisterSearchHandlerServer registers the http handlers for service Search to "mux". UnaryRPC :call SearchServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterSearchServer

func RegisterSearchServer(s *grpc.Server, srv SearchServer)

func RegisterSnomedCTHandler

func RegisterSnomedCTHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSnomedCTHandler registers the http handlers for service SnomedCT to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSnomedCTHandlerClient

func RegisterSnomedCTHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SnomedCTClient) error

RegisterSnomedCTHandlerClient registers the http handlers for service SnomedCT to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SnomedCTClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SnomedCTClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SnomedCTClient" to call the correct interceptors.

func RegisterSnomedCTHandlerFromEndpoint

func RegisterSnomedCTHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSnomedCTHandlerFromEndpoint is same as RegisterSnomedCTHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSnomedCTHandlerServer

func RegisterSnomedCTHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SnomedCTServer) error

RegisterSnomedCTHandlerServer registers the http handlers for service SnomedCT to "mux". UnaryRPC :call SnomedCTServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterSnomedCTServer

func RegisterSnomedCTServer(s *grpc.Server, srv SnomedCTServer)

Types

type AssociationReferenceSet

type AssociationReferenceSet struct {
	TargetComponentId int64 `protobuf:"varint,1,opt,name=target_component_id,json=targetComponentId,proto3" json:"target_component_id,omitempty"`
	// contains filtered or unexported fields
}

AssociationReferenceSet provides a way to associate one component with another, with meaning defined by the refset itself. See https://confluence.ihtsdotools.org/display/DOCRELFMT/5.2.5+Association+Reference+Set

func (*AssociationReferenceSet) Descriptor deprecated

func (*AssociationReferenceSet) Descriptor() ([]byte, []int)

Deprecated: Use AssociationReferenceSet.ProtoReflect.Descriptor instead.

func (*AssociationReferenceSet) GetTargetComponentId

func (x *AssociationReferenceSet) GetTargetComponentId() int64

func (*AssociationReferenceSet) ProtoMessage

func (*AssociationReferenceSet) ProtoMessage()

func (*AssociationReferenceSet) ProtoReflect

func (x *AssociationReferenceSet) ProtoReflect() protoreflect.Message

func (*AssociationReferenceSet) Reset

func (x *AssociationReferenceSet) Reset()

func (*AssociationReferenceSet) String

func (x *AssociationReferenceSet) String() string

type AttributeValueReferenceSet

type AttributeValueReferenceSet struct {
	ValueId int64 `protobuf:"varint,1,opt,name=value_id,json=valueId,proto3" json:"value_id,omitempty"` //The tagged value applied to the referencedComponentId. A subtype of 900000000000491004 |Attribute value|.
	// contains filtered or unexported fields
}

AttributeValueReferenceSet provides a way to associate arbitrary attributes with a SNOMED-CT component See https://confluence.ihtsdotools.org/display/DOCRELFMT/5.2.3+Attribute+Value+Reference+Set

func (*AttributeValueReferenceSet) Descriptor deprecated

func (*AttributeValueReferenceSet) Descriptor() ([]byte, []int)

Deprecated: Use AttributeValueReferenceSet.ProtoReflect.Descriptor instead.

func (*AttributeValueReferenceSet) GetValueId

func (x *AttributeValueReferenceSet) GetValueId() int64

func (*AttributeValueReferenceSet) ProtoMessage

func (*AttributeValueReferenceSet) ProtoMessage()

func (*AttributeValueReferenceSet) ProtoReflect

func (*AttributeValueReferenceSet) Reset

func (x *AttributeValueReferenceSet) Reset()

func (*AttributeValueReferenceSet) String

func (x *AttributeValueReferenceSet) String() string

type CaseSignificanceID

type CaseSignificanceID int64

CaseSignificanceID provides information about case significance for the description

const (
	EntireTermCaseInsensitive     CaseSignificanceID = 900000000000448009
	EntireTermCaseSensitive       CaseSignificanceID = 900000000000017005
	InitialCharacterCaseSensitive CaseSignificanceID = 900000000000020002
)

Available case significance options

type ComplexMapReferenceSet

type ComplexMapReferenceSet struct {
	MapGroup    int64  `protobuf:"varint,1,opt,name=map_group,json=mapGroup,proto3" json:"map_group,omitempty"`          // An Integer, grouping a set of complex map records from which one may be selected as a target code.
	MapPriority int64  `protobuf:"varint,2,opt,name=map_priority,json=mapPriority,proto3" json:"map_priority,omitempty"` // Within a mapGroup, the mapPriority specifies the order in which complex map records should be checked
	MapRule     string `protobuf:"bytes,3,opt,name=map_rule,json=mapRule,proto3" json:"map_rule,omitempty"`              // A machine-readable rule, (evaluating to either 'true' or 'false' at run-time) that indicates whether this map record should be selected within its mapGroup.
	MapAdvice   string `protobuf:"bytes,4,opt,name=map_advice,json=mapAdvice,proto3" json:"map_advice,omitempty"`        // Human-readable advice, that may be employed by the software vendor to give an end-user advice on selection of the appropriate target code from the alternatives presented to him within the group.
	MapTarget   string `protobuf:"bytes,5,opt,name=map_target,json=mapTarget,proto3" json:"map_target,omitempty"`        // The target code in the target terminology, classification or code system.
	Correlation int64  `protobuf:"varint,6,opt,name=correlation,proto3" json:"correlation,omitempty"`                    // A child of 447247004 |SNOMED CT source code to target map code correlation value|in the metadata hierarchy, identifying the correlation between the SNOMED CT concept and the target code.
	MapBlock    int64  `protobuf:"varint,7,opt,name=map_block,json=mapBlock,proto3" json:"map_block,omitempty"`          // Only for complex map refsets: der2_iisssciRefset
	MapCategory int64  `protobuf:"varint,8,opt,name=map_category,json=mapCategory,proto3" json:"map_category,omitempty"` // Only for extended complex map refsets: Identifies the SNOMED CT concept in the metadata hierarchy which represents the MapCategory for the associated map member.
	// contains filtered or unexported fields
}

ComplexMapReferenceSet represents a complex one-to-many map between SNOMED-CT and another coding system. A 447250001 |Complex map type reference set|enables representation of maps where each SNOMED CT concept may map to one or more codes in a target scheme. The type of reference set supports the general set of mapping data required to enable a target code to be selected at run-time from a number of alternate codes. It supports target code selection by accommodating the inclusion of machine readable rules and/or human readable advice. An 609331003 |Extended map type reference set|adds an additional field to allow categorization of maps. Unfortunately, the documentation for complex and extended reference sets is out of date. https://confluence.ihtsdotools.org/display/DOCRELFMT/5.2.10+Complex+and+Extended+Map+Reference+Sets A complex map includes an undocumented "map block", and an extended map contains a "category". Rather than using a oneof {}, I have quite deliberately kept both.

func (*ComplexMapReferenceSet) Descriptor deprecated

func (*ComplexMapReferenceSet) Descriptor() ([]byte, []int)

Deprecated: Use ComplexMapReferenceSet.ProtoReflect.Descriptor instead.

func (*ComplexMapReferenceSet) GetCorrelation

func (x *ComplexMapReferenceSet) GetCorrelation() int64

func (*ComplexMapReferenceSet) GetMapAdvice

func (x *ComplexMapReferenceSet) GetMapAdvice() string

func (*ComplexMapReferenceSet) GetMapBlock

func (x *ComplexMapReferenceSet) GetMapBlock() int64

func (*ComplexMapReferenceSet) GetMapCategory

func (x *ComplexMapReferenceSet) GetMapCategory() int64

func (*ComplexMapReferenceSet) GetMapGroup

func (x *ComplexMapReferenceSet) GetMapGroup() int64

func (*ComplexMapReferenceSet) GetMapPriority

func (x *ComplexMapReferenceSet) GetMapPriority() int64

func (*ComplexMapReferenceSet) GetMapRule

func (x *ComplexMapReferenceSet) GetMapRule() string

func (*ComplexMapReferenceSet) GetMapTarget

func (x *ComplexMapReferenceSet) GetMapTarget() string

func (*ComplexMapReferenceSet) ProtoMessage

func (*ComplexMapReferenceSet) ProtoMessage()

func (*ComplexMapReferenceSet) ProtoReflect

func (x *ComplexMapReferenceSet) ProtoReflect() protoreflect.Message

func (*ComplexMapReferenceSet) Reset

func (x *ComplexMapReferenceSet) Reset()

func (*ComplexMapReferenceSet) String

func (x *ComplexMapReferenceSet) String() string

type Concept

type Concept struct {
	Id                 int64                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                                             // Uniquely identifies the concept.
	EffectiveTime      *timestamp.Timestamp `protobuf:"bytes,2,opt,name=effective_time,json=effectiveTime,proto3" json:"effective_time,omitempty"`                   // Specifies the inclusive date at which the component version's state became the then current valid state of the component
	Active             bool                 `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"`                                                     // Specifies whether the concept was active or inactive from the nominal release date specified by the effectiveTime.
	ModuleId           int64                `protobuf:"varint,4,opt,name=module_id,json=moduleId,proto3" json:"module_id,omitempty"`                                 // Identifies the concept version's module. Set to a descendant of 900000000000443000 |Module|within the metadata hierarchy.
	DefinitionStatusId int64                `protobuf:"varint,5,opt,name=definition_status_id,json=definitionStatusId,proto3" json:"definition_status_id,omitempty"` // Specifies if the concept version is primitive or sufficiently defined. Set to a descendant of 900000000000444006 |Definition status|in the metadata hierarchy.
	// contains filtered or unexported fields
}

A Concept represents a SNOMED-CT concept. The RF2 release allows multiple duplicate entries per concept identifier to permit versioning. As such, we have a compound primary key made up of the concept identifier and the effective time. Only one concept with a specified identifier will be active at any time point. See https://confluence.ihtsdotools.org/display/DOCRELFMT/3.2.1.+Concept+File+Specification

func (*Concept) Descriptor deprecated

func (*Concept) Descriptor() ([]byte, []int)

Deprecated: Use Concept.ProtoReflect.Descriptor instead.

func (*Concept) GetActive

func (x *Concept) GetActive() bool

func (*Concept) GetDefinitionStatusId

func (x *Concept) GetDefinitionStatusId() int64

func (*Concept) GetEffectiveTime

func (x *Concept) GetEffectiveTime() *timestamp.Timestamp

func (*Concept) GetId

func (x *Concept) GetId() int64

func (*Concept) GetModuleId

func (x *Concept) GetModuleId() int64

func (*Concept) IsPrimitive

func (c *Concept) IsPrimitive() bool

IsPrimitive returns whether this concept has a concept definition that is not sufficient to computably distinguish it from other concepts.

func (*Concept) IsSufficientlyDefined

func (c *Concept) IsSufficientlyDefined() bool

IsSufficientlyDefined returns whether this concept has a formal logic definition that is sufficient to distinguish its meaning from other similar concepts.

func (*Concept) ProtoMessage

func (*Concept) ProtoMessage()

func (*Concept) ProtoReflect

func (x *Concept) ProtoReflect() protoreflect.Message

func (*Concept) Reset

func (x *Concept) Reset()

func (*Concept) String

func (x *Concept) String() string

type ConceptDescriptions

type ConceptDescriptions struct {
	Concept              *Concept       `protobuf:"bytes,1,opt,name=concept,proto3" json:"concept,omitempty"`
	PreferredDescription *Description   `protobuf:"bytes,2,opt,name=preferred_description,json=preferredDescription,proto3" json:"preferred_description,omitempty"`
	FullySpecifiedName   *Description   `protobuf:"bytes,3,opt,name=fully_specified_name,json=fullySpecifiedName,proto3" json:"fully_specified_name,omitempty"`
	Synonyms             []*Description `protobuf:"bytes,4,rep,name=synonyms,proto3" json:"synonyms,omitempty"`
	Definitions          []*Description `protobuf:"bytes,5,rep,name=definitions,proto3" json:"definitions,omitempty"`
	// contains filtered or unexported fields
}

ConceptDescriptions defined the preferred description and available synonyms for the concept specified.

func (*ConceptDescriptions) Descriptor deprecated

func (*ConceptDescriptions) Descriptor() ([]byte, []int)

Deprecated: Use ConceptDescriptions.ProtoReflect.Descriptor instead.

func (*ConceptDescriptions) GetConcept

func (x *ConceptDescriptions) GetConcept() *Concept

func (*ConceptDescriptions) GetDefinitions

func (x *ConceptDescriptions) GetDefinitions() []*Description

func (*ConceptDescriptions) GetFullySpecifiedName

func (x *ConceptDescriptions) GetFullySpecifiedName() *Description

func (*ConceptDescriptions) GetPreferredDescription

func (x *ConceptDescriptions) GetPreferredDescription() *Description

func (*ConceptDescriptions) GetSynonyms

func (x *ConceptDescriptions) GetSynonyms() []*Description

func (*ConceptDescriptions) ProtoMessage

func (*ConceptDescriptions) ProtoMessage()

func (*ConceptDescriptions) ProtoReflect

func (x *ConceptDescriptions) ProtoReflect() protoreflect.Message

func (*ConceptDescriptions) Reset

func (x *ConceptDescriptions) Reset()

func (*ConceptDescriptions) String

func (x *ConceptDescriptions) String() string

type ConceptReference

type ConceptReference struct {
	ConceptId int64  `protobuf:"varint,1,opt,name=concept_id,json=conceptId,proto3" json:"concept_id,omitempty"`
	Term      string `protobuf:"bytes,2,opt,name=term,proto3" json:"term,omitempty"`
	// contains filtered or unexported fields
}

ConceptReference is a simple reference to a concept with an optional preferred description included.

func (*ConceptReference) Descriptor deprecated

func (*ConceptReference) Descriptor() ([]byte, []int)

Deprecated: Use ConceptReference.ProtoReflect.Descriptor instead.

func (*ConceptReference) GetConceptId

func (x *ConceptReference) GetConceptId() int64

func (*ConceptReference) GetTerm

func (x *ConceptReference) GetTerm() string

func (*ConceptReference) ProtoMessage

func (*ConceptReference) ProtoMessage()

func (*ConceptReference) ProtoReflect

func (x *ConceptReference) ProtoReflect() protoreflect.Message

func (*ConceptReference) Reset

func (x *ConceptReference) Reset()

func (*ConceptReference) String

func (x *ConceptReference) String() string

type CrossMapRequest

type CrossMapRequest struct {
	ConceptId int64 `protobuf:"varint,1,opt,name=concept_id,json=conceptId,proto3" json:"concept_id,omitempty"`
	RefsetId  int64 `protobuf:"varint,2,opt,name=refset_id,json=refsetId,proto3" json:"refset_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CrossMapRequest) Descriptor deprecated

func (*CrossMapRequest) Descriptor() ([]byte, []int)

Deprecated: Use CrossMapRequest.ProtoReflect.Descriptor instead.

func (*CrossMapRequest) GetConceptId

func (x *CrossMapRequest) GetConceptId() int64

func (*CrossMapRequest) GetRefsetId

func (x *CrossMapRequest) GetRefsetId() int64

func (*CrossMapRequest) ProtoMessage

func (*CrossMapRequest) ProtoMessage()

func (*CrossMapRequest) ProtoReflect

func (x *CrossMapRequest) ProtoReflect() protoreflect.Message

func (*CrossMapRequest) Reset

func (x *CrossMapRequest) Reset()

func (*CrossMapRequest) String

func (x *CrossMapRequest) String() string

type DefinitionStatusID

type DefinitionStatusID int64

DefinitionStatusID is an indication as to whether a concept is fully defined or primitive. A concept may be primitive if a) it is inherently impossible to define the concept by defining relationships with other concepts b) because attributes that would distinguish the concept from another concept are not (yet) in the concept model c) because the concept is not in a directly clinical domain but in one of the supporting domains used to define clinical concepts d) because modeling of defining relationships is a continuing process and in same cases is incomplete

const (
	Primitive DefinitionStatusID = 900000000000074008 // defines a primitive concept does not have sufficient defining relationships to computably distinguish them from more general concepts(supertypes.
	Defined   DefinitionStatusID = 900000000000073002 // defines a concept with a formal logic definition that is sufficient to distinguish its meaning from other similar concepts.
)

Available definition statuses (at the time of writing) The RF2 uses SNOMED concepts to populate enums which means that conceivably, the enum could be extended in future releases. This rather complicates writing any inferential code.

type Description

type Description struct {
	Id               int64                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                                     // Uniquely identifies the description.
	EffectiveTime    *timestamp.Timestamp `protobuf:"bytes,2,opt,name=effective_time,json=effectiveTime,proto3" json:"effective_time,omitempty"`           // Specifies the inclusive date at which the component version's state became the then current valid state of the component
	Active           bool                 `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"`                                             // Specifies whether the state of the description was active or inactive from the nominal release date specified by the effectiveTime .
	ModuleId         int64                `protobuf:"varint,4,opt,name=module_id,json=moduleId,proto3" json:"module_id,omitempty"`                         // Identifies the description version's module. Set to a child of 900000000000443000 |Module|within the metadata hierarchy.
	ConceptId        int64                `protobuf:"varint,5,opt,name=concept_id,json=conceptId,proto3" json:"concept_id,omitempty"`                      // Identifies the concept to which this description applies. Set to the identifier of a concept in the 138875005 |SNOMED CT Concept| hierarchy within the Concept.
	LanguageCode     string               `protobuf:"bytes,6,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`              // Specifies the language of the description text using the two character ISO-639-1 code. Note that this specifies a language level only, not a dialect or country code.
	TypeId           int64                `protobuf:"varint,7,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty"`                               // Identifies whether the description is fully specified name a synonym or other description type. This field is set to a child of 900000000000446008 |Description type|in the Metadata hierarchy.
	Term             string               `protobuf:"bytes,8,opt,name=term,proto3" json:"term,omitempty"`                                                  // The description version's text value, represented in UTF-8 encoding.
	CaseSignificance int64                `protobuf:"varint,9,opt,name=case_significance,json=caseSignificance,proto3" json:"case_significance,omitempty"` // Identifies the concept enumeration value that represents the case significance of this description version. For example, the term may be completely case sensitive, case insensitive or initial letter case insensitive. This field will be set to a child of 900000000000447004 |Case significance|within the metadata hierarchy.
	// contains filtered or unexported fields
}

A Description holds descriptions that describe SNOMED CT concepts. A description is used to give meaning to a concept and provide well-understood and standard ways of referring to a concept. See https://confluence.ihtsdotools.org/display/DOCRELFMT/3.2.2.+Description+File+Specification

func (*Description) Descriptor deprecated

func (*Description) Descriptor() ([]byte, []int)

Deprecated: Use Description.ProtoReflect.Descriptor instead.

func (*Description) GetActive

func (x *Description) GetActive() bool

func (*Description) GetCaseSignificance

func (x *Description) GetCaseSignificance() int64

func (*Description) GetConceptId

func (x *Description) GetConceptId() int64

func (*Description) GetEffectiveTime

func (x *Description) GetEffectiveTime() *timestamp.Timestamp

func (*Description) GetId

func (x *Description) GetId() int64

func (*Description) GetLanguageCode

func (x *Description) GetLanguageCode() string

func (*Description) GetModuleId

func (x *Description) GetModuleId() int64

func (*Description) GetTerm

func (x *Description) GetTerm() string

func (*Description) GetTypeId

func (x *Description) GetTypeId() int64

func (*Description) IsDefinition

func (d *Description) IsDefinition() bool

IsDefinition returns whether this description is simply one of (many) alternative descriptions

func (*Description) IsFullySpecifiedName

func (d *Description) IsFullySpecifiedName() bool

IsFullySpecifiedName returns whether this is a fully specified name

func (*Description) IsSynonym

func (d *Description) IsSynonym() bool

IsSynonym returns whether this is a preferred term for a language

func (*Description) LanguageTag

func (d *Description) LanguageTag() language.Tag

LanguageTag returns the language tag for this description

func (*Description) ProtoMessage

func (*Description) ProtoMessage()

func (*Description) ProtoReflect

func (x *Description) ProtoReflect() protoreflect.Message

func (*Description) Reset

func (x *Description) Reset()

func (*Description) String

func (x *Description) String() string

func (*Description) Uncapitalized

func (d *Description) Uncapitalized() string

Uncapitalized returns the term appropriately uncapitalized All terms are, by default, capitalized but we cannot naively assume it is possible to uncapitalize without checking case sensitivity.

type DescriptionTypeID

type DescriptionTypeID int64

DescriptionTypeID gives the type this description represents for the concept.

const (
	Definition         DescriptionTypeID = 900000000000550004 // A term representing the associated concept in the language indicated by Description .languageCode.
	FullySpecifiedName DescriptionTypeID = 900000000000003001 // A term unique among active descriptions in SNOMED CT that names the meaning of a concept code in a manner that is intended to be unambiguous and stable across multiple contexts.
	Synonym            DescriptionTypeID = 900000000000013009 // A term that is an acceptable way to express a the meaning of a SNOMED CT concept in a particular language.
)

Available description TypeIDs. The synonym defines the preferred term for the concept in the language specified. The Description .term represents a term that is used to represent the associated concept in the language indicated by the Description .languageCode. Note: The preferred term used in a given language or dialect is marked as a synonym. Preference and acceptability of a particular synonymous term is indicated by a Language refset.

type Expression

type Expression struct {
	DefinitionStatus Expression_DefinitionStatus `` /* 150-byte string literal not displayed */
	Clause           *Expression_Clause          `protobuf:"bytes,2,opt,name=clause,proto3" json:"clause,omitempty"`
	// contains filtered or unexported fields
}

Expression represents a compound SNOMED CT expression. There would usually only be a single concept and possibly some refinement See https://confluence.ihtsdotools.org/display/DOCSCG/Compositional+Grammar+-+Specification+and+Guide The ABNF grammar for SNOMED compositional grammar (CG) is available here: https://github.com/IHTSDO/SNOMEDCT-Languages/blob/master/SnomedCTCompositionalGrammar/CG%20Syntax/Compositional%20Grammar%20v2%20-%20ABNF%20(Normative).txt

func (*Expression) Descriptor deprecated

func (*Expression) Descriptor() ([]byte, []int)

Deprecated: Use Expression.ProtoReflect.Descriptor instead.

func (*Expression) GetClause

func (x *Expression) GetClause() *Expression_Clause

func (*Expression) GetDefinitionStatus

func (x *Expression) GetDefinitionStatus() Expression_DefinitionStatus

func (*Expression) IsPostcoordinated

func (e *Expression) IsPostcoordinated() bool

IsPostcoordinated means that this expression is made up of multiple concepts

func (*Expression) IsPrecoordinated

func (e *Expression) IsPrecoordinated() bool

IsPrecoordinated returns whether this expression is a precoordinated term. This means that it is a single concept identifier with no refinement.

func (*Expression) ProtoMessage

func (*Expression) ProtoMessage()

func (*Expression) ProtoReflect

func (x *Expression) ProtoReflect() protoreflect.Message

func (*Expression) Reset

func (x *Expression) Reset()

func (*Expression) String

func (x *Expression) String() string

type Expression_Clause

type Expression_Clause struct {
	FocusConcepts    []*ConceptReference           `protobuf:"bytes,1,rep,name=focus_concepts,json=focusConcepts,proto3" json:"focus_concepts,omitempty"` // should all be from same hierarchy
	Refinements      []*Expression_Refinement      `protobuf:"bytes,2,rep,name=refinements,proto3" json:"refinements,omitempty"`
	RefinementGroups []*Expression_RefinementGroup `protobuf:"bytes,3,rep,name=refinement_groups,json=refinementGroups,proto3" json:"refinement_groups,omitempty"`
	// contains filtered or unexported fields
}

A clause is a "subexpression" in the CG grammar, with refinements either flat or nested in groups

func (*Expression_Clause) Descriptor deprecated

func (*Expression_Clause) Descriptor() ([]byte, []int)

Deprecated: Use Expression_Clause.ProtoReflect.Descriptor instead.

func (*Expression_Clause) GetFocusConcepts

func (x *Expression_Clause) GetFocusConcepts() []*ConceptReference

func (*Expression_Clause) GetRefinementGroups

func (x *Expression_Clause) GetRefinementGroups() []*Expression_RefinementGroup

func (*Expression_Clause) GetRefinementOfType

func (clause *Expression_Clause) GetRefinementOfType(typeConceptID int64) []*Expression_Refinement

GetRefinementOfType returns the refinements of the specified type This doesn't look inside refinement groups

func (*Expression_Clause) GetRefinements

func (x *Expression_Clause) GetRefinements() []*Expression_Refinement

func (*Expression_Clause) ProtoMessage

func (*Expression_Clause) ProtoMessage()

func (*Expression_Clause) ProtoReflect

func (x *Expression_Clause) ProtoReflect() protoreflect.Message

func (*Expression_Clause) Reset

func (x *Expression_Clause) Reset()

func (*Expression_Clause) String

func (x *Expression_Clause) String() string

type Expression_DefinitionStatus

type Expression_DefinitionStatus int32
const (
	Expression_EQUIVALENT_TO Expression_DefinitionStatus = 0 // default, if omitted
	Expression_SUBTYPE_OF    Expression_DefinitionStatus = 1
)

func (Expression_DefinitionStatus) Descriptor

func (Expression_DefinitionStatus) Enum

func (Expression_DefinitionStatus) EnumDescriptor deprecated

func (Expression_DefinitionStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use Expression_DefinitionStatus.Descriptor instead.

func (Expression_DefinitionStatus) Number

func (Expression_DefinitionStatus) String

func (Expression_DefinitionStatus) Type

type Expression_Refinement

type Expression_Refinement struct {
	RefinementConcept *ConceptReference `protobuf:"bytes,1,opt,name=refinement_concept,json=refinementConcept,proto3" json:"refinement_concept,omitempty"` // the "attribute name", must be child of 246061005 (Attribute)
	// Types that are assignable to Value:
	//	*Expression_Refinement_ConceptValue
	//	*Expression_Refinement_ClauseValue
	//	*Expression_Refinement_StringValue
	//	*Expression_Refinement_IntValue
	//	*Expression_Refinement_DoubleValue
	Value isExpression_Refinement_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

Refinement is a name/value pair (an attribute) permitting refinement of the focus concept(s) The value can be a concept, a clause, or a concrete value such as a string, integer or double

func (*Expression_Refinement) Descriptor deprecated

func (*Expression_Refinement) Descriptor() ([]byte, []int)

Deprecated: Use Expression_Refinement.ProtoReflect.Descriptor instead.

func (*Expression_Refinement) GetClauseValue

func (x *Expression_Refinement) GetClauseValue() *Expression_Clause

func (*Expression_Refinement) GetConceptValue

func (x *Expression_Refinement) GetConceptValue() *ConceptReference

func (*Expression_Refinement) GetDoubleValue

func (x *Expression_Refinement) GetDoubleValue() float64

func (*Expression_Refinement) GetIntValue

func (x *Expression_Refinement) GetIntValue() int64

func (*Expression_Refinement) GetRefinementConcept

func (x *Expression_Refinement) GetRefinementConcept() *ConceptReference

func (*Expression_Refinement) GetStringValue

func (x *Expression_Refinement) GetStringValue() string

func (*Expression_Refinement) GetValue

func (m *Expression_Refinement) GetValue() isExpression_Refinement_Value

func (*Expression_Refinement) ProtoMessage

func (*Expression_Refinement) ProtoMessage()

func (*Expression_Refinement) ProtoReflect

func (x *Expression_Refinement) ProtoReflect() protoreflect.Message

func (*Expression_Refinement) Reset

func (x *Expression_Refinement) Reset()

func (*Expression_Refinement) String

func (x *Expression_Refinement) String() string

type Expression_RefinementGroup

type Expression_RefinementGroup struct {
	Refinements []*Expression_Refinement `protobuf:"bytes,1,rep,name=refinements,proto3" json:"refinements,omitempty"`
	// contains filtered or unexported fields
}

func (*Expression_RefinementGroup) Descriptor deprecated

func (*Expression_RefinementGroup) Descriptor() ([]byte, []int)

Deprecated: Use Expression_RefinementGroup.ProtoReflect.Descriptor instead.

func (*Expression_RefinementGroup) GetRefinements

func (x *Expression_RefinementGroup) GetRefinements() []*Expression_Refinement

func (*Expression_RefinementGroup) ProtoMessage

func (*Expression_RefinementGroup) ProtoMessage()

func (*Expression_RefinementGroup) ProtoReflect

func (*Expression_RefinementGroup) Reset

func (x *Expression_RefinementGroup) Reset()

func (*Expression_RefinementGroup) String

func (x *Expression_RefinementGroup) String() string

type Expression_Refinement_ClauseValue

type Expression_Refinement_ClauseValue struct {
	ClauseValue *Expression_Clause `protobuf:"bytes,3,opt,name=clause_value,json=clauseValue,proto3,oneof"` // a subexpression
}

type Expression_Refinement_ConceptValue

type Expression_Refinement_ConceptValue struct {
	ConceptValue *ConceptReference `protobuf:"bytes,2,opt,name=concept_value,json=conceptValue,proto3,oneof"`
}

type Expression_Refinement_DoubleValue

type Expression_Refinement_DoubleValue struct {
	DoubleValue float64 `protobuf:"fixed64,6,opt,name=double_value,json=doubleValue,proto3,oneof"`
}

type Expression_Refinement_IntValue

type Expression_Refinement_IntValue struct {
	IntValue int64 `protobuf:"varint,5,opt,name=int_value,json=intValue,proto3,oneof"`
}

type Expression_Refinement_StringValue

type Expression_Refinement_StringValue struct {
	StringValue string `protobuf:"bytes,4,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type ExtendedConcept

type ExtendedConcept struct {
	Concept              *Concept        `protobuf:"bytes,1,opt,name=concept,proto3" json:"concept,omitempty"`
	Relationships        []*Relationship `protobuf:"bytes,2,rep,name=relationships,proto3" json:"relationships,omitempty"`                                           // (parent) relationships for this concept
	PreferredDescription *Description    `protobuf:"bytes,3,opt,name=preferred_description,json=preferredDescription,proto3" json:"preferred_description,omitempty"` // cached preferred synonym
	AllParentIds         []int64         `protobuf:"varint,4,rep,packed,name=all_parent_ids,json=allParentIds,proto3" json:"all_parent_ids,omitempty"`               // list of all (recursive) IS-A parents for concept
	DirectParentIds      []int64         `protobuf:"varint,5,rep,packed,name=direct_parent_ids,json=directParentIds,proto3" json:"direct_parent_ids,omitempty"`      // list of direct IS-A parents for concept
	ConceptRefsets       []int64         `protobuf:"varint,6,rep,packed,name=concept_refsets,json=conceptRefsets,proto3" json:"concept_refsets,omitempty"`           // refsets to which the concept belong
	Descriptions         []*Description  `protobuf:"bytes,7,rep,name=descriptions,proto3" json:"descriptions,omitempty"`                                             // all descriptions
	// contains filtered or unexported fields
}

ExtendedConcept represents a concept together with sufficient additional contextual information relating to the concept, including reference set membership as well as the underlying concept, the concept's relationships and the concept's membership of reference sets, and ways that this concept can be refined. It is, in essence, a denormalised entity, useful for wire-exchange purposes and caching.

func (*ExtendedConcept) Descriptor deprecated

func (*ExtendedConcept) Descriptor() ([]byte, []int)

Deprecated: Use ExtendedConcept.ProtoReflect.Descriptor instead.

func (*ExtendedConcept) GetAllParentIds

func (x *ExtendedConcept) GetAllParentIds() []int64

func (*ExtendedConcept) GetConcept

func (x *ExtendedConcept) GetConcept() *Concept

func (*ExtendedConcept) GetConceptRefsets

func (x *ExtendedConcept) GetConceptRefsets() []int64

func (*ExtendedConcept) GetDescriptions

func (x *ExtendedConcept) GetDescriptions() []*Description

func (*ExtendedConcept) GetDirectParentIds

func (x *ExtendedConcept) GetDirectParentIds() []int64

func (*ExtendedConcept) GetPreferredDescription

func (x *ExtendedConcept) GetPreferredDescription() *Description

func (*ExtendedConcept) GetRelationships

func (x *ExtendedConcept) GetRelationships() []*Relationship

func (*ExtendedConcept) ProtoMessage

func (*ExtendedConcept) ProtoMessage()

func (*ExtendedConcept) ProtoReflect

func (x *ExtendedConcept) ProtoReflect() protoreflect.Message

func (*ExtendedConcept) Reset

func (x *ExtendedConcept) Reset()

func (*ExtendedConcept) String

func (x *ExtendedConcept) String() string

type ExtendedDescription

type ExtendedDescription struct {
	Description          *Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	Concept              *Concept     `protobuf:"bytes,3,opt,name=concept,proto3" json:"concept,omitempty"`                                                         // concept to which this description relates
	PreferredDescription *Description `protobuf:"bytes,4,opt,name=preferred_description,json=preferredDescription,proto3" json:"preferred_description,omitempty"`   // concept's preferred description
	AllParentIds         []int64      `protobuf:"varint,5,rep,packed,name=all_parent_ids,json=allParentIds,proto3" json:"all_parent_ids,omitempty"`                 // list of all (recursive) IS-A parents for concept
	DirectParentIds      []int64      `protobuf:"varint,6,rep,packed,name=direct_parent_ids,json=directParentIds,proto3" json:"direct_parent_ids,omitempty"`        // list of direct IS-A parents for concept
	ConceptRefsets       []int64      `protobuf:"varint,7,rep,packed,name=concept_refsets,json=conceptRefsets,proto3" json:"concept_refsets,omitempty"`             // refsets to which the concept belong
	DescriptionRefsets   []int64      `protobuf:"varint,8,rep,packed,name=description_refsets,json=descriptionRefsets,proto3" json:"description_refsets,omitempty"` // refsets to which the description belong
	// contains filtered or unexported fields
}

ExtendedDescription represents a description together with sufficient additional contextual information relating to the description, including reference set membership as well as the underlying concept, the concept's relationships and the concept's membership of reference sets. It is, in essence, a denormalised relationship, useful for wire-exchange purposes.

func (*ExtendedDescription) Descriptor deprecated

func (*ExtendedDescription) Descriptor() ([]byte, []int)

Deprecated: Use ExtendedDescription.ProtoReflect.Descriptor instead.

func (*ExtendedDescription) GetAllParentIds

func (x *ExtendedDescription) GetAllParentIds() []int64

func (*ExtendedDescription) GetConcept

func (x *ExtendedDescription) GetConcept() *Concept

func (*ExtendedDescription) GetConceptRefsets

func (x *ExtendedDescription) GetConceptRefsets() []int64

func (*ExtendedDescription) GetDescription

func (x *ExtendedDescription) GetDescription() *Description

func (*ExtendedDescription) GetDescriptionRefsets

func (x *ExtendedDescription) GetDescriptionRefsets() []int64

func (*ExtendedDescription) GetDirectParentIds

func (x *ExtendedDescription) GetDirectParentIds() []int64

func (*ExtendedDescription) GetPreferredDescription

func (x *ExtendedDescription) GetPreferredDescription() *Description

func (*ExtendedDescription) ProtoMessage

func (*ExtendedDescription) ProtoMessage()

func (*ExtendedDescription) ProtoReflect

func (x *ExtendedDescription) ProtoReflect() protoreflect.Message

func (*ExtendedDescription) Reset

func (x *ExtendedDescription) Reset()

func (*ExtendedDescription) String

func (x *ExtendedDescription) String() string

type ExtractRequest

type ExtractRequest struct {
	S     string  `protobuf:"bytes,1,opt,name=s,proto3" json:"s,omitempty"`                 // string to parse
	Hints []int64 `protobuf:"varint,2,rep,packed,name=hints,proto3" json:"hints,omitempty"` // contextual hints, list of concept identifiers
	// contains filtered or unexported fields
}

ExtractRequest requests natural language processing entity matching for the specified free-text. Requests can include a range of hints specifying specialty and other contextual clues, to aid matching.

func (*ExtractRequest) Descriptor deprecated

func (*ExtractRequest) Descriptor() ([]byte, []int)

Deprecated: Use ExtractRequest.ProtoReflect.Descriptor instead.

func (*ExtractRequest) GetHints

func (x *ExtractRequest) GetHints() []int64

func (*ExtractRequest) GetS

func (x *ExtractRequest) GetS() string

func (*ExtractRequest) ProtoMessage

func (*ExtractRequest) ProtoMessage()

func (*ExtractRequest) ProtoReflect

func (x *ExtractRequest) ProtoReflect() protoreflect.Message

func (*ExtractRequest) Reset

func (x *ExtractRequest) Reset()

func (*ExtractRequest) String

func (x *ExtractRequest) String() string

type ExtractResponse

type ExtractResponse struct {
	Entities []*ExtractResponse_Entity `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"`
	// contains filtered or unexported fields
}

ExtractResponse provides a list of entities from the unstructured text. As an individual entity may correspond to multiple concepts (imagine "diabetes" might map to diabetes mellitus, diabetes insipidus etc.), we return multiple concepts sorted in order of "best" match, as well as the best match if, algorithmically, we are confident of a best match, and a generic match, a generic concept that subsumes the matches found. The latter is most useful when trying to make sense, safely, during non-interactive use. This service will also return complete SNOMED CT expressions in the future.

func (*ExtractResponse) Descriptor deprecated

func (*ExtractResponse) Descriptor() ([]byte, []int)

Deprecated: Use ExtractResponse.ProtoReflect.Descriptor instead.

func (*ExtractResponse) GetEntities

func (x *ExtractResponse) GetEntities() []*ExtractResponse_Entity

func (*ExtractResponse) ProtoMessage

func (*ExtractResponse) ProtoMessage()

func (*ExtractResponse) ProtoReflect

func (x *ExtractResponse) ProtoReflect() protoreflect.Message

func (*ExtractResponse) Reset

func (x *ExtractResponse) Reset()

func (*ExtractResponse) String

func (x *ExtractResponse) String() string

type ExtractResponse_Entity

type ExtractResponse_Entity struct {
	Text         string              `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`                                      // text
	Score        float64             `protobuf:"fixed64,2,opt,name=score,proto3" json:"score,omitempty"`                                  // confidence score
	Negated      bool                `protobuf:"varint,3,opt,name=negated,proto3" json:"negated,omitempty"`                               // is this negated?
	Concepts     []*ConceptReference `protobuf:"bytes,4,rep,name=concepts,proto3" json:"concepts,omitempty"`                              // possible matching concepts
	Expressions  []string            `protobuf:"bytes,5,rep,name=expressions,proto3" json:"expressions,omitempty"`                        // possible matching SNOMED CT expressions
	BestMatch    int64               `protobuf:"varint,6,opt,name=best_match,json=bestMatch,proto3" json:"best_match,omitempty"`          // the best match, algorithmically, if found
	GenericMatch int64               `protobuf:"varint,7,opt,name=generic_match,json=genericMatch,proto3" json:"generic_match,omitempty"` // the generic match for all matching concepts
	// contains filtered or unexported fields
}

func (*ExtractResponse_Entity) Descriptor deprecated

func (*ExtractResponse_Entity) Descriptor() ([]byte, []int)

Deprecated: Use ExtractResponse_Entity.ProtoReflect.Descriptor instead.

func (*ExtractResponse_Entity) GetBestMatch

func (x *ExtractResponse_Entity) GetBestMatch() int64

func (*ExtractResponse_Entity) GetConcepts

func (x *ExtractResponse_Entity) GetConcepts() []*ConceptReference

func (*ExtractResponse_Entity) GetExpressions

func (x *ExtractResponse_Entity) GetExpressions() []string

func (*ExtractResponse_Entity) GetGenericMatch

func (x *ExtractResponse_Entity) GetGenericMatch() int64

func (*ExtractResponse_Entity) GetNegated

func (x *ExtractResponse_Entity) GetNegated() bool

func (*ExtractResponse_Entity) GetScore

func (x *ExtractResponse_Entity) GetScore() float64

func (*ExtractResponse_Entity) GetText

func (x *ExtractResponse_Entity) GetText() string

func (*ExtractResponse_Entity) ProtoMessage

func (*ExtractResponse_Entity) ProtoMessage()

func (*ExtractResponse_Entity) ProtoReflect

func (x *ExtractResponse_Entity) ProtoReflect() protoreflect.Message

func (*ExtractResponse_Entity) Reset

func (x *ExtractResponse_Entity) Reset()

func (*ExtractResponse_Entity) String

func (x *ExtractResponse_Entity) String() string

type Identifier

type Identifier int64

Identifier (SCTID) is a checksummed (Verhoeff) globally unique persistent identifier See https://confluence.ihtsdotools.org/display/DOCTIG/3.1.4.2.+Component+features+-+Identifiers The SCTID data type is 64-bit Integer which is allocated and represented in accordance with a set of rules. These rules enable each Identifier to refer unambiguously to a unique component. They also support separate partitions for allocation of Identifiers for particular types of component and namespaces that distinguish between different issuing organizations.

A valid identifier can be represented either as a uint64 or an int64. See https://confluence.ihtsdotools.org/display/DOCRELFMT/6.3+SCTID+Constraints

func ParseAndValidate

func ParseAndValidate(s string) (Identifier, error)

ParseAndValidate converts a string into an identifier and validates

func ParseIdentifier

func ParseIdentifier(s string) (Identifier, error)

ParseIdentifier converts a string into an identifier

func (Identifier) Integer

func (id Identifier) Integer() int64

Integer is a convenience method to convert to integer

func (Identifier) IsConcept

func (id Identifier) IsConcept() bool

IsConcept will return true if this identifier refers to a concept

func (Identifier) IsDescription

func (id Identifier) IsDescription() bool

IsDescription will return true if this identifier refers to a description.

func (Identifier) IsRelationship

func (id Identifier) IsRelationship() bool

IsRelationship will return true if this identifier refers to a relationship.

func (Identifier) IsValid

func (id Identifier) IsValid() bool

IsValid will return true if this is a valid SNOMED CT identifier

func (Identifier) String

func (id Identifier) String() string

String returns a string representation of this identifier

type ImportChannels

type ImportChannels struct {
	Concepts      chan []*Concept
	Descriptions  chan []*Description
	Relationships chan []*Relationship
	Refsets       chan []*ReferenceSetItem
}

ImportChannels defines the channels through which batches of data will be returned

func Import

func Import(ctx context.Context, root string, batchSize int) *ImportChannels

Import imports all SNOMED datafiles from the specified root, returning data in batches through the returned channels.

func (*ImportChannels) Close

func (ir *ImportChannels) Close()

Close all results channels

type LanguageReferenceSet

type LanguageReferenceSet struct {
	AcceptabilityId int64 `protobuf:"varint,1,opt,name=acceptability_id,json=acceptabilityId,proto3" json:"acceptability_id,omitempty"` // A subtype of 900000000000511003 |Acceptability| indicating whether the description is acceptable or preferred for use in the specified language or dialect .
	// contains filtered or unexported fields
}

LanguageReferenceSet is a A 900000000000506000 |Language type reference set| supporting the representation of language and dialects preferences for the use of particular descriptions. "The most common use case for this type of reference set is to specify the acceptable and preferred terms for use within a particular country or region. However, the same type of reference set can also be used to represent preferences for use of descriptions in a more specific context such as a clinical specialty, organization or department.

No more than one description of a specific description type associated with a single concept may have the acceptabilityId value 900000000000548007 |Preferred|. Every active concept should have one preferred synonym in each language. This means that a language reference set should assign the acceptabilityId 900000000000548007 |Preferred| to one synonym (a description with typeId value 900000000000013009 |synonym|) associated with each concept . This description is the preferred term for that concept in the specified language or dialect. Any description which is not referenced by an active row in the reference set is regarded as unacceptable (i.e. not a valid synonym in the language or dialect ). If a description becomes unacceptable, the relevant language reference set member is inactivated by adding a new row with the same id, the effectiveTime of the the change and the value active=0. For this reason there is no requirement for an "unacceptable" value." See https://confluence.ihtsdotools.org/display/DOCRELFMT/4.2.4.+Language+Reference+Set

func (*LanguageReferenceSet) Descriptor deprecated

func (*LanguageReferenceSet) Descriptor() ([]byte, []int)

Deprecated: Use LanguageReferenceSet.ProtoReflect.Descriptor instead.

func (*LanguageReferenceSet) GetAcceptabilityId

func (x *LanguageReferenceSet) GetAcceptabilityId() int64

func (*LanguageReferenceSet) IsAcceptable

func (lrs *LanguageReferenceSet) IsAcceptable() bool

IsAcceptable returns whether the description referenced is acceptable for this concept in this language refset

func (*LanguageReferenceSet) IsPreferred

func (lrs *LanguageReferenceSet) IsPreferred() bool

IsPreferred returns whether the description referenced is the preferred for this concept in this language refset

func (*LanguageReferenceSet) IsUnacceptable

func (lrs *LanguageReferenceSet) IsUnacceptable() bool

IsUnacceptable returns whether the description referenced is unacceptable for this concept in this language refset

func (*LanguageReferenceSet) ProtoMessage

func (*LanguageReferenceSet) ProtoMessage()

func (*LanguageReferenceSet) ProtoReflect

func (x *LanguageReferenceSet) ProtoReflect() protoreflect.Message

func (*LanguageReferenceSet) Reset

func (x *LanguageReferenceSet) Reset()

func (*LanguageReferenceSet) String

func (x *LanguageReferenceSet) String() string

type MapRequest

type MapRequest struct {
	ConceptId int64              `protobuf:"varint,1,opt,name=concept_id,json=conceptId,proto3" json:"concept_id,omitempty"`           // source concept identifier
	RefsetId  int64              `protobuf:"varint,2,opt,name=refset_id,json=refsetId,proto3" json:"refset_id,omitempty"`              // target reference set.
	TargetId  []int64            `protobuf:"varint,3,rep,packed,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`       // a list of target concepts to which to map
	Parents   MapRequest_Parents `protobuf:"varint,4,opt,name=parents,proto3,enum=snomed.MapRequest_Parents" json:"parents,omitempty"` // whether to map to parents of the target set, if not found in the target set directly
	// contains filtered or unexported fields
}

func (*MapRequest) Descriptor deprecated

func (*MapRequest) Descriptor() ([]byte, []int)

Deprecated: Use MapRequest.ProtoReflect.Descriptor instead.

func (*MapRequest) GetConceptId

func (x *MapRequest) GetConceptId() int64

func (*MapRequest) GetParents

func (x *MapRequest) GetParents() MapRequest_Parents

func (*MapRequest) GetRefsetId

func (x *MapRequest) GetRefsetId() int64

func (*MapRequest) GetTargetId

func (x *MapRequest) GetTargetId() []int64

func (*MapRequest) ProtoMessage

func (*MapRequest) ProtoMessage()

func (*MapRequest) ProtoReflect

func (x *MapRequest) ProtoReflect() protoreflect.Message

func (*MapRequest) Reset

func (x *MapRequest) Reset()

func (*MapRequest) String

func (x *MapRequest) String() string

type MapRequest_Parents

type MapRequest_Parents int32
const (
	MapRequest_FALLBACK MapRequest_Parents = 0 // include parents only if conventional map to target set fails
	MapRequest_ALWAYS   MapRequest_Parents = 1 // include parents always
	MapRequest_NEVER    MapRequest_Parents = 2 // do not include parents
)

func (MapRequest_Parents) Descriptor

func (MapRequest_Parents) Enum

func (MapRequest_Parents) EnumDescriptor deprecated

func (MapRequest_Parents) EnumDescriptor() ([]byte, []int)

Deprecated: Use MapRequest_Parents.Descriptor instead.

func (MapRequest_Parents) Number

func (MapRequest_Parents) String

func (x MapRequest_Parents) String() string

func (MapRequest_Parents) Type

type MapResponse

type MapResponse struct {
	Translations []*ConceptReference `protobuf:"bytes,1,rep,name=translations,proto3" json:"translations,omitempty"` // list of translations, sorted in scored order (best first)
	// contains filtered or unexported fields
}

func (*MapResponse) Descriptor deprecated

func (*MapResponse) Descriptor() ([]byte, []int)

Deprecated: Use MapResponse.ProtoReflect.Descriptor instead.

func (*MapResponse) GetTranslations

func (x *MapResponse) GetTranslations() []*ConceptReference

func (*MapResponse) ProtoMessage

func (*MapResponse) ProtoMessage()

func (*MapResponse) ProtoReflect

func (x *MapResponse) ProtoReflect() protoreflect.Message

func (*MapResponse) Reset

func (x *MapResponse) Reset()

func (*MapResponse) String

func (x *MapResponse) String() string

type ParseRequest

type ParseRequest struct {
	S string `protobuf:"bytes,1,opt,name=s,proto3" json:"s,omitempty"` // string to parse
	// contains filtered or unexported fields
}

func (*ParseRequest) Descriptor deprecated

func (*ParseRequest) Descriptor() ([]byte, []int)

Deprecated: Use ParseRequest.ProtoReflect.Descriptor instead.

func (*ParseRequest) GetS

func (x *ParseRequest) GetS() string

func (*ParseRequest) ProtoMessage

func (*ParseRequest) ProtoMessage()

func (*ParseRequest) ProtoReflect

func (x *ParseRequest) ProtoReflect() protoreflect.Message

func (*ParseRequest) Reset

func (x *ParseRequest) Reset()

func (*ParseRequest) String

func (x *ParseRequest) String() string

type RefSetDescriptorReferenceSet

type RefSetDescriptorReferenceSet struct {
	AttributeDescriptionId int64 `` // Specifies the name of an attribute that is used in the reference set to which this descriptor applies.
	/* 130-byte string literal not displayed */
	AttributeTypeId int64  `protobuf:"varint,2,opt,name=attribute_type_id,json=attributeTypeId,proto3" json:"attribute_type_id,omitempty"` // Specifies the data type of this attribute in the reference set to which this descriptor applies.
	AttributeOrder  uint32 `protobuf:"varint,3,opt,name=attribute_order,json=attributeOrder,proto3" json:"attribute_order,omitempty"`      // An unsigned Integer, providing an ordering for the additional attributes extending the reference set .
	// contains filtered or unexported fields
}

RefSetDescriptorReferenceSet is a type of reference set that provides information about a different reference set See https://confluence.ihtsdotools.org/display/DOCRELFMT/4.2.11.+Reference+Set+Descriptor It provides the additional structure for a given reference set.

func (*RefSetDescriptorReferenceSet) Descriptor deprecated

func (*RefSetDescriptorReferenceSet) Descriptor() ([]byte, []int)

Deprecated: Use RefSetDescriptorReferenceSet.ProtoReflect.Descriptor instead.

func (*RefSetDescriptorReferenceSet) GetAttributeDescriptionId

func (x *RefSetDescriptorReferenceSet) GetAttributeDescriptionId() int64

func (*RefSetDescriptorReferenceSet) GetAttributeOrder

func (x *RefSetDescriptorReferenceSet) GetAttributeOrder() uint32

func (*RefSetDescriptorReferenceSet) GetAttributeTypeId

func (x *RefSetDescriptorReferenceSet) GetAttributeTypeId() int64

func (*RefSetDescriptorReferenceSet) ProtoMessage

func (*RefSetDescriptorReferenceSet) ProtoMessage()

func (*RefSetDescriptorReferenceSet) ProtoReflect

func (*RefSetDescriptorReferenceSet) Reset

func (x *RefSetDescriptorReferenceSet) Reset()

func (*RefSetDescriptorReferenceSet) String

type ReferenceSetItem

type ReferenceSetItem struct {
	Id                    string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                                            // A 128 bit unsigned Integer, uniquely identifying the reference set member.
	EffectiveTime         *timestamp.Timestamp `protobuf:"bytes,2,opt,name=effective_time,json=effectiveTime,proto3" json:"effective_time,omitempty"` // Specifies the inclusive date at which this change becomes effective.
	Active                bool                 `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"`                                   // Specifies whether the member's state was active or inactive from the nominal release date specified by the effectiveTime field.
	ModuleId              int64                `protobuf:"varint,4,opt,name=module_id,json=moduleId,proto3" json:"module_id,omitempty"`               // Identifies the member version's module. Set to a child of 900000000000443000 |Module| within the metadata hierarchy .
	RefsetId              int64                `protobuf:"varint,5,opt,name=refset_id,json=refsetId,proto3" json:"refset_id,omitempty"`               // Uniquely identifies the reference set that this extension row is part of. Set to a descendant of 900000000000455006 |Reference set| within the metadata hierarchy .
	ReferencedComponentId int64                ``                                                                                                     // A reference to the SNOMED CT component to be included in the reference set.
	/* 127-byte string literal not displayed */
	// Types that are assignable to Body:
	//	*ReferenceSetItem_RefsetDescriptor
	//	*ReferenceSetItem_Simple
	//	*ReferenceSetItem_Language
	//	*ReferenceSetItem_SimpleMap
	//	*ReferenceSetItem_ComplexMap
	//	*ReferenceSetItem_AttributeValue
	//	*ReferenceSetItem_Association
	Body isReferenceSetItem_Body `protobuf_oneof:"body"`
	// contains filtered or unexported fields
}

ReferenceSet support customization and enhancement of SNOMED CT content. These include representation of subsets, language preferences maps for or from other code systems. There are multiple reference set types which extend this structure In the specification, the referenced component ID can be a SCT identifier or a UUID which is... problematic. In this structure, the referenced component ID is a SCT identifier... only. For now. Fortunately, in concrete types of reference set ("patterns"), it is made explicit.

func (*ReferenceSetItem) Descriptor deprecated

func (*ReferenceSetItem) Descriptor() ([]byte, []int)

Deprecated: Use ReferenceSetItem.ProtoReflect.Descriptor instead.

func (*ReferenceSetItem) GetActive

func (x *ReferenceSetItem) GetActive() bool

func (*ReferenceSetItem) GetAssociation

func (x *ReferenceSetItem) GetAssociation() *AssociationReferenceSet

func (*ReferenceSetItem) GetAttributeValue

func (x *ReferenceSetItem) GetAttributeValue() *AttributeValueReferenceSet

func (*ReferenceSetItem) GetBody

func (m *ReferenceSetItem) GetBody() isReferenceSetItem_Body

func (*ReferenceSetItem) GetComplexMap

func (x *ReferenceSetItem) GetComplexMap() *ComplexMapReferenceSet

func (*ReferenceSetItem) GetEffectiveTime

func (x *ReferenceSetItem) GetEffectiveTime() *timestamp.Timestamp

func (*ReferenceSetItem) GetId

func (x *ReferenceSetItem) GetId() string

func (*ReferenceSetItem) GetLanguage

func (x *ReferenceSetItem) GetLanguage() *LanguageReferenceSet

func (*ReferenceSetItem) GetModuleId

func (x *ReferenceSetItem) GetModuleId() int64

func (*ReferenceSetItem) GetReferencedComponentId

func (x *ReferenceSetItem) GetReferencedComponentId() int64

func (*ReferenceSetItem) GetRefsetDescriptor

func (x *ReferenceSetItem) GetRefsetDescriptor() *RefSetDescriptorReferenceSet

func (*ReferenceSetItem) GetRefsetId

func (x *ReferenceSetItem) GetRefsetId() int64

func (*ReferenceSetItem) GetSimple

func (x *ReferenceSetItem) GetSimple() *SimpleReferenceSet

func (*ReferenceSetItem) GetSimpleMap

func (x *ReferenceSetItem) GetSimpleMap() *SimpleMapReferenceSet

func (*ReferenceSetItem) ProtoMessage

func (*ReferenceSetItem) ProtoMessage()

func (*ReferenceSetItem) ProtoReflect

func (x *ReferenceSetItem) ProtoReflect() protoreflect.Message

func (*ReferenceSetItem) Reset

func (x *ReferenceSetItem) Reset()

func (*ReferenceSetItem) String

func (x *ReferenceSetItem) String() string

type ReferenceSetItemID

type ReferenceSetItemID struct {
	Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// contains filtered or unexported fields
}

func (*ReferenceSetItemID) Descriptor deprecated

func (*ReferenceSetItemID) Descriptor() ([]byte, []int)

Deprecated: Use ReferenceSetItemID.ProtoReflect.Descriptor instead.

func (*ReferenceSetItemID) GetIdentifier

func (x *ReferenceSetItemID) GetIdentifier() string

func (*ReferenceSetItemID) ProtoMessage

func (*ReferenceSetItemID) ProtoMessage()

func (*ReferenceSetItemID) ProtoReflect

func (x *ReferenceSetItemID) ProtoReflect() protoreflect.Message

func (*ReferenceSetItemID) Reset

func (x *ReferenceSetItemID) Reset()

func (*ReferenceSetItemID) String

func (x *ReferenceSetItemID) String() string

type ReferenceSetItem_Association

type ReferenceSetItem_Association struct {
	Association *AssociationReferenceSet `protobuf:"bytes,13,opt,name=association,proto3,oneof"`
}

type ReferenceSetItem_AttributeValue

type ReferenceSetItem_AttributeValue struct {
	AttributeValue *AttributeValueReferenceSet `protobuf:"bytes,12,opt,name=attribute_value,json=attributeValue,proto3,oneof"`
}

type ReferenceSetItem_ComplexMap

type ReferenceSetItem_ComplexMap struct {
	ComplexMap *ComplexMapReferenceSet `protobuf:"bytes,11,opt,name=complex_map,json=complexMap,proto3,oneof"`
}

type ReferenceSetItem_Language

type ReferenceSetItem_Language struct {
	Language *LanguageReferenceSet `protobuf:"bytes,9,opt,name=language,proto3,oneof"`
}

type ReferenceSetItem_RefsetDescriptor

type ReferenceSetItem_RefsetDescriptor struct {
	RefsetDescriptor *RefSetDescriptorReferenceSet `protobuf:"bytes,7,opt,name=refset_descriptor,json=refsetDescriptor,proto3,oneof"`
}

type ReferenceSetItem_Simple

type ReferenceSetItem_Simple struct {
	Simple *SimpleReferenceSet `protobuf:"bytes,8,opt,name=simple,proto3,oneof"`
}

type ReferenceSetItem_SimpleMap

type ReferenceSetItem_SimpleMap struct {
	SimpleMap *SimpleMapReferenceSet `protobuf:"bytes,10,opt,name=simple_map,json=simpleMap,proto3,oneof"`
}

type RefinementRequest

type RefinementRequest struct {
	ConceptId   int64 `protobuf:"varint,1,opt,name=concept_id,json=conceptId,proto3" json:"concept_id,omitempty"`       // concept to be refined
	ChoiceLimit int32 `protobuf:"varint,2,opt,name=choice_limit,json=choiceLimit,proto3" json:"choice_limit,omitempty"` // include list of choices if the number available is below this count, zero for none.
	// contains filtered or unexported fields
}

RefinementRequest requests the possible refinements for the specified concept.

func (*RefinementRequest) Descriptor deprecated

func (*RefinementRequest) Descriptor() ([]byte, []int)

Deprecated: Use RefinementRequest.ProtoReflect.Descriptor instead.

func (*RefinementRequest) GetChoiceLimit

func (x *RefinementRequest) GetChoiceLimit() int32

func (*RefinementRequest) GetConceptId

func (x *RefinementRequest) GetConceptId() int64

func (*RefinementRequest) ProtoMessage

func (*RefinementRequest) ProtoMessage()

func (*RefinementRequest) ProtoReflect

func (x *RefinementRequest) ProtoReflect() protoreflect.Message

func (*RefinementRequest) Reset

func (x *RefinementRequest) Reset()

func (*RefinementRequest) String

func (x *RefinementRequest) String() string

type RefinementResponse

type RefinementResponse struct {
	Concept     *Concept                         `protobuf:"bytes,1,opt,name=concept,proto3" json:"concept,omitempty"`
	Refinements []*RefinementResponse_Refinement `protobuf:"bytes,2,rep,name=refinements,proto3" json:"refinements,omitempty"`
	// contains filtered or unexported fields
}

func (*RefinementResponse) Descriptor deprecated

func (*RefinementResponse) Descriptor() ([]byte, []int)

Deprecated: Use RefinementResponse.ProtoReflect.Descriptor instead.

func (*RefinementResponse) GetConcept

func (x *RefinementResponse) GetConcept() *Concept

func (*RefinementResponse) GetRefinements

func (x *RefinementResponse) GetRefinements() []*RefinementResponse_Refinement

func (*RefinementResponse) ProtoMessage

func (*RefinementResponse) ProtoMessage()

func (*RefinementResponse) ProtoReflect

func (x *RefinementResponse) ProtoReflect() protoreflect.Message

func (*RefinementResponse) Reset

func (x *RefinementResponse) Reset()

func (*RefinementResponse) String

func (x *RefinementResponse) String() string

type RefinementResponse_Refinement

type RefinementResponse_Refinement struct {
	Attribute *ConceptReference   `protobuf:"bytes,1,opt,name=attribute,proto3" json:"attribute,omitempty"`                  // the type of refinement, eg. laterality
	RootValue *ConceptReference   `protobuf:"bytes,2,opt,name=root_value,json=rootValue,proto3" json:"root_value,omitempty"` // the parent in the IS-A hierarchy that define value set
	Choices   []*ConceptReference `protobuf:"bytes,3,rep,name=choices,proto3" json:"choices,omitempty"`                      // the actual value set (a list of choices) for the refinement
	// contains filtered or unexported fields
}

func (*RefinementResponse_Refinement) Descriptor deprecated

func (*RefinementResponse_Refinement) Descriptor() ([]byte, []int)

Deprecated: Use RefinementResponse_Refinement.ProtoReflect.Descriptor instead.

func (*RefinementResponse_Refinement) GetAttribute

func (*RefinementResponse_Refinement) GetChoices

func (*RefinementResponse_Refinement) GetRootValue

func (*RefinementResponse_Refinement) ProtoMessage

func (*RefinementResponse_Refinement) ProtoMessage()

func (*RefinementResponse_Refinement) ProtoReflect

func (*RefinementResponse_Refinement) Reset

func (x *RefinementResponse_Refinement) Reset()

func (*RefinementResponse_Refinement) String

type Relationship

type Relationship struct {
	Id                   int64                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                                                   // Uniquely identifies the relationship.
	EffectiveTime        *timestamp.Timestamp `protobuf:"bytes,2,opt,name=effective_time,json=effectiveTime,proto3" json:"effective_time,omitempty"`                         // Specifies the inclusive date at which the component version's state became the then current valid state of the component
	Active               bool                 `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"`                                                           // Specifies whether the state of the relationship was active or inactive from the nominal release date specified by the effectiveTime field.
	ModuleId             int64                `protobuf:"varint,4,opt,name=module_id,json=moduleId,proto3" json:"module_id,omitempty"`                                       // Identifies the relationship version's module. Set to a child of 900000000000443000 |Module|within the metadata hierarchy.
	SourceId             int64                `protobuf:"varint,5,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"`                                       // Identifies the source concept of the relationship version. That is the concept defined by this relationship. Set to the identifier of a concept. in the Concept File.
	DestinationId        int64                `protobuf:"varint,6,opt,name=destination_id,json=destinationId,proto3" json:"destination_id,omitempty"`                        // Identifies the concept that is the destination of the relationship version.
	RelationshipGroup    int64                `protobuf:"varint,7,opt,name=relationship_group,json=relationshipGroup,proto3" json:"relationship_group,omitempty"`            // Groups together relationship versions that are part of a logically associated relationshipGroup. All active Relationship records with the same relationshipGroup number and sourceId are grouped in this way.
	TypeId               int64                `protobuf:"varint,8,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty"`                                             // Identifies the concept that represent the defining attribute (or relationship type) represented by this relationship version.
	CharacteristicTypeId int64                `protobuf:"varint,9,opt,name=characteristic_type_id,json=characteristicTypeId,proto3" json:"characteristic_type_id,omitempty"` // A concept enumeration value that identifies the characteristic type of the relationship version (i.e. whether the relationship version is defining, qualifying, etc.) This field is set to a descendant of 900000000000449001 |Characteristic type|in the metadata hierarchy.
	ModifierId           int64                `protobuf:"varint,10,opt,name=modifier_id,json=modifierId,proto3" json:"modifier_id,omitempty"`                                // Ignore. A concept enumeration value that identifies the type of Description Logic (DL) restriction (some, all, etc.).
	// contains filtered or unexported fields
}

Relationship defines a relationship between two concepts as a type itself defined as a concept

func (*Relationship) Descriptor deprecated

func (*Relationship) Descriptor() ([]byte, []int)

Deprecated: Use Relationship.ProtoReflect.Descriptor instead.

func (*Relationship) GetActive

func (x *Relationship) GetActive() bool

func (*Relationship) GetCharacteristicTypeId

func (x *Relationship) GetCharacteristicTypeId() int64

func (*Relationship) GetDestinationId

func (x *Relationship) GetDestinationId() int64

func (*Relationship) GetEffectiveTime

func (x *Relationship) GetEffectiveTime() *timestamp.Timestamp

func (*Relationship) GetId

func (x *Relationship) GetId() int64

func (*Relationship) GetModifierId

func (x *Relationship) GetModifierId() int64

func (*Relationship) GetModuleId

func (x *Relationship) GetModuleId() int64

func (*Relationship) GetRelationshipGroup

func (x *Relationship) GetRelationshipGroup() int64

func (*Relationship) GetSourceId

func (x *Relationship) GetSourceId() int64

func (*Relationship) GetTypeId

func (x *Relationship) GetTypeId() int64

func (*Relationship) IsAdditionalRelationship

func (r *Relationship) IsAdditionalRelationship() bool

IsAdditionalRelationship specifies whether this is a relationship to a target concept that is additional to the core

func (*Relationship) IsDefiningRelationship

func (r *Relationship) IsDefiningRelationship() bool

IsDefiningRelationship returns whether this is a relationship to a target concept that is always necessarily true from any instance of the source concept.

func (*Relationship) IsQualifyingRelationship

func (r *Relationship) IsQualifyingRelationship() bool

IsQualifyingRelationship An attribute-value relationship associated with a concept code to indicate to users that it may be applied to refine the meaning of the code. The set of qualifying relationships provide syntactically correct values that can be presented to a user for postcoordination. Following the introduction of the RF2 in 2012 qualifying relationships are no longer part of the standard distributed release. The Machine Readable Concept Model provides a more comprehensive and flexible way to identify the full set of attributes and ranges that can be applied to refine concepts in particular domains.

func (*Relationship) ProtoMessage

func (*Relationship) ProtoMessage()

func (*Relationship) ProtoReflect

func (x *Relationship) ProtoReflect() protoreflect.Message

func (*Relationship) Reset

func (x *Relationship) Reset()

func (*Relationship) String

func (x *Relationship) String() string

type SctID

type SctID struct {
	Identifier int64 `protobuf:"varint,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// contains filtered or unexported fields
}

func (*SctID) Descriptor deprecated

func (*SctID) Descriptor() ([]byte, []int)

Deprecated: Use SctID.ProtoReflect.Descriptor instead.

func (*SctID) GetIdentifier

func (x *SctID) GetIdentifier() int64

func (*SctID) ProtoMessage

func (*SctID) ProtoMessage()

func (*SctID) ProtoReflect

func (x *SctID) ProtoReflect() protoreflect.Message

func (*SctID) Reset

func (x *SctID) Reset()

func (*SctID) String

func (x *SctID) String() string

type SearchClient

type SearchClient interface {
	Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error)
	Extract(ctx context.Context, in *ExtractRequest, opts ...grpc.CallOption) (*ExtractResponse, error)
	Synonyms(ctx context.Context, in *SynonymRequest, opts ...grpc.CallOption) (Search_SynonymsClient, error)
}

SearchClient is the client API for Search service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSearchClient

func NewSearchClient(cc grpc.ClientConnInterface) SearchClient

type SearchFeedback

type SearchFeedback struct {
	Request         *SearchRequest  `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`                                         // the original search request
	Response        *SearchResponse `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`                                       // the search response
	SelectedConcept int64           `protobuf:"varint,3,opt,name=selected_concept,json=selectedConcept,proto3" json:"selected_concept,omitempty"` // what was finally chosen by the user
	// contains filtered or unexported fields
}

SearchFeedback provides feedback on a search.

func (*SearchFeedback) Descriptor deprecated

func (*SearchFeedback) Descriptor() ([]byte, []int)

Deprecated: Use SearchFeedback.ProtoReflect.Descriptor instead.

func (*SearchFeedback) GetRequest

func (x *SearchFeedback) GetRequest() *SearchRequest

func (*SearchFeedback) GetResponse

func (x *SearchFeedback) GetResponse() *SearchResponse

func (*SearchFeedback) GetSelectedConcept

func (x *SearchFeedback) GetSelectedConcept() int64

func (*SearchFeedback) ProtoMessage

func (*SearchFeedback) ProtoMessage()

func (*SearchFeedback) ProtoReflect

func (x *SearchFeedback) ProtoReflect() protoreflect.Message

func (*SearchFeedback) Reset

func (x *SearchFeedback) Reset()

func (*SearchFeedback) String

func (x *SearchFeedback) String() string

type SearchRequest

type SearchRequest struct {
	S                  string              `protobuf:"bytes,1,opt,name=s,proto3" json:"s,omitempty"`                                                                     // the search string, mandatory
	IsA                []int64             `protobuf:"varint,2,rep,packed,name=is_a,json=isA,proto3" json:"is_a,omitempty"`                                              // limit search to descendents of these parents, default:root
	DirectParents      []int64             `protobuf:"varint,3,rep,packed,name=direct_parents,json=directParents,proto3" json:"direct_parents,omitempty"`                // limit search to direct descendents of these parents, default:none
	ConceptRefsets     []int64             `protobuf:"varint,4,rep,packed,name=concept_refsets,json=conceptRefsets,proto3" json:"concept_refsets,omitempty"`             // limit search to concepts in the specified reference sets, default: none
	DescriptionRefsets []int64             `protobuf:"varint,5,rep,packed,name=description_refsets,json=descriptionRefsets,proto3" json:"description_refsets,omitempty"` // limit search to descriptions in the specified reference sets, default: none
	MaximumHits        int32               `protobuf:"varint,6,opt,name=maximum_hits,json=maximumHits,proto3" json:"maximum_hits,omitempty"`                             // limit for maximum hits, use default if zero
	IncludeInactive    bool                `protobuf:"varint,7,opt,name=include_inactive,json=includeInactive,proto3" json:"include_inactive,omitempty"`                 // search descriptions for inactive concepts, default false
	Fuzzy              SearchRequest_Fuzzy `protobuf:"varint,8,opt,name=fuzzy,proto3,enum=snomed.SearchRequest_Fuzzy" json:"fuzzy,omitempty"`                            // fuzziness preference, default fallback fuzzy
	Hints              []int64             `protobuf:"varint,9,rep,packed,name=hints,proto3" json:"hints,omitempty"`                                                     // hints to help search (e.g. context like specialty, location, etc), list of concept identifiers
	// contains filtered or unexported fields
}

SearchRequest performs a free-text search of the hierarchy.

func (*SearchRequest) Descriptor deprecated

func (*SearchRequest) Descriptor() ([]byte, []int)

Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.

func (*SearchRequest) GetConceptRefsets

func (x *SearchRequest) GetConceptRefsets() []int64

func (*SearchRequest) GetDescriptionRefsets

func (x *SearchRequest) GetDescriptionRefsets() []int64

func (*SearchRequest) GetDirectParents

func (x *SearchRequest) GetDirectParents() []int64

func (*SearchRequest) GetFuzzy

func (x *SearchRequest) GetFuzzy() SearchRequest_Fuzzy

func (*SearchRequest) GetHints

func (x *SearchRequest) GetHints() []int64

func (*SearchRequest) GetIncludeInactive

func (x *SearchRequest) GetIncludeInactive() bool

func (*SearchRequest) GetIsA

func (x *SearchRequest) GetIsA() []int64

func (*SearchRequest) GetMaximumHits

func (x *SearchRequest) GetMaximumHits() int32

func (*SearchRequest) GetS

func (x *SearchRequest) GetS() string

func (*SearchRequest) ProtoMessage

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) ProtoReflect

func (x *SearchRequest) ProtoReflect() protoreflect.Message

func (*SearchRequest) Reset

func (x *SearchRequest) Reset()

func (*SearchRequest) String

func (x *SearchRequest) String() string

type SearchRequest_Fuzzy

type SearchRequest_Fuzzy int32
const (
	SearchRequest_FALLBACK_FUZZY SearchRequest_Fuzzy = 0 // try a fuzzy match only if there are no results without using fuzzy
	SearchRequest_ALWAYS_FUZZY   SearchRequest_Fuzzy = 1 // use fuzzy for the search
	SearchRequest_NO_FUZZY       SearchRequest_Fuzzy = 2 // do not use fuzzy matching at all
)

func (SearchRequest_Fuzzy) Descriptor

func (SearchRequest_Fuzzy) Enum

func (SearchRequest_Fuzzy) EnumDescriptor deprecated

func (SearchRequest_Fuzzy) EnumDescriptor() ([]byte, []int)

Deprecated: Use SearchRequest_Fuzzy.Descriptor instead.

func (SearchRequest_Fuzzy) Number

func (SearchRequest_Fuzzy) String

func (x SearchRequest_Fuzzy) String() string

func (SearchRequest_Fuzzy) Type

type SearchResponse

type SearchResponse struct {
	Items []*SearchResponse_Item `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

SearchResponse provides an optimised search response, sufficient for display purposes.

func (*SearchResponse) Descriptor deprecated

func (*SearchResponse) Descriptor() ([]byte, []int)

Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.

func (*SearchResponse) GetItems

func (x *SearchResponse) GetItems() []*SearchResponse_Item

func (*SearchResponse) ProtoMessage

func (*SearchResponse) ProtoMessage()

func (*SearchResponse) ProtoReflect

func (x *SearchResponse) ProtoReflect() protoreflect.Message

func (*SearchResponse) Reset

func (x *SearchResponse) Reset()

func (*SearchResponse) String

func (x *SearchResponse) String() string

type SearchResponse_Item

type SearchResponse_Item struct {
	DescriptionId int64  `protobuf:"varint,1,opt,name=description_id,json=descriptionId,proto3" json:"description_id,omitempty"` // term identifier
	Term          string `protobuf:"bytes,2,opt,name=term,proto3" json:"term,omitempty"`                                         // matched term
	ConceptId     int64  `protobuf:"varint,3,opt,name=concept_id,json=conceptId,proto3" json:"concept_id,omitempty"`             // concept identifier
	PreferredTerm string `protobuf:"bytes,4,opt,name=preferred_term,json=preferredTerm,proto3" json:"preferred_term,omitempty"`  // cached preferred term for this concept
	// contains filtered or unexported fields
}

func (*SearchResponse_Item) Descriptor deprecated

func (*SearchResponse_Item) Descriptor() ([]byte, []int)

Deprecated: Use SearchResponse_Item.ProtoReflect.Descriptor instead.

func (*SearchResponse_Item) GetConceptId

func (x *SearchResponse_Item) GetConceptId() int64

func (*SearchResponse_Item) GetDescriptionId

func (x *SearchResponse_Item) GetDescriptionId() int64

func (*SearchResponse_Item) GetPreferredTerm

func (x *SearchResponse_Item) GetPreferredTerm() string

func (*SearchResponse_Item) GetTerm

func (x *SearchResponse_Item) GetTerm() string

func (*SearchResponse_Item) ProtoMessage

func (*SearchResponse_Item) ProtoMessage()

func (*SearchResponse_Item) ProtoReflect

func (x *SearchResponse_Item) ProtoReflect() protoreflect.Message

func (*SearchResponse_Item) Reset

func (x *SearchResponse_Item) Reset()

func (*SearchResponse_Item) String

func (x *SearchResponse_Item) String() string

type SearchServer

SearchServer is the server API for Search service.

type Search_SynonymsClient

type Search_SynonymsClient interface {
	Recv() (*SynonymResponseItem, error)
	grpc.ClientStream
}

type Search_SynonymsServer

type Search_SynonymsServer interface {
	Send(*SynonymResponseItem) error
	grpc.ServerStream
}

type SimpleMapReferenceSet

type SimpleMapReferenceSet struct {
	MapTarget string `protobuf:"bytes,1,opt,name=map_target,json=mapTarget,proto3" json:"map_target,omitempty"` // The equivalent code in the other terminology, classification or code system.
	// contains filtered or unexported fields
}

SimpleMapReferenceSet is a straightforward one-to-one map between SNOMED-CT concepts and another coding system. This is appropriate for simple maps. See https://confluence.ihtsdotools.org/display/DOCRELFMT/4.2.9.+Simple+Map+Reference+Set

func (*SimpleMapReferenceSet) Descriptor deprecated

func (*SimpleMapReferenceSet) Descriptor() ([]byte, []int)

Deprecated: Use SimpleMapReferenceSet.ProtoReflect.Descriptor instead.

func (*SimpleMapReferenceSet) GetMapTarget

func (x *SimpleMapReferenceSet) GetMapTarget() string

func (*SimpleMapReferenceSet) ProtoMessage

func (*SimpleMapReferenceSet) ProtoMessage()

func (*SimpleMapReferenceSet) ProtoReflect

func (x *SimpleMapReferenceSet) ProtoReflect() protoreflect.Message

func (*SimpleMapReferenceSet) Reset

func (x *SimpleMapReferenceSet) Reset()

func (*SimpleMapReferenceSet) String

func (x *SimpleMapReferenceSet) String() string

type SimpleReferenceSet

type SimpleReferenceSet struct {
	// contains filtered or unexported fields
}

SimpleReferenceSet is a simple reference set usable for defining subsets See https://confluence.ihtsdotools.org/display/DOCRELFMT/4.2.1.+Simple+Reference+Set

func (*SimpleReferenceSet) Descriptor deprecated

func (*SimpleReferenceSet) Descriptor() ([]byte, []int)

Deprecated: Use SimpleReferenceSet.ProtoReflect.Descriptor instead.

func (*SimpleReferenceSet) ProtoMessage

func (*SimpleReferenceSet) ProtoMessage()

func (*SimpleReferenceSet) ProtoReflect

func (x *SimpleReferenceSet) ProtoReflect() protoreflect.Message

func (*SimpleReferenceSet) Reset

func (x *SimpleReferenceSet) Reset()

func (*SimpleReferenceSet) String

func (x *SimpleReferenceSet) String() string

type SnomedCTClient

type SnomedCTClient interface {
	GetConcept(ctx context.Context, in *SctID, opts ...grpc.CallOption) (*Concept, error)
	// GetExtendedConcept returns the concept with the specified identifier.
	// The preferred description will be determined by language preferences
	// defined at runtime.
	// For example, the header accept-language may be used to define language preferences
	// using tags as per format defined by IETF (http://www.ietf.org/rfc/rfc2616.txt)
	// or by setting at a server-wide basis.
	GetExtendedConcept(ctx context.Context, in *SctID, opts ...grpc.CallOption) (*ExtendedConcept, error)
	// GetDescriptions returns descriptions for a given concept.
	GetDescriptions(ctx context.Context, in *SctID, opts ...grpc.CallOption) (*ConceptDescriptions, error)
	// GetReferenceSets returns the reference sets to which this concept is a member
	GetReferenceSets(ctx context.Context, in *SctID, opts ...grpc.CallOption) (SnomedCT_GetReferenceSetsClient, error)
	// GetAllChildren returns all children of the specified concept
	GetAllChildren(ctx context.Context, in *SctID, opts ...grpc.CallOption) (SnomedCT_GetAllChildrenClient, error)
	// GetDescription returns a single description, by identifier
	GetDescription(ctx context.Context, in *SctID, opts ...grpc.CallOption) (*Description, error)
	// GetReferenceSetItem returns a single item from a reference set, by identifier
	GetReferenceSetItem(ctx context.Context, in *ReferenceSetItemID, opts ...grpc.CallOption) (*ReferenceSetItem, error)
	// CrossMap translates from SNOMED CT to an alternative coding system via a map reference set
	CrossMap(ctx context.Context, in *CrossMapRequest, opts ...grpc.CallOption) (SnomedCT_CrossMapClient, error)
	// FromCrossMap translates from an external coding system to SNOMED-CT.
	FromCrossMap(ctx context.Context, in *TranslateFromRequest, opts ...grpc.CallOption) (*TranslateFromResponse, error)
	// Map translates a SNOMED CT concept into the best match within the specified reference set
	Map(ctx context.Context, in *MapRequest, opts ...grpc.CallOption) (*MapResponse, error)
	// Subsumes determines whether one concept subsumes another
	// This is an implementation of the HL7 FHIR terminology service subsumes method
	// (https://www.hl7.org/fhir/terminology-service.html)
	Subsumes(ctx context.Context, in *SubsumptionRequest, opts ...grpc.CallOption) (*SubsumptionResponse, error)
	// Parse parses a SNOMED expression (compositional grammar)
	Parse(ctx context.Context, in *ParseRequest, opts ...grpc.CallOption) (*Expression, error)
	// Refinements returns the appropriate refinements for this specified concept
	Refinements(ctx context.Context, in *RefinementRequest, opts ...grpc.CallOption) (*RefinementResponse, error)
}

SnomedCTClient is the client API for SnomedCT service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSnomedCTClient

func NewSnomedCTClient(cc grpc.ClientConnInterface) SnomedCTClient

type SnomedCTServer

type SnomedCTServer interface {
	GetConcept(context.Context, *SctID) (*Concept, error)
	// GetExtendedConcept returns the concept with the specified identifier.
	// The preferred description will be determined by language preferences
	// defined at runtime.
	// For example, the header accept-language may be used to define language preferences
	// using tags as per format defined by IETF (http://www.ietf.org/rfc/rfc2616.txt)
	// or by setting at a server-wide basis.
	GetExtendedConcept(context.Context, *SctID) (*ExtendedConcept, error)
	// GetDescriptions returns descriptions for a given concept.
	GetDescriptions(context.Context, *SctID) (*ConceptDescriptions, error)
	// GetReferenceSets returns the reference sets to which this concept is a member
	GetReferenceSets(*SctID, SnomedCT_GetReferenceSetsServer) error
	// GetAllChildren returns all children of the specified concept
	GetAllChildren(*SctID, SnomedCT_GetAllChildrenServer) error
	// GetDescription returns a single description, by identifier
	GetDescription(context.Context, *SctID) (*Description, error)
	// GetReferenceSetItem returns a single item from a reference set, by identifier
	GetReferenceSetItem(context.Context, *ReferenceSetItemID) (*ReferenceSetItem, error)
	// CrossMap translates from SNOMED CT to an alternative coding system via a map reference set
	CrossMap(*CrossMapRequest, SnomedCT_CrossMapServer) error
	// FromCrossMap translates from an external coding system to SNOMED-CT.
	FromCrossMap(context.Context, *TranslateFromRequest) (*TranslateFromResponse, error)
	// Map translates a SNOMED CT concept into the best match within the specified reference set
	Map(context.Context, *MapRequest) (*MapResponse, error)
	// Subsumes determines whether one concept subsumes another
	// This is an implementation of the HL7 FHIR terminology service subsumes method
	// (https://www.hl7.org/fhir/terminology-service.html)
	Subsumes(context.Context, *SubsumptionRequest) (*SubsumptionResponse, error)
	// Parse parses a SNOMED expression (compositional grammar)
	Parse(context.Context, *ParseRequest) (*Expression, error)
	// Refinements returns the appropriate refinements for this specified concept
	Refinements(context.Context, *RefinementRequest) (*RefinementResponse, error)
}

SnomedCTServer is the server API for SnomedCT service.

type SnomedCT_CrossMapClient

type SnomedCT_CrossMapClient interface {
	Recv() (*ReferenceSetItem, error)
	grpc.ClientStream
}

type SnomedCT_CrossMapServer

type SnomedCT_CrossMapServer interface {
	Send(*ReferenceSetItem) error
	grpc.ServerStream
}

type SnomedCT_GetAllChildrenClient

type SnomedCT_GetAllChildrenClient interface {
	Recv() (*ConceptReference, error)
	grpc.ClientStream
}

type SnomedCT_GetAllChildrenServer

type SnomedCT_GetAllChildrenServer interface {
	Send(*ConceptReference) error
	grpc.ServerStream
}

type SnomedCT_GetReferenceSetsClient

type SnomedCT_GetReferenceSetsClient interface {
	Recv() (*ReferenceSetItem, error)
	grpc.ClientStream
}

type SnomedCT_GetReferenceSetsServer

type SnomedCT_GetReferenceSetsServer interface {
	Send(*ReferenceSetItem) error
	grpc.ServerStream
}

type SubsumptionRequest

type SubsumptionRequest struct {
	System string `protobuf:"bytes,1,opt,name=system,proto3" json:"system,omitempty"` // This is ignored, but should be "http://snomed.info/sct"
	CodeA  int64  `protobuf:"varint,2,opt,name=code_a,json=codeA,proto3" json:"code_a,omitempty"`
	CodeB  int64  `protobuf:"varint,3,opt,name=code_b,json=codeB,proto3" json:"code_b,omitempty"`
	// contains filtered or unexported fields
}

SubsumptionRequest requests a test of subsumption This is based on on the HL7 FHIR terminology service definition Does concept A subsumes concept B? e.g. A:Disorder of liver, B: viral hepatitis. Result: Subsumes See https://www.hl7.org/fhir/terminology-service.html

func (*SubsumptionRequest) Descriptor deprecated

func (*SubsumptionRequest) Descriptor() ([]byte, []int)

Deprecated: Use SubsumptionRequest.ProtoReflect.Descriptor instead.

func (*SubsumptionRequest) GetCodeA

func (x *SubsumptionRequest) GetCodeA() int64

func (*SubsumptionRequest) GetCodeB

func (x *SubsumptionRequest) GetCodeB() int64

func (*SubsumptionRequest) GetSystem

func (x *SubsumptionRequest) GetSystem() string

func (*SubsumptionRequest) ProtoMessage

func (*SubsumptionRequest) ProtoMessage()

func (*SubsumptionRequest) ProtoReflect

func (x *SubsumptionRequest) ProtoReflect() protoreflect.Message

func (*SubsumptionRequest) Reset

func (x *SubsumptionRequest) Reset()

func (*SubsumptionRequest) String

func (x *SubsumptionRequest) String() string

type SubsumptionResponse

type SubsumptionResponse struct {
	Result SubsumptionResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=snomed.SubsumptionResponse_Result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

SubsumptionResponse gives the response of subsumption testing

func (*SubsumptionResponse) Descriptor deprecated

func (*SubsumptionResponse) Descriptor() ([]byte, []int)

Deprecated: Use SubsumptionResponse.ProtoReflect.Descriptor instead.

func (*SubsumptionResponse) GetResult

func (*SubsumptionResponse) ProtoMessage

func (*SubsumptionResponse) ProtoMessage()

func (*SubsumptionResponse) ProtoReflect

func (x *SubsumptionResponse) ProtoReflect() protoreflect.Message

func (*SubsumptionResponse) Reset

func (x *SubsumptionResponse) Reset()

func (*SubsumptionResponse) String

func (x *SubsumptionResponse) String() string

type SubsumptionResponse_Result

type SubsumptionResponse_Result int32
const (
	SubsumptionResponse_EQUIVALENT   SubsumptionResponse_Result = 0
	SubsumptionResponse_SUBSUMES     SubsumptionResponse_Result = 1 // A subsumes B
	SubsumptionResponse_SUBSUMED_BY  SubsumptionResponse_Result = 2 // B subsumes A
	SubsumptionResponse_NOT_SUBSUMED SubsumptionResponse_Result = 3 // not subsumed
)

func (SubsumptionResponse_Result) Descriptor

func (SubsumptionResponse_Result) Enum

func (SubsumptionResponse_Result) EnumDescriptor deprecated

func (SubsumptionResponse_Result) EnumDescriptor() ([]byte, []int)

Deprecated: Use SubsumptionResponse_Result.Descriptor instead.

func (SubsumptionResponse_Result) Number

func (SubsumptionResponse_Result) String

func (SubsumptionResponse_Result) Type

type SynonymRequest

type SynonymRequest struct {
	S               string              `protobuf:"bytes,1,opt,name=s,proto3" json:"s,omitempty"`                                                     // search string
	IsA             []int64             `protobuf:"varint,2,rep,packed,name=is_a,json=isA,proto3" json:"is_a,omitempty"`                              // limit search to descendents of these parents, default:root
	MaximumHits     int32               `protobuf:"varint,3,opt,name=maximum_hits,json=maximumHits,proto3" json:"maximum_hits,omitempty"`             // limit for maximum hits, use default if zero
	IncludeInactive bool                `protobuf:"varint,4,opt,name=include_inactive,json=includeInactive,proto3" json:"include_inactive,omitempty"` // search descriptions for inactive concepts, default false
	Fuzzy           SearchRequest_Fuzzy `protobuf:"varint,5,opt,name=fuzzy,proto3,enum=snomed.SearchRequest_Fuzzy" json:"fuzzy,omitempty"`            // fuzziness preference, default fallback fuzzy
	IncludeChildren bool                `protobuf:"varint,6,opt,name=include_children,json=includeChildren,proto3" json:"include_children,omitempty"` // whether to include children of identified concepts
	// contains filtered or unexported fields
}

func (*SynonymRequest) Descriptor deprecated

func (*SynonymRequest) Descriptor() ([]byte, []int)

Deprecated: Use SynonymRequest.ProtoReflect.Descriptor instead.

func (*SynonymRequest) GetFuzzy

func (x *SynonymRequest) GetFuzzy() SearchRequest_Fuzzy

func (*SynonymRequest) GetIncludeChildren

func (x *SynonymRequest) GetIncludeChildren() bool

func (*SynonymRequest) GetIncludeInactive

func (x *SynonymRequest) GetIncludeInactive() bool

func (*SynonymRequest) GetIsA

func (x *SynonymRequest) GetIsA() []int64

func (*SynonymRequest) GetMaximumHits

func (x *SynonymRequest) GetMaximumHits() int32

func (*SynonymRequest) GetS

func (x *SynonymRequest) GetS() string

func (*SynonymRequest) ProtoMessage

func (*SynonymRequest) ProtoMessage()

func (*SynonymRequest) ProtoReflect

func (x *SynonymRequest) ProtoReflect() protoreflect.Message

func (*SynonymRequest) Reset

func (x *SynonymRequest) Reset()

func (*SynonymRequest) String

func (x *SynonymRequest) String() string

type SynonymResponseItem

type SynonymResponseItem struct {
	S string `protobuf:"bytes,1,opt,name=s,proto3" json:"s,omitempty"` // a synonym
	// contains filtered or unexported fields
}

func (*SynonymResponseItem) Descriptor deprecated

func (*SynonymResponseItem) Descriptor() ([]byte, []int)

Deprecated: Use SynonymResponseItem.ProtoReflect.Descriptor instead.

func (*SynonymResponseItem) GetS

func (x *SynonymResponseItem) GetS() string

func (*SynonymResponseItem) ProtoMessage

func (*SynonymResponseItem) ProtoMessage()

func (*SynonymResponseItem) ProtoReflect

func (x *SynonymResponseItem) ProtoReflect() protoreflect.Message

func (*SynonymResponseItem) Reset

func (x *SynonymResponseItem) Reset()

func (*SynonymResponseItem) String

func (x *SynonymResponseItem) String() string

type TranslateFromRequest

type TranslateFromRequest struct {
	RefsetId        int64  `protobuf:"varint,1,opt,name=refset_id,json=refsetId,proto3" json:"refset_id,omitempty"`
	S               string `protobuf:"bytes,2,opt,name=s,proto3" json:"s,omitempty"`                                                     //
	IncludeInactive bool   `protobuf:"varint,3,opt,name=include_inactive,json=includeInactive,proto3" json:"include_inactive,omitempty"` // include inactive results in the translations?
	// contains filtered or unexported fields
}

func (*TranslateFromRequest) Descriptor deprecated

func (*TranslateFromRequest) Descriptor() ([]byte, []int)

Deprecated: Use TranslateFromRequest.ProtoReflect.Descriptor instead.

func (*TranslateFromRequest) GetIncludeInactive

func (x *TranslateFromRequest) GetIncludeInactive() bool

func (*TranslateFromRequest) GetRefsetId

func (x *TranslateFromRequest) GetRefsetId() int64

func (*TranslateFromRequest) GetS

func (x *TranslateFromRequest) GetS() string

func (*TranslateFromRequest) ProtoMessage

func (*TranslateFromRequest) ProtoMessage()

func (*TranslateFromRequest) ProtoReflect

func (x *TranslateFromRequest) ProtoReflect() protoreflect.Message

func (*TranslateFromRequest) Reset

func (x *TranslateFromRequest) Reset()

func (*TranslateFromRequest) String

func (x *TranslateFromRequest) String() string

type TranslateFromResponse

type TranslateFromResponse struct {
	Translations []*TranslateFromResponse_Item `protobuf:"bytes,1,rep,name=translations,proto3" json:"translations,omitempty"` // sorted by group and priority
	// contains filtered or unexported fields
}

func (*TranslateFromResponse) Descriptor deprecated

func (*TranslateFromResponse) Descriptor() ([]byte, []int)

Deprecated: Use TranslateFromResponse.ProtoReflect.Descriptor instead.

func (*TranslateFromResponse) GetTranslations

func (x *TranslateFromResponse) GetTranslations() []*TranslateFromResponse_Item

func (*TranslateFromResponse) ProtoMessage

func (*TranslateFromResponse) ProtoMessage()

func (*TranslateFromResponse) ProtoReflect

func (x *TranslateFromResponse) ProtoReflect() protoreflect.Message

func (*TranslateFromResponse) Reset

func (x *TranslateFromResponse) Reset()

func (*TranslateFromResponse) String

func (x *TranslateFromResponse) String() string

type TranslateFromResponse_Item

type TranslateFromResponse_Item struct {
	ReferenceSetItem     *ReferenceSetItem `protobuf:"bytes,1,opt,name=reference_set_item,json=referenceSetItem,proto3" json:"reference_set_item,omitempty"`
	Concept              *Concept          `protobuf:"bytes,2,opt,name=concept,proto3" json:"concept,omitempty"`
	SameAs               []int64           `protobuf:"varint,3,rep,packed,name=same_as,json=sameAs,proto3" json:"same_as,omitempty"` // a list of other concepts that this target is the SAME_AS
	PossiblyEquivalentTo []int64           ``                                                                                        // a list of other concepts that this target is possibly equivalent to
	/* 131-byte string literal not displayed */
	SimilarTo  []int64 `protobuf:"varint,5,rep,packed,name=similar_to,json=similarTo,proto3" json:"similar_to,omitempty"`    // a list of other concepts that this target is SIMILAR_TO
	ReplacedBy []int64 `protobuf:"varint,6,rep,packed,name=replaced_by,json=replacedBy,proto3" json:"replaced_by,omitempty"` // a list of other concepts that this target has been REPLACED_BY
	// contains filtered or unexported fields
}

func (*TranslateFromResponse_Item) Descriptor deprecated

func (*TranslateFromResponse_Item) Descriptor() ([]byte, []int)

Deprecated: Use TranslateFromResponse_Item.ProtoReflect.Descriptor instead.

func (*TranslateFromResponse_Item) GetConcept

func (x *TranslateFromResponse_Item) GetConcept() *Concept

func (*TranslateFromResponse_Item) GetPossiblyEquivalentTo

func (x *TranslateFromResponse_Item) GetPossiblyEquivalentTo() []int64

func (*TranslateFromResponse_Item) GetReferenceSetItem

func (x *TranslateFromResponse_Item) GetReferenceSetItem() *ReferenceSetItem

func (*TranslateFromResponse_Item) GetReplacedBy

func (x *TranslateFromResponse_Item) GetReplacedBy() []int64

func (*TranslateFromResponse_Item) GetSameAs

func (x *TranslateFromResponse_Item) GetSameAs() []int64

func (*TranslateFromResponse_Item) GetSimilarTo

func (x *TranslateFromResponse_Item) GetSimilarTo() []int64

func (*TranslateFromResponse_Item) ProtoMessage

func (*TranslateFromResponse_Item) ProtoMessage()

func (*TranslateFromResponse_Item) ProtoReflect

func (*TranslateFromResponse_Item) Reset

func (x *TranslateFromResponse_Item) Reset()

func (*TranslateFromResponse_Item) String

func (x *TranslateFromResponse_Item) String() string

type UnimplementedSearchServer

type UnimplementedSearchServer struct {
}

UnimplementedSearchServer can be embedded to have forward compatible implementations.

func (*UnimplementedSearchServer) Extract

func (*UnimplementedSearchServer) Search

func (*UnimplementedSearchServer) Synonyms

type UnimplementedSnomedCTServer

type UnimplementedSnomedCTServer struct {
}

UnimplementedSnomedCTServer can be embedded to have forward compatible implementations.

func (*UnimplementedSnomedCTServer) CrossMap

func (*UnimplementedSnomedCTServer) FromCrossMap

func (*UnimplementedSnomedCTServer) GetAllChildren

func (*UnimplementedSnomedCTServer) GetConcept

func (*UnimplementedSnomedCTServer) GetDescription

func (*UnimplementedSnomedCTServer) GetDescriptions

func (*UnimplementedSnomedCTServer) GetExtendedConcept

func (*UnimplementedSnomedCTServer) GetReferenceSetItem

func (*UnimplementedSnomedCTServer) GetReferenceSets

func (*UnimplementedSnomedCTServer) Map

func (*UnimplementedSnomedCTServer) Parse

func (*UnimplementedSnomedCTServer) Refinements

func (*UnimplementedSnomedCTServer) Subsumes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL