Class Medication
This resource is primarily used for the identification and definition of a medication. It covers the ingredients and the packaging for a medication.
Implements
Inherited Members
Namespace: fhirCsR2.Models
Assembly: fhirCsR2.dll
Syntax
public class Medication : DomainResource, IFhirJsonSerializable
Properties
| Improve this Doc View Source_IsBrand
Extension container element for IsBrand
Declaration
public Element _IsBrand { get; set; }
Property Value
| Type | Description |
|---|---|
| Element |
Code
A code (or set of codes) that specify this medication, or a textual description if no code is available. Usage note: This could be a standard medication code such as a code from RxNorm, SNOMED CT, IDMP etc. It could also be a national or local formulary code, optionally with translations to other code systems.
Declaration
public CodeableConcept Code { get; set; }
Property Value
| Type | Description |
|---|---|
| CodeableConcept |
IsBrand
Set to true if the item is attributable to a specific manufacturer.
Declaration
public bool? IsBrand { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
Manufacturer
Describes the details of the manufacturer.
Declaration
public Reference Manufacturer { get; set; }
Property Value
| Type | Description |
|---|---|
| Reference |
Package
Information that only applies to packages (not products).
Declaration
public MedicationPackage Package { get; set; }
Property Value
| Type | Description |
|---|---|
| MedicationPackage |
Product
Information that only applies to products (not packages).
Declaration
public MedicationProduct Product { get; set; }
Property Value
| Type | Description |
|---|---|
| MedicationProduct |
ResourceType
Resource Type Name
Declaration
public override string ResourceType { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Methods
| Improve this Doc View SourceDeserializeJson(ref Utf8JsonReader, JsonSerializerOptions)
Deserialize a JSON object
Declaration
public void DeserializeJson(ref Utf8JsonReader reader, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonReader | reader | |
| JsonSerializerOptions | options |
DeserializeJsonProperty(ref Utf8JsonReader, JsonSerializerOptions, String)
Deserialize a JSON property
Declaration
public void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonReader | reader | |
| JsonSerializerOptions | options | |
| System.String | propertyName |
SerializeJson(Utf8JsonWriter, JsonSerializerOptions, Boolean)
Serialize to a JSON object
Declaration
public void SerializeJson(Utf8JsonWriter writer, JsonSerializerOptions options, bool includeStartObject = true)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonWriter | writer | |
| JsonSerializerOptions | options | |
| System.Boolean | includeStartObject |