Class: FHIR::Library

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir/resources/Library.rb

Constant Summary collapse

SEARCH_PARAMS =
["description", "identifier", "status", "title", "topic", "version"]
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'Library.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'Library.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'Library.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'type'=>'code', 'path'=>'Library.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
  'text' => {'type'=>'Narrative', 'path'=>'Library.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'Library.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'Library.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Library.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'url' => {'type'=>'uri', 'path'=>'Library.url', 'min'=>0, 'max'=>1},
  'identifier' => {'type'=>'Identifier', 'path'=>'Library.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'version' => {'type'=>'string', 'path'=>'Library.version', 'min'=>0, 'max'=>1},
  'name' => {'type'=>'string', 'path'=>'Library.name', 'min'=>0, 'max'=>1},
  'title' => {'type'=>'string', 'path'=>'Library.title', 'min'=>0, 'max'=>1},
  'type' => {'valid_codes'=>{'http://hl7.org/fhir/library-type'=>['logic-library', 'model-definition', 'asset-collection', 'module-definition', 'logic-library', 'model-definition', 'asset-collection', 'module-definition']}, 'type'=>'CodeableConcept', 'path'=>'Library.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/library-type'}},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/module-metadata-status'=>['draft', 'active', 'inactive', 'draft', 'active', 'inactive']}, 'type'=>'code', 'path'=>'Library.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/module-metadata-status'}},
  'experimental' => {'type'=>'boolean', 'path'=>'Library.experimental', 'min'=>0, 'max'=>1},
  'description' => {'type'=>'string', 'path'=>'Library.description', 'min'=>0, 'max'=>1},
  'purpose' => {'type'=>'string', 'path'=>'Library.purpose', 'min'=>0, 'max'=>1},
  'usage' => {'type'=>'string', 'path'=>'Library.usage', 'min'=>0, 'max'=>1},
  'publicationDate' => {'type'=>'date', 'path'=>'Library.publicationDate', 'min'=>0, 'max'=>1},
  'lastReviewDate' => {'type'=>'date', 'path'=>'Library.lastReviewDate', 'min'=>0, 'max'=>1},
  'effectivePeriod' => {'type'=>'Period', 'path'=>'Library.effectivePeriod', 'min'=>0, 'max'=>1},
  'coverage' => {'type'=>'UsageContext', 'path'=>'Library.coverage', 'min'=>0, 'max'=>Float::INFINITY},
  'topic' => {'type'=>'CodeableConcept', 'path'=>'Library.topic', 'min'=>0, 'max'=>Float::INFINITY},
  'contributor' => {'type'=>'Contributor', 'path'=>'Library.contributor', 'min'=>0, 'max'=>Float::INFINITY},
  'publisher' => {'type'=>'string', 'path'=>'Library.publisher', 'min'=>0, 'max'=>1},
  'contact' => {'type'=>'ContactDetail', 'path'=>'Library.contact', 'min'=>0, 'max'=>Float::INFINITY},
  'copyright' => {'type'=>'string', 'path'=>'Library.copyright', 'min'=>0, 'max'=>1},
  'relatedResource' => {'type'=>'RelatedResource', 'path'=>'Library.relatedResource', 'min'=>0, 'max'=>Float::INFINITY},
  'parameter' => {'type'=>'ParameterDefinition', 'path'=>'Library.parameter', 'min'=>0, 'max'=>Float::INFINITY},
  'dataRequirement' => {'type'=>'DataRequirement', 'path'=>'Library.dataRequirement', 'min'=>0, 'max'=>Float::INFINITY},
  'content' => {'type'=>'Attachment', 'path'=>'Library.content', 'min'=>1, 'max'=>1}
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Xml

from_xml, is_valid?, #to_xml, validate

Methods included from Json

from_json, #to_json

Methods included from Hashable

#from_hash, #to_hash

Methods inherited from Model

#attribute_mismatch, #compare_attribute, #equals?, #initialize, #is_valid?, #method_missing, #mismatch, #to_reference, #validate, #validate_profile

Constructor Details

This class inherits a constructor from FHIR::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FHIR::Model

Instance Attribute Details

#contactObject

0-* [ ContactDetail ]



69
70
71
# File 'lib/fhir/resources/Library.rb', line 69

def contact
  @contact
end

#containedObject

0-* [ Resource ]



48
49
50
# File 'lib/fhir/resources/Library.rb', line 48

def contained
  @contained
end

#contentObject

1-1 Attachment



74
75
76
# File 'lib/fhir/resources/Library.rb', line 74

def content
  @content
end

#contributorObject

0-* [ Contributor ]



67
68
69
# File 'lib/fhir/resources/Library.rb', line 67

def contributor
  @contributor
end

0-1 string



70
71
72
# File 'lib/fhir/resources/Library.rb', line 70

def copyright
  @copyright
end

#coverageObject

0-* [ UsageContext ]



65
66
67
# File 'lib/fhir/resources/Library.rb', line 65

def coverage
  @coverage
end

#dataRequirementObject

0-* [ DataRequirement ]



73
74
75
# File 'lib/fhir/resources/Library.rb', line 73

def dataRequirement
  @dataRequirement
end

#descriptionObject

0-1 string



59
60
61
# File 'lib/fhir/resources/Library.rb', line 59

def description
  @description
end

#effectivePeriodObject

0-1 Period



64
65
66
# File 'lib/fhir/resources/Library.rb', line 64

def effectivePeriod
  @effectivePeriod
end

#experimentalObject

0-1 boolean



58
59
60
# File 'lib/fhir/resources/Library.rb', line 58

def experimental
  @experimental
end

#extensionObject

0-* [ Extension ]



49
50
51
# File 'lib/fhir/resources/Library.rb', line 49

def extension
  @extension
end

#idObject

0-1 id



43
44
45
# File 'lib/fhir/resources/Library.rb', line 43

def id
  @id
end

#identifierObject

0-* [ Identifier ]



52
53
54
# File 'lib/fhir/resources/Library.rb', line 52

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



45
46
47
# File 'lib/fhir/resources/Library.rb', line 45

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



46
47
48
# File 'lib/fhir/resources/Library.rb', line 46

def language
  @language
end

#lastReviewDateObject

0-1 date



63
64
65
# File 'lib/fhir/resources/Library.rb', line 63

def lastReviewDate
  @lastReviewDate
end

#metaObject

0-1 Meta



44
45
46
# File 'lib/fhir/resources/Library.rb', line 44

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



50
51
52
# File 'lib/fhir/resources/Library.rb', line 50

def modifierExtension
  @modifierExtension
end

#nameObject

0-1 string



54
55
56
# File 'lib/fhir/resources/Library.rb', line 54

def name
  @name
end

#parameterObject

0-* [ ParameterDefinition ]



72
73
74
# File 'lib/fhir/resources/Library.rb', line 72

def parameter
  @parameter
end

#publicationDateObject

0-1 date



62
63
64
# File 'lib/fhir/resources/Library.rb', line 62

def publicationDate
  @publicationDate
end

#publisherObject

0-1 string



68
69
70
# File 'lib/fhir/resources/Library.rb', line 68

def publisher
  @publisher
end

#purposeObject

0-1 string



60
61
62
# File 'lib/fhir/resources/Library.rb', line 60

def purpose
  @purpose
end

#relatedResourceObject

0-* [ RelatedResource ]



71
72
73
# File 'lib/fhir/resources/Library.rb', line 71

def relatedResource
  @relatedResource
end

#statusObject

1-1 code



57
58
59
# File 'lib/fhir/resources/Library.rb', line 57

def status
  @status
end

#textObject

0-1 Narrative



47
48
49
# File 'lib/fhir/resources/Library.rb', line 47

def text
  @text
end

#titleObject

0-1 string



55
56
57
# File 'lib/fhir/resources/Library.rb', line 55

def title
  @title
end

#topicObject

0-* [ CodeableConcept ]



66
67
68
# File 'lib/fhir/resources/Library.rb', line 66

def topic
  @topic
end

#typeObject

1-1 CodeableConcept



56
57
58
# File 'lib/fhir/resources/Library.rb', line 56

def type
  @type
end

#urlObject

0-1 uri



51
52
53
# File 'lib/fhir/resources/Library.rb', line 51

def url
  @url
end

#usageObject

0-1 string



61
62
63
# File 'lib/fhir/resources/Library.rb', line 61

def usage
  @usage
end

#versionObject

0-1 string



53
54
55
# File 'lib/fhir/resources/Library.rb', line 53

def version
  @version
end

Instance Method Details

#resourceTypeObject



76
77
78
# File 'lib/fhir/resources/Library.rb', line 76

def resourceType
  'Library'
end