user2024871
user2024871

Reputation: 3

HL7Sdk how to add 'PIVL_PPD_TS' and TS in entry.AsSubstanceAdministration.EffectiveTime entry.AsSubstanceAdministration.EffectiveTime

Hi everyone, I am using HL7Sdk codeplex and trying to add 'PIVL_PPD_TS' type in entry.AsSubstanceAdministration.EffectiveTime but it generates compile time error . and same problem is with TS type too. I am able to add PIVL_TS and EIVL_TS without any problem.

var p = new PIVL_PPD_TS();
            p.InstitutionSpecified = false;
            p.Operator = new SetOperator();
            p.Operator.HasFlag(SetOperator.A);
            p.Period.Init(5);
            p.Period.Unit = "h";
            p.StandardDeviation.Init(1);
            p.StandardDeviation.Unit = "h";

            entry.AsSubstanceAdministration.EffectiveTime.Add(p);

the last line compile time error is "cannot convert from 'HL7SDK.Cda.PIVL_PPD_TS' to 'HL7SDK.Cda.ISXCM_TS'"

The same issue is with TS type . Please guide how to resolve this .

Upvotes: 0

Views: 150

Answers (0)

Related Questions